Skip to content

docs: releases pass the release gate before v0 moves (#135, #136) - #301

Merged
mmcky merged 4 commits into
mainfrom
docs/135-release-gate
Nov 10, 2026
Merged

mmcky merged 4 commits into
mainfrom
docs/135-release-gate

Conversation

@mmcky

@mmcky mmcky commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

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), 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

File Change
CONTRIBUTING.md, Staged Releases A release that changes an action is held until the gate passes: dispatch gate.yml on the canary's main with candidate: vX.Y.Z, wait for it, and link the run. The canary PR and the cache.yml dispatch stay only for what the gate does not reach, which the section lists: a preview's pull-request half, setup-environment outside a container, setup-latex, deploy-cloudflare and preview-workers, a release's own scenarios, and how consumers fetch the actions by tag. The two "Known limits" that the gate closes are gone (the build-jupyter-cache siblings ran at the previous release; publish-gh-pages was 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 holds v0 "until the release gate passes"
docs/dev/TESTING.md A row for the gate in the overview table; a section "The release gate", under "The canary"; and in "What is not covered", the build-jupyter-cache line and the "release before v0 moves" line rewritten for what the gate does and does not do
docs/dev/PLAN.md P0's items 0a and 0b are done, so they go; 0d goes too, now that both self-tests have run on main (below). 0c gets a line saying it is revisited once the gate has replaced the hand-staged legs that the canary's ci.yml and publish.yml still carry (the maintainer's call: not this wave). The current-state and canary lines say the gate tests a candidate
CHANGELOG.md A ### Documentation entry under [Unreleased], as #178's and #246's PLAN updates had

What I checked

The gate on the canary's main:

Run Candidate, self-test Result
42769820139 e40924a (v0, v0.16.0), off Green in every job. build-jupyter-cache's four nested calls were rewritten to the checkout, and nothing was downloaded from quantecon/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.dev and https://quantecon.github.io/test-actions-lecture-intro/ each served the marker holding e40924a
42770761791 e40924a, nothing-deployed Red at preview-deploy only: "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, labelled release-gate and assigned to the dispatching account (mmcky). It reached the maintainer's GitHub notifications inbox; a push notification depends on the account's own delivery settings
42773299612 e40924a, build-fails Red at cache: every build failed on the staged RuntimeError, 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 maintainer

The 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 --actionlint passes (21 generated files current; 65 steps and 16 workflows checked; actionlint clean). git diff origin/main...HEAD --numstat -- CHANGELOG.md shows 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

Part of #135, #136 and #138.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMazsJ95KLpeAGcWbbp

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
Copilot AI balanced review requested due to automatic review settings November 10, 2026 07:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread CONTRIBUTING.md
Comment on lines +92 to +93
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@mmcky
mmcky merged commit 3c4b0d6 into main Nov 10, 2026
64 checks passed
@mmcky
mmcky deleted the docs/135-release-gate branch November 10, 2026 08:21
mmcky added a commit to QuantEcon/test-actions-lecture-intro that referenced this pull request Nov 10, 2026
…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]>
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