Skip to content

Canary: bring its ci.yml, cache.yml and publish.yml back in line with templates/ #310

Closed

Description

@mmcky

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.

Claude Code (on behalf of mmcky)

Activity

  1. added
    infrastructure
    low-priority
    on Nov 10, 2026
  2. mmcky commented on Nov 15, 2026

    @mmcky
    ContributorAuthor

    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.

    Claude Code (on behalf of mmcky)

  3. added a commit that references this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructurelow-priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions