Repository navigation
Conversation
Contributor
|
@Ultranmus, thanks for opening this PR! I'll take a look at it early next week. |
priitlatt
self-requested a review
November 23, 2026 15:58
priitlatt
requested changes
Nov 24, 2026
priitlatt
left a comment
Contributor
There was a problem hiding this comment.
This looks solid! There are no hard blockers, just one nit that I'd prefer to be resolved before merging.
Also please sync CHANGELOG.md with master - it gained a release just today.
Bonus points for you (and your agent) for finding and using MutuallyExclusiveGroup for new CLI argument 👍
Also check the version codes of all uploaded App Bundles and APKs, including builds that are not assigned to any track, so the next build number is never one that Google Play already rejects as used (codemagic-ci-cd#400). Opt-in and mutually exclusive with `--tracks`; default is unchanged.
Ultranmus
force-pushed
the
google-play-include-uploaded-builds
branch
from
November 24, 2026 17:36
44af14d to
f46d075
Compare
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.
Fixes #400.
google-play get-latest-build-numberonly reads version codes from tracks. Builds that were uploaded to Google Play but are not part of any track release (for example a discarded draft) still use up their version code, so auto-versioning can pick a number that Google Play rejects as already used.This adds an opt-in
--include-uploaded-buildsflag that also checks the version codes of all uploaded App Bundles and APKs. The default behaviour is unchanged, following the same approach as--all-versionsin #497.Changes
--include-uploaded-buildsflag forgoogle-play get-latest-build-number. When set, the highest version code fromedits.bundles.listandedits.apks.listis compared with the track version codes, and the highest overall is returned.--tracks, since limiting the search to specific tracks contradicts checking all uploads.include_uploaded_buildskeyword argument toGooglePlay.get_latest_build_number.CHANGELOG.mdentry underVersion UNRELEASED.The flag is named differently from
--all-versionsbecause inapp-store-connectthat flag refers to marketing versions. Happy to rename if you prefer something else.Tests
ruffandpytestpass on Python 3.14.mypyreports no new errors (the 3 remaining ones inedits_service.pyand elsewhere also occur onmaster).Evidence
End-to-end run of the CLI against a stubbed Google Play API, with build
100on production,104on internal, and uploaded bundles103,104and105(where105is not on any track):