Repository navigation
ci(play): refuse uploads while Google is reviewing earlier changes - #50
Merged
Merged
Conversation
Play's edits.commit defaults to CANCEL_IN_REVIEW_AND_SUBMIT, so every scheduled release cancelled any review in progress and restarted it. Both Play steps now commit with ERROR_IF_IN_REVIEW and fail with a clear error instead, leaving the track as it was. The internal upload moves from r0adkll/upload-google-play (no such input) to play-promote.sh, which now uploads the bundle and mapping first when given them. Google's docs don't say whether an internal-only commit cancels a review elsewhere, so it gets the same guard. Verified: bash -n, shellcheck, actionlint, and a dry run with a stubbed curl for the normal commit and the CHANGES_ALREADY_IN_REVIEW answer, on both tracks. Not run against Play.
Merged
This branch was previously deployed
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.
Every Play upload committed with Google's default, which cancels a review in progress and starts it over. With PR #31's SMS and call log permissions under review, each scheduled release would have restarted a review that can take weeks.
Now both Play steps commit with
changesInReviewBehavior=ERROR_IF_IN_REVIEW. If Google is still reviewing, the step fails with a clear error and that track stays as it was.r0adkll/upload-google-play, which has no such option, toscripts/play-promote.sh. Given a bundle and mapping file, the script now uploads them first. Google says internal releases aren't reviewed (managed publishing FAQ), but neither that page nor the commit docs say whether an internal-only commit cancels a review on another track. So the internal upload gets the same guard.docs/releasing.mdsays how to recover.Verification:
bash -n,shellcheckandactionlintpass.curlcovered the normal commit and theCHANGES_ALREADY_IN_REVIEWreply on both tracks.