You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Canary: bring its ci.yml, cache.yml and publish.yml back in line with templates/ #310
infrastructureSubstantial CI / build / deploy / tooling / automation work, or behaviour-preserving restructuringlow-priorityNice to have, no time pressure
Carried from #100 when it closed (its Stage 2). The canary, QuantEcon/test-actions-lecture-intro, is meant to show what a repository that copies templates/ gets. Its three workflows differ from the templates (checked 2026-11-10):
Workflow
templates/
The canary
ci.yml
On pull_request to main. Four jobs: the placeholder comment, the build, a separate deploy job, and the PDF check (#230). Restores the execution cache
On pull_request and workflow_dispatch. One job, which builds and deploys. Restores the build cache
cache.yml
Weekly on Sunday at 00:00 UTC, by hand, and on a push to main that changes environment.yml
Weekly on Sunday at 03:00 UTC, and by hand
publish.yml
On a push to main, and by hand. The build and the deploy are separate jobs
On a publish* tag only, in one job
So a change to a template reaches no real run until a consumer copies it. Two things to settle when this is picked up:
Which differences the canary keeps on purpose. Its publish* tag stops Pages redeploying on every push, and the release gate now deploys the same Pages site from the canary's main.
How the two stay in step afterwards.
This overlaps #302, which schedules the canary's ci.yml and publish.yml, so the two are best done together. Low priority.
Issue check (2026-11-15) and the maintainer's decision (2026-11-16). The comparison in this issue holds; the template changes since (#315's comment in restore.yml, #316's commented nitpick: lines) don't change it. The fourth file, restore.yml, is already the template byte for byte (QuantEcon/test-actions-lecture-intro#91).
Decided: realign, then check against v0. One canary PR, together with #302, rebuilds ci.yml, cache.yml and publish.yml from templates/ at v0, the ref the canary runs. Its description carries a keep-or-adopt table of today's differences for the maintainer to rule on, row by row. The candidates include persist-credentials: false with the deploy tokens kept out of the job that runs notebooks, publish.yml's release-assets job, the lean or full image, and the build cache. The canary's linkcheck.yml is removed too: it checks a gh-pages branch last written on 2025-11-07, rejects status 200, and has filed 27 open reports of that misconfiguration, which are closed once the removal merges, and the gh-pages branch, unused since Pages builds from a workflow, is deleted.
After that, a weekly drift check runs. It compares the canary's four files with templates/ at v0, parsing the YAML and ignoring comments, against the kept differences declared by path in one file in this repository. It compares against v0 rather than the newest tag because, in a staged release, the new tag exists before v0 moves.
infrastructureSubstantial CI / build / deploy / tooling / automation work, or behaviour-preserving restructuringlow-priorityNice to have, no time pressure
Activity
mmcky commentedon Nov 15, 2026
Issue check (2026-11-15) and the maintainer's decision (2026-11-16). The comparison in this issue holds; the template changes since (#315's comment in
restore.yml, #316's commentednitpick:lines) don't change it. The fourth file,restore.yml, is already the template byte for byte (QuantEcon/test-actions-lecture-intro#91).Decided: realign, then check against
v0. One canary PR, together with #302, rebuildsci.yml,cache.ymlandpublish.ymlfromtemplates/atv0, the ref the canary runs. Its description carries a keep-or-adopt table of today's differences for the maintainer to rule on, row by row. The candidates includepersist-credentials: falsewith the deploy tokens kept out of the job that runs notebooks,publish.yml's release-assets job, the lean or full image, and the build cache. The canary'slinkcheck.ymlis removed too: it checks agh-pagesbranch last written on 2025-11-07, rejects status 200, and has filed 27 open reports of that misconfiguration, which are closed once the removal merges, and thegh-pagesbranch, unused since Pages builds from a workflow, is deleted.After that, a weekly drift check runs. It compares the canary's four files with
templates/atv0, parsing the YAML and ignoring comments, against the kept differences declared by path in one file in this repository. It compares againstv0rather than the newest tag because, in a staged release, the new tag exists beforev0moves.Claude Code (on behalf of mmcky)
ci(canary-watch): watch the canary's scheduled workflows from here (#302
ci: ci.yml, cache.yml and publish.yml as templates/ at v0, scheduled;…
ci(canary-watch): check the canary for drift from templates/ at v0 (#310
docs: point versioning.md at the release gate; PLAN's issue rows (#310)
ci(canary-watch): close the drift check's gaps from review (#310)
release: v0.21.0 (#334)