Repository navigation
ci(release): gate publishing on CI and dispatch bindings after crates.io (#938, #939) - #955
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
One release-readiness gap in Keep the bounded retry, but poll the Cargo sparse-index entry for an exact |
….io (#938, #939) Release Cascade now runs on completion of a successful official tag-push Release run, checks the tag still names that commit and that CI passed on it, waits up to 60 minutes for the exact crate version, then dispatches the bindings. A Release Gate job (cargo-dist local-artifacts-jobs) blocks hosting and publishing unless the tagged commit's push CI succeeded. The hand-added crates.io publish job moves unchanged into a dist publish-jobs workflow so release.yml is generated again. Closes #938. Closes #939. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh
The API can list a version before Cargo can resolve it: crates.io updates the index and its CDN asynchronously. Poll index.crates.io/mi/ni/minigraf for an exact, unyanked vers row instead, within the same 60-minute bound. Review follow-up on #954/#955. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh
The API can list a version before Cargo can resolve it: crates.io updates the index and its CDN asynchronously. Poll index.crates.io/mi/ni/minigraf for an exact, unyanked vers row instead, within the same 60-minute bound. Review follow-up on #954/#955. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh
25509c2 to
3e78815
Compare
|
Addressed in the new commit "ci(release): wait for the Cargo sparse index, not the crates.io API" (same change on both PRs):
Also rebased onto the merged policy PRs (#956/#957), so release step 8 now reads lock-step. shellcheck and actionlint are clean, and |
….io (#938, #939) (#954) * ci(release): gate publishing on CI and dispatch bindings after crates.io (#938, #939) Release Cascade now runs on completion of a successful official tag-push Release run, checks the tag still names that commit and that CI passed on it, waits up to 60 minutes for the exact crate version, then dispatches the bindings. A Release Gate job (cargo-dist local-artifacts-jobs) blocks hosting and publishing unless the tagged commit's push CI succeeded. The hand-added crates.io publish job moves unchanged into a dist publish-jobs workflow so release.yml is generated again. Closes #938. Closes #939. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh * ci(release): wait for the Cargo sparse index, not the crates.io API The API can list a version before Cargo can resolve it: crates.io updates the index and its CDN asynchronously. Poll index.crates.io/mi/ni/minigraf for an exact, unyanked vers row instead, within the same 60-minute bound. Review follow-up on #954/#955. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Closes #938. Closes #939.
The same change lands on
mainandv3. The files are identical exceptCONTRIBUTING.md, which keeps each branch's own checklist.#938: dispatch the bindings after crates.io, not on the tag push
cascade.ymlnow triggers onworkflow_runof Release (completed). It runs only when the run concludedsuccess.workflow_dispatch(inputtag) stays for recovery.workflow_sha, never the triggering run's code..github/release/release.sh preparevalidates the triggering run: the official.github/workflows/release.ymlof this repo (not a fork), eventpush,head_branch= the tag, andhead_sha= the commit the tag resolves to now. It then checks CI on that commit (below).core-releasewithclient_payload.version= the full tag to the seven binding repos, as before.v3.0.0-alpha(crate version3.0.0-alpha) are accepted.#939: publishing requires CI green on the exact tagged commit
release-gate.yml(release.sh gate) requires a successful latest push run of Rust, WASM, Lint, Coverage Gates, Policy and Binary Size on the tagged SHA. A workflow missing from that commit is skipped by name. All six run onmainandv[0-9]*pushes, sov2.xis covered after release: move v3 to main and main to v2.x at the 3.0.0-alpha #937.local-artifacts-jobs = ["./release-gate"]).host(the GitHub release) and everything after it wait for it.release.ymlwould delete the hand-addedpublish-crates-iojob. That job moves unchanged (crates-io environment, OIDC trusted publishing,cargo publish --locked -p minigraf) into a reusablerelease-publish.yml, wired as a distpublish-jobsentry withpublish-prereleases = trueso the alpha publishes.allow-dirty = ["ci"]is removed, sorelease.ymlis again exactly whatdist generatewrites.pr-run-mode = "skip"andactions/checkoutpinned to v4 keep the generated file's other behavior.CONTRIBUTING.mdrelease checklist: acargo publish --dry-run --lockedstep from a clean checkout before tagging, the CI-on-exact-SHA rule, and the cascade's recovery command. Lockfile: not added. Recommendation: track a release lockfile separately and use it in CI and in 8000 publishing.Verification
python3 -B -m unittest discover -s .github/release: 15 tests with stubbedgh/crates.io. They cover the cancelled v2.0.12 Release docs: roadmap known-issue entry for or-branch negative cycles is stale #111 atcbd56af(dispatches nothing), the successful fix(lint): restore clean cargo clippy --all-targets --all-features #112 at8ef9d46, delayed indexing, a prerelease tag, failed CI, a fork run and a moved tag.8ef9d46(v2.0.12): all six workflows pass.dist generate --mode ci --check(cargo-dist 0.31.0, the pinned version) passes; actionlint is clean on the four workflows. ShellCheck is clean on the new scripts; the generatedrelease.ymlkeeps its five existing ShellCheck warnings.Not testable in a PR
The real
workflow_runtrigger, OIDC publish and binding dispatch run only on a tag. Before tagging the alpha, run the gate on the candidate SHA andcargo publish --dry-run --locked.🤖 Generated with Claude Code
https://claude.ai/code/session_01H2a7QngaFzuCVt5umd1qoh