Retry the Play publish with the opposite review flag - #811
Merged
Merged
Conversation
The staging build android-dev.1231 uploaded its AAB but could not commit the Play edit: Changes cannot be sent for review automatically. Please set the query parameter changesNotSentForReview to true. so no internal release appeared. Google's edit commit demands one specific value for changesNotSentForReview and rejects the other, and which one it wants depends on Play Console review state that changes outside CI — a normal reviewed app rejects the flag, an app with review-gated changes pending requires it. Both directions have broken a staging upload now (false today, true back at android-dev.1026), so stop hand-flipping the literal: keep the normal-path value as the first attempt and retry once with the opposite value when the commit is refused. The failed edit is never committed, so its versionCode stays unused and the retry can re-upload the same AAB. A successful retry means the release is on the track but was NOT sent for review, so it emits a warning saying a human has to submit the pending changes in the Play Console. The failure warning and the run summary's Play outcome now both account for the retry. No unit test accompanies this: the change is entirely GitHub Actions workflow wiring, which the repo's JVM test suite cannot reach. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ht2BB4TWtkmC5EW5GsPXEM
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #811 +/- ##
=========================================
Coverage 42.40% 42.40%
Complexity 228 228
=========================================
Files 270 270
Lines 32450 32450
Branches 3735 3735
=========================================
Hits 13761 13761
Misses 18413 18413
Partials 276 276
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Why
The
dev -> stagingpromotion (#810) ran green but no internal release appeared on Play. The Android run's "Publish AAB to Play" step iscontinue-on-error, so the failure only showed up as an annotation:The AAB uploaded fine; the edit was never committed, so
android-dev.1231/0.150.0-dev.1231never reached the internal track. The Sept 8 staging build (android-dev.1225) committed cleanly, so the app's Play Console review state flipped between the two — consistent with the app now having review-gated changes pending.What
changesNotSentForReviewis not really ours to choose. Google's edit commit demands one specific value and rejects the other, and which one it wants depends on Console state that changes outside CI:trueWe have been burned in both directions —
falsebrokeandroid-dev.1231today,truebrokeandroid-dev.1026once the app went back to normal — and the step comment had turned into a note about which way to hand-flip it next. So instead of flipping the literal again:false(the normal path) as the first attempt;changesNotSentForReview: trueonly when the first commit failed. The failed edit is never committed, so its versionCode stays unused and re-uploading the same AAB is safe;Play track: ... (publish: ...)line reflects the retry outcome.Testing
Validated that the workflow still parses and that the four steps'
ifconditions and flag values are wired as intended.No unit test accompanies this — the change is entirely GitHub Actions workflow wiring, which the repo's JVM test suite cannot reach. It gets exercised for real by the next
dev -> stagingpromotion.Note
This unblocks future staging builds. The current
0.150.0internal build still has to be re-cut (the next promotion run will do it with a fresh run number / versionCode), and if the retry path is what fires, the Play Console will need a manual "send for review".🤖 Generated with Claude Code
https://claude.ai/code/session_01Ht2BB4TWtkmC5EW5GsPXEM