Play allows one completed release per track. plan_track kept every other
release and appended the new one, so promoting 1.8.1 to Closed testing at
100 sent two completed releases (66 and 70) and Play refused it. The
first production publish at 100, or widening a staged rollout to 100,
would have been refused the same way.
A completed release now replaces the track's current completed release,
as Play Console does on a full rollout. Drafts are kept, and a release
mid-rollout still stops the publish.
FakePlay now refuses two completed releases with Play's message. That
made two existing tests fail (promote straight to production, widening a
rollout): they had been passing with a release list Play rejects. New
tests cover the v1.8.1 case and a draft next to a completed release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dispatched by hand from a v* tag with a target (internal, external or
production) and a rollout. The first run for a tag uploads its bundle;
later runs move the same bundle to another track.
verify runs first, with no environment and no Google access, so a bad
tag or bundle is refused before anyone is asked to approve:
- the ref must be a v* tag, and its commit must be on main;
- the tag's release must carry app-release.aab;
- gh attestation verify must find it built by release-signed.yml at
this ref and commit, on a GitHub-hosted runner.
publish runs in play-release (owner review, v* tags only), re-downloads
the asset and refuses it unless its SHA-256 matches what verify
checked, gets a Play-scoped token keylessly with no credentials file,
runs play_release.py publish, then lists the tracks. One concurrency
group for the app, never cancelled.
Tests: test_workflows.py guards the trigger, the inputs against the
tool's targets and rollouts, the queue, which job can reach Google,
the tag-on-main check, every verify flag and the hash hand-off.
Removing --source-digest, the environment or the main check each fails
a test. 47 pass.
Gemini 2.5 Pro reviewed it. Two findings, both false: the Play notes
file is required by release-gate.sh, and the provenance step needs no
GitHub release (A3 made one on a branch push).
Agent: JadeEagle (session e9df9ed6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision 2026-11-21 on #1053: each release starts on the track he
picks (Internal, External or production) and promotes onward from
Internal or External, any step skippable. A promotion moves the same
bundle and uses no new version code. Test builds still never upload.
Tool: an `internal` target alongside `external` (Play's `alpha`) and
`production`. Internal and External go to their whole tester list, so
both take draft or 100 only.
Tests: Internal publishes to the internal track, refuses a percentage,
and an unknown target names all three. Promotion through all three
tracks, and Internal straight to production, each upload once. 37 pass.
With Internal removed from the whole-list rule, the percentage test
fails.
Plan: decision 3, the cut table, the up-front notes, A1, A2, B1, B3,
section 6 and Done when are revised to three targets.
Agent: JadeEagle (session e9df9ed6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/play/play_release.py sends a signed release bundle to Play's closed
testing track (External) or production through the Android Publisher edits
API. A read-only tracks command lists every track for A3.
Before any change it checks the bundle certificate against the
release-signed.yml pin, the bundle version code against the tag's pubspec,
the tag against the pubspec version, the notes length, and that the code is
higher than anything Play holds unless Play already holds this exact bundle.
It never removes another release, stops on a different version mid rollout,
on a narrowing request and on a release shared with another version, and a
re-run at the same rollout changes nothing. A failed run deletes its edit.
32 tests, run in the analyze check. Each of 17 guards was removed in turn and
every removal failed a test. The parser reads codes 66, 67 and 68 and the
pinned certificate from the three real release bundles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>