Serialize Play publishing to prevent edit-expired races#166
Merged
Conversation
Two pushes to dev landed 19s apart (merges of #161 and #163) and both ran the "Publish AAB to Play Internal track" step concurrently. Google Play permits only one active edit per app, so the second run's edit was invalidated mid-upload and the job failed with "This edit has expired, please create a new Edit." Add a workflow-level concurrency group so all release-publishing runs (pushes to main/dev and v* tags) share a single "play-publish" queue and never overlap on the Play API. cancel-in-progress is false so an in-flight upload finishes instead of being killed. PRs and feature-branch pushes get a unique per-run group and are never queued. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #166 +/- ##
=======================================
Coverage 6.56% 6.56%
Complexity 695 695
=======================================
Files 272 272
Lines 31563 31563
Branches 4982 4982
=======================================
Hits 2071 2071
Misses 29348 29348
Partials 144 144 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the release GitHub Actions workflow to prevent Google Play publishing failures caused by concurrent “edit” sessions, by serializing publish-capable runs into a single concurrency queue.
Changes:
- Adds workflow-level
concurrencyto ensure pushes tomain,dev, andv*tags share a singleplay-publishgroup. - Sets
cancel-in-progress: falseso an in-flight publish isn’t interrupted mid-upload.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
Build APKcheck on the dev→main release PR (#165) went red. The APK and AAB built fine — the failure was in the final Publish AAB to Play Internal track step:Root cause
Two pushes to
devlanded 19 seconds apart and both reached the Play publish step concurrently:27165014434dev-33327165030095dev-334— edit expiredThe Google Play Developer API allows only one active "edit" per app. When the second run opened its edit while the first still held one, the first commit invalidated the second →
This edit has expired. Nothing was wrong with the build.Fix
Add a workflow-level
concurrencygroup so all release-publishing runs (pushes tomain/devandv*tags) share a singleplay-publishqueue and run one-at-a-time:cancel-in-progress: false— an in-flight upload finishes instead of being killed mid-publish.build-<run_id>) so they're never queued and CI stays fast.Notes
dev-334run will be re-run separately to clear the red check on Release: dev → main (PRs #151–#172) #165; with no concurrent edit live, it succeeds.🤖 Generated with Claude Code