Skip to content

ci(release): gate the prime release on an installable prime-sandboxes floor - #870

Merged
akirillo merged 1 commit into
mainfrom
ci/gate-prime-release-on-sandboxes
Aug 27, 2026
Merged

ci(release): gate the prime release on an installable prime-sandboxes floor#870
akirillo merged 1 commit into
mainfrom
ci/gate-prime-release-on-sandboxes

Conversation

@akirillo

Copy link
Copy Markdown
Contributor

release-prime.yml and release-sandboxes.yml run independently, so a push that changes both packages releases the CLI without waiting for the SDK. packages/prime/Dockerfile installs the CLI wheel with its dependencies resolved from PyPI, so if prime-sandboxes is not published yet, all three image builds fail after the CLI tag, GitHub release, and PyPI upload already happened. A rerun then skips the release because the tag exists, so recovery is manual. #869 raises the floor to prime-sandboxes>=0.2.40 and would be the first release to hit this.

This adds an await-sandboxes-release job that tag-and-release now needs. It reads the prime-sandboxes>= floor from packages/prime/pyproject.toml and polls pip download until that exact version resolves, for up to 10 minutes.

The gate waits on PyPI rather than on the sibling workflow's Actions status, because PyPI availability is the condition the Docker build actually needs. It also covers index propagation after that workflow finishes, and it needs no handling for the race on when the sibling run appears. A CLI-only release passes in seconds because the floor is already published. If the sandbox release fails, this job times out and the CLI is never tagged or published with an unsatisfiable floor, at the cost of a 10-minute wait before the failure surfaces.

Merge this before #869.

🤖 Generated with Claude Code

… floor

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@akirillo
akirillo merged commit a9a3c45 into main Aug 27, 2026
16 checks passed
@akirillo
akirillo deleted the ci/gate-prime-release-on-sandboxes branch August 27, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants