Repository navigation
docs: releases pass the release gate before v0 moves (#135, #136) - #301
Conversation
The release gate is live in the canary: gate.yml (QuantEcon/test-actions-lecture-intro#85) tests a candidate on the fixture in gate/ (QuantEcon/test-actions-lecture-intro#84). It ran on the canary's main on 2026-11-10: green on v0's commit, and red, as staged, under each self-test, with the release-gate issue reaching the dispatcher. - CONTRIBUTING, Staged Releases: hold v0 until the gate passes, dispatched on the canary's main with the candidate. The canary PR and cache.yml dispatch stay only for what the gate does not reach, which the section lists. The two known limits the gate closes are gone; a new one says it tests the actions, not the images, and how its pinned image moves. - docs/dev/TESTING.md: the gate's row, a section on it, and the "not covered" lines it changes. - docs/dev/PLAN.md: 0a, 0b and 0d are done; 0c is revisited once the gate has replaced the hand-staged legs. - CHANGELOG: a Documentation entry under [Unreleased]. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟡 Changes recommended
The change still needs an update because CONTRIBUTING.md’s staged-release steps omit how to get the run ID/URL for gh run watch after invoking gh workflow run, leaving the documented procedure unclear for non-interactive use.
1 open issue
What changed in this PR
Updates maintainer and developer documentation to make the canary’s gate.yml release gate a required precondition for moving the floating v0 tag on action-changing releases, and aligns related planning and changelog notes.
Changes:
- Require a green canary release-gate run before moving
v0, keeping manual staging only for scenarios the gate cannot cover. - Document the release gate’s purpose, how to run it, and its coverage/limits in dev testing docs.
- Refresh the dev plan and add an Unreleased changelog entry reflecting the updated procedure.
| File | Description |
|---|---|
| docs/dev/TESTING.md | Adds the release gate to the testing overview and documents how it works, what it covers, and what remains out of scope. |
| docs/dev/PLAN.md | Updates the plan to reflect completed P0 gating work and notes remaining items that are deferred until hand-staged legs are replaced. |
| CONTRIBUTING.md | Revises the staged release procedure to require running the canary’s gate.yml before moving v0 and enumerates what still needs manual staging. |
| CHANGELOG.md | Adds an Unreleased documentation entry describing the new release-gate-driven release procedure. |
Review effort: Balanced
| gh workflow run gate.yml --repo QuantEcon/test-actions-lecture-intro --ref main -f candidate=vX.Y.Z | ||
| gh run watch <run id> --repo QuantEcon/test-actions-lecture-intro --exit-status |
There was a problem hiding this comment.
Fixed in 713c20c. Step 2 now says that gh workflow run prints the new run's URL, and that the number at its end is the run id gh run watch takes, and that --exit-status makes a red run fail the command. gh documents the URL as returned "if available", so the step also gives the fallback: the run is the newest that gh run list --repo QuantEcon/test-actions-lecture-intro --workflow gate.yml --limit 1 lists.
Claude Code (on behalf of mmcky)
There was a problem hiding this comment.
Refined in 8c58d06: the fallback is now a command that prints just the run id, gh run list --repo QuantEcon/test-actions-lecture-intro --workflow gate.yml --limit 1 --json databaseId --jq '.[0].databaseId', as QuantEcon/test-actions-lecture-intro#87 has it in the canary's gate/README.md.
Claude Code (on behalf of mmcky)
…ot's review) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp
…ntry as the file does Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp
…e canary's gate/README.md does Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp
…ere gh run watch's run id comes from (#87) * docs(gate): preview-workers is among what the gate does not cover; say where gh run watch's run id comes from Comments and docs only. QuantEcon/actions#298 added preview-workers after gate.yml was written, and it deploys to no Worker. The README's 'Running the gate' now says what QuantEcon/actions' CONTRIBUTING says (QuantEcon/actions#301). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp * docs(gate): one item per semicolon in the header's list; the fallback prints only the run id (Copilot's review) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp --------- Co-authored-by: Claude Opus 5.5 <[email protected]>

The release gate is live in the canary:
gate.yml(QuantEcon/test-actions-lecture-intro#85) tests a candidate on the fixture ingate/(QuantEcon/test-actions-lecture-intro#84), as agreed on #135 and #136. This PR makes the release procedure use it, and brings the dev docs and PLAN up to date. The maintainer chose the procedure on 2026-11-10: the gate for every release that changes an action, with hand staging kept only for what a fixed gate cannot reach.Changes
CONTRIBUTING.md, Staged Releasesgate.ymlon the canary'smainwithcandidate: vX.Y.Z, wait for it, and link the run. The canary PR and thecache.ymldispatch stay only for what the gate does not reach, which the section lists: a preview's pull-request half,setup-environmentoutside a container,setup-latex,deploy-cloudflareandpreview-workers, a release's own scenarios, and how consumers fetch the actions by tag. The two "Known limits" that the gate closes are gone (thebuild-jupyter-cachesiblings ran at the previous release;publish-gh-pageswas never run). A new one says the gate tests the actions, not the images, and how its pinned image moves. Creating a Release's step 3 now holdsv0"until the release gate passes"docs/dev/TESTING.mdbuild-jupyter-cacheline and the "release beforev0moves" line rewritten for what the gate does and does not dodocs/dev/PLAN.mdmain(below). 0c gets a line saying it is revisited once the gate has replaced the hand-staged legs that the canary'sci.ymlandpublish.ymlstill carry (the maintainer's call: not this wave). The current-state and canary lines say the gate tests a candidateCHANGELOG.md### Documentationentry under[Unreleased], as #178's and #246's PLAN updates hadWhat I checked
The gate on the canary's
main:e40924a(v0, v0.16.0),offbuild-jupyter-cache's four nested calls were rewritten to the checkout, and nothing was downloaded fromquantecon/actions. All three pages executed. Both site jobs restored that run's caches.https://dispatch-release-gate--jade-tarsier-d98a19.netlify.app,https://dispatch-release-gate.qe-preview-canary.pages.devandhttps://quantecon.github.io/test-actions-lecture-intro/each served the marker holdinge40924ae40924a,nothing-deployedpreview-deployonly: "Netlify deployed nothing (deployed is 'false')", and the same for Cloudflare Pages. Every other job was green, Pages included. The verdict opened QuantEcon/test-actions-lecture-intro#86, labelledrelease-gateand assigned to the dispatching account (mmcky). It reached the maintainer's GitHub notifications inbox; a push notification depends on the account's own delivery settingse40924a,build-failscache: every build failed on the stagedRuntimeError, no cache was saved, and every later job was skipped, so nothing deployed. The verdict commented on QuantEcon/test-actions-lecture-intro#86, which stays open for the maintainerThe branch runs that came before are in QuantEcon/test-actions-lecture-intro#84 and QuantEcon/test-actions-lecture-intro#85.
The docs:
python3 scripts/generate-docs.py --check --check-examples --actionlintpasses (21 generated files current; 65 steps and 16 workflows checked; actionlint clean).git diff origin/main...HEAD --numstat -- CHANGELOG.mdshows 15 additions and 0 deletions, and everything from## [0.17.0]down is unchanged.What to watch after merge
Nothing runs: the harness gate decides this docs-only change. The next release is the first under the new procedure. As agreed on #135, it also runs the hand-staged legs once, side by side, to compare them before they are dropped.
Not in this PR
ci.ymlandpublish.yml: not this wave.-Wpasses a raising cell underexecute_notebooks: cache), found by the gate's self-test: its own issue.Part of #135, #136 and #138.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp