Repository navigation
Description
Goal: a release candidate is exercised end to end, and can be stopped, before v0 moves to it.
Where we stand (verified 2026-11-04)
Next: the re-scoped work items below. #143's decisions are recorded on that issue, which is closed.
- The gate is a
gate.ymlin the canary. There is nov0-nexttag and no new repo.- Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 is
gate.ymlitself: a candidate-commit input limited tomainandv*tags, secrets scoped to a canary environment, frozen builds (committed image digest, cold, intersphinx off), andpublish-gh-pagesincluded. - Release gate fixture: content and hygiene for the canary's gate.yml #136 is the gate's fixture, in its own canary folder.
- Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 is
- preview-netlify, preview-cloudflare: deploy outside
pull_requeston request, and report whether anything was deployed #227 (new) lets both preview actions deploy on a dispatched or scheduled run behind an opt-in input, with adeployedoutput. Both the gate's preview leg and PLAN 0c need it, so it now blocks Release gating: a gate.yml in the canary tests the candidate before v0 moves #135. - Releases stay staged by hand until the gate is proven (0d). The next is a small v0.13.0.
Parts of the body below predate the spike and these decisions. The sub-issues are the authority on the plan.
One place to watch the release-gating work. The detail lives in PLAN.md (items 0a–0d, added in #137) and in the two design issues; this issue is the sequence, the definition of done, and the current position — it does not duplicate them.
Why this is P0
A release currently reaches a published lecture site before any test has met it. That is the same shape as the alerting item that was P0 before it: the safety net does not do the thing everyone assumes it does.
It also blocks something that is otherwise ready. The lecture family has decided to move to floating @v0 and is sequencing that behind this work (QuantEcon/workspace-lectures#33), because all six of its remaining exact pins sit on publish-gh-pages — the least-gated action in the set.
The finding this rests on
Testing here is in good shape, and better than #100's body suggests — that body predates the harness that answers most of it. test-actions.yml is 15 jobs over four actions, enforced as a required check. test-actions-lecture-intro runs the real chain including publish-gh-pages and preview-netlify.
Coverage is not the problem. Two things are.
First, lead time. The canary leads consumers on one path of three:
| Path | Canary trigger | Consumers | Lead |
|---|---|---|---|
| Weekly cache | schedule, Sun 03:00 UTC |
Mon 02:00 UTC (lecture-dp), Mon 03:00 UTC (six others) |
23–24h |
| Preview | pull_request in the canary |
every PR, every repo | none |
| Publish | tag push in the canary | tag push per repo | none |
Second, and more fundamental: the canary pins @v0, the tag a release moves. So it only ever exercises a published release and cannot test a candidate at all. No change to its triggers fixes that — it is a post-release regression detector by construction.
Definition of done
A bad release cannot reach a published lecture site before it has failed somewhere we are watching. Concretely:
- a release candidate is exercised end to end before
v0moves; - the gate's red is trustworthy — it is not confounded by container drift, dependency drift, or fixture content;
- the gate has been observed stopping a release, and a red gate has been observed reaching a human;
- the paths the gate does not cover are named, not assumed away.
Sequence
Each step is independently useful; they are ordered by dependency, not by size.
- 0a — build
test-actions-release(Release gate fixture: content and hygiene for the canary's gate.yml #136). The gate needs a fixture whose red is unambiguous, and the existing canary structurally cannot be it:quantecon-build:latest, Dependabot enabled,@v0. The first two are the right properties for a sandbox and disqualifying for a gate, and both are repo-level, so one repo cannot hold both roles. Decided: purpose-built rather than trimmed from intro, container pinned by digest, no build-time network reads, ~5 lectures, all three builders, staged-failure self-test from day one. Must cover plotly/kaleido static export — the Pin kaleido<1.0 in both containers to fix ChromeNotFoundError #85 path is uncovered by any fixture today - 0b — add the
v0-nextstaging tag and gate on it (Release gating: a gate.yml in the canary tests the candidate before v0 moves #135). Movev0-nextto the candidate → dispatch the gate → require green → movev0. Works because@v0-nextis as static as@v0; GitHub forbids expressions inuses:, so no parameterised-ref design exists - 0c — close the ungated paths regardless of 0b (Release gating: a gate.yml in the canary tests the candidate before v0 moves #135). Schedule the canary's
ci.ymlandpublish.ymlahead of consumers' Monday builds.publish.ymlhas noworkflow_dispatchtoday, so it cannot even be run by hand. This is the post-release safety net and is worth having whether or not the gate lands - 0d — prove it (Release gating: a gate.yml in the canary tests the candidate before v0 moves #135). Two separate things: that the gate can stop a release, and that a red gate reaches a human. Both have precedent here — the container smoke tests could not fail and still reported green (test: unify container smoke tests and make the fixture exercise the Dockerfiles #108), and the canary failed eight consecutive weeks filing zero issues (build-jupyter-cache: container-mode failures are silent, undebuggable, and use unpinned sub-actions #83)
- Hand back to consumers. The lecture family repins its six call sites — QuantEcon/workspace-lectures#31 section A. Repin the canary first, watch one real build, then the lecture repos
What this will not cover, stated up front
build-jupyter-cache reaches its siblings at a hardcoded @v0 — setup-environment@v0 and build-lectures@v0, four call sites in build-jupyter-cache/action.yml. A @v0-next run therefore exercises the candidate's cache action against the previous release's siblings, and that pairing stays untested until v0 moves.
So "verified green before release" will mean "everything except that chain", and it should be described that way rather than as a blanket guarantee. Two options for closing it are sketched in #135 — rewriting sibling refs to the candidate SHA at release time, or accepting it and leaning on the cache path's existing 23–24 hour lead. Not yet decided.
Also unchanged: real-scale performance and content diversity stay with test-containers-lectures.yml, and the lecture-jax GPU path stays out of scope while QuantEcon/lecture-jax#284 is open.
Open decisions
| Question | Blocks |
|---|---|
Is the release blocked automatically, or by a documented runbook step? There is no release automation here today — v0 is moved by hand |
0b |
| Who receives a red gate — an issue in this repo, a notification, both? | 0d |
Is the build-jupyter-cache residual accepted, or worth the ref-rewrite? |
scope of the claim |
Related
- Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 — gate mechanism and
v0-next - Release gate fixture: content and hygiene for the canary's gate.yml #136 — the gate fixture
- PLAN: add release gating as P0, correct the consumers table #137 —
PLAN.mdupdate carrying items 0a–0d and the corrected consumers table - testing: publish/preview/cache action logic has no automated tests #100 — testing; 0a–0d are its stage 4 and the verification it did not specify
- build-jupyter-cache: container-mode failures are silent, undebuggable, and use unpinned sub-actions #83, test: unify container smoke tests and make the fixture exercise the Dockerfiles #108 — the two precedents behind 0d
- QuantEcon/workspace-lectures#33 — consumer view; QuantEcon/workspace-lectures#31 — the repin that follows
Activity
mmcky commentedon Aug 11, 2026
see above
quantecon-services commentedon Sep 24, 2026
Tracker housekeeping, 2026-09-24:
Projectissue type (QEP-6). The dashboard listed it only as an unregistered "candidate".Decisiontype. Its outcome decides whether Release gate fixture: content and hygiene for the canary's gate.yml #136 stands or is superseded, and the native chain Spike: settle the two gate-mechanism assumptions before building for them #143 → Release gate fixture: content and hygiene for the canary's gate.yml #136 → Release gating: a gate.yml in the canary tests the candidate before v0 moves #135 is already in place.@v0) says it is blocked on Release gating: a gate.yml in the canary tests the candidate before v0 moves #135, but no native dependency exists. Adding "workspace-lectures#33 blocked by actions#135" makes that visible on the dashboard.v0goal.Generated by Claude Code
pull_requeston request, and report whether anything was deployed #227mmcky commentedon Nov 10, 2026
The goal is met: a release candidate is exercised end to end, and can be stopped, before
v0moves. The release gate (#135) runs on its fixture (#136) in the canary, and #301 made it part of the release procedure. Its first runs on the canary'smaininclude both self-tests going red and v0.17.0 going green, as #135 lists. The one item left, PLAN's P0 item 0c, is now #302. Closing.Claude Code (on behalf of mmcky)
docs(plan): v0 is on v0.17.0; release gating's open item is #302 (#303)