Skip to content

feat(containers): a pinned Chrome for kaleido 1.5.2 in both images (#342) - #346

Merged
mmcky merged 5 commits into
mainfrom
feat/342-chrome-kaleido
Nov 19, 2026
Merged

mmcky merged 5 commits into
mainfrom
feat/342-chrome-kaleido

Conversation

@mmcky

@mmcky mmcky commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Puts a pinned Chrome in both images and moves kaleido to 1.5.2, so a lecture can export plotly figures with kaleido 1 in a container job. This builds to the check agreed on #342 (its comment of 2026-11-19) and the maintainer's four decisions: Chrome for Testing pinned; both images; kaleido==1.5.2; not BREAKING.

Why. kaleido 1 bundles no browser: its browser layer, choreographer, looks for a Chrome it downloaded under $HOME/.local/share/choreographer, then BROWSER_PATH, then PATH and /usr/bin. A container job sets HOME=/github/home, so a Chrome fetched at image build time is not found, which is why both images held kaleido<1.0 (#85). QuantEcon/lectures' shared environment pins kaleido 1 (QuantEcon/lectures#70; QuantEcon/lectures#77 moves it to 1.5.2), and three advanced lectures export figures with it, so the advanced site could not build in either image.

Changes

File Change
containers/quantecon/Dockerfile, containers/quantecon-build/Dockerfile A new layer after the Node layer, the same in both: Chrome for Testing 158.0.8127.36 (CHROME_VERSION, CHROME_SHA256), downloaded, checked with sha256sum -c and unpacked to /opt/chrome, with ENV BROWSER_PATH=/opt/chrome/chrome. The layer installs unzip, which the images lack, and fonts-liberation, which Chrome's own package depends on; in the first apt layer either would re-run TeX Live and the conda solve. The download retries (curl --retry 5 --retry-all-errors). The verify step fails unless "$BROWSER_PATH" --version names the pin and ldd, run over the binary and every /opt/chrome/*.so*, finds every library; it also fails if ldd itself fails, rather than passing on empty output. The apt list's Chrome-libraries comment names this Chrome, and the Node comment gives wrangler's minimum as 22.12 (#341)
containers/quantecon/environment.yml, containers/quantecon-build/environment.yml kaleido<1.0 becomes kaleido==1.5.2, with the reason. The lean file's header keeps #222's history without making kaleido the reason plotly stays at 6.7.0: the baseline is
containers/quantecon/tests/minimal-jupyter-book/intro.md The export cell, in an image (the marker file), first asserts: kaleido is 1.0 or later, since 0.2 would export with its own bundled browser; BROWSER_PATH is an executable; choreographer's Chromium.find_browser(skip_local=False) returns exactly it; and no Chrome download directory exists under HOME. Outside an image, as run-local-tests.sh runs it, it exports with whatever Chrome kaleido finds. A new cell exports a go.Scatter3d (the BCG lectures export go.Surface and go.Scatter3d), drawn with WebGL, which headless Chrome runs in software. With no legend, title or margins, everything but the paper is WebGL's, and the cell fails unless a tenth of the pixels are drawn and the red markers show: a WebGL failure returns a blank PNG, not an error
containers/quantecon/tests/smoke-test.sh, run-local-tests.sh Comments and the local install hint: kaleido 1 with a Chrome, not kaleido<1.0
scripts/check-base-pins.sh Also fails unless every ENV <NAME>_VERSION and ENV <NAME>_SHA256 has one value in every Dockerfile that sets it (Miniconda, Node, Chrome), so a hand bump cannot reach one image only. Silent when they agree, so validate-containers.yml's summary is unchanged. Five new self-test cases
docs/dev/CONTAINERS.md Chrome joins Miniconda and Node as a hand-bumped pin, with the bump recipe: the Stable version from Chrome for Testing's JSON endpoint, the download's MD5 checked against the x-goog-hash Google serves, its SHA-256 recorded. The smoke-test section names the export cell's checks; the local-test line drops kaleido<1.0
docs/user/containers.md "What is in them": kaleido 1.x, and a Chrome bullet
.github/dependabot.yml The conda section's comment names Miniconda, Node and Chrome as hand-bumped, and kaleido, which drives Chrome, as a pip entry Dependabot tracks
.github/workflows/test-container.yml, .github/fixtures/mini-lectures/README.md Comments only: #85's note, and the README's kaleido path, no longer speak of a bundled Chromium
CHANGELOG.md A ### Changed entry under [Unreleased], not BREAKING, naming what changes for an exported figure: Chrome 158 and the image's fonts, MathJax 3.2.2 for 2.7.5 (both from cdnjs), slower exports, no EPS and no kaleido.scopes, and the way back (kaleido<1 through environment-update)

The test, and red on today's images

The smoke test's export cell is the test #342 asks for: fig.to_image(format="png") in a real container: job, where test-container.yml first asserts HOME=/github/home. The new assertions make it fail on a return to kaleido 0.2's bundled browser, a lost BROWSER_PATH, or a Chrome found under HOME, the #85 trap, which docker run (whose HOME is the build's /root) would otherwise hide.

To show it red on today's images, I dispatched test-container.yml from a scratch branch carrying only this fixture and the new check-base-pins.sh, against :latest of both images: run 44505912881 (branch scratch/342-kaleido-red, deleted since). In both images:

  • The smoke test failed at the new version assertion, AssertionError: kaleido 0.2.1, expected 1.5.2. That run had an exact-version assertion, which 4006e93 replaced with "1.0 or later" so that a Dependabot kaleido bump doesn't fail until someone edits the fixture. The new assertion fails on the same kaleido 0.2.1.
  • The self-test failed too, for the same reason: the export cell now fails before the staged sentinel cell can run. That happens on today's images only.
  • A scratch-only step reproduced Full image: a system Chrome, so kaleido 1.x works in container jobs #342's own failure. It installed kaleido==1.5.2 over the image and exported a figure in the container job, and plotly raised Kaleido requires Google Chrome to be installed.
  • A second scratch step ran the extended check-base-pins.sh in the image's bash 5.2. Its self-test passed, and so did the check on main's Dockerfiles.

The candidates this pull request builds (validate-containers.yml) are the green half. On 4006e93:

  • both images built;
  • the verify step printed Google Chrome for Testing 158.0.8127.36 and ldd found every library;
  • fonts-liberation installed, and fontconfig's trigger ran;
  • both smoke tests passed, the new assertions included.

I calibrated the 3D cell's thresholds before adding it here. A scratch run of test-container.yml against 98cc0e9's candidates (pr-346-20261119-105217-98cc0e9, run 44516894499, branch scratch/342-webgl-check, deleted since) passed in both images: 50,480 of 90,000 pixels drawn and 4,567 red, against thresholds of 9,000 and 100, where a blank export draws about none.

Against the 2026-11-17 build of :latest, pip's installs changed only by kaleido 0.2.1 → 1.5.2 and the new choreographer 1.4.0, logistro 2.0.1 and simplejson 4.3.0, plus prettytable 3.18.0 → 3.19.0 in the lean image.

What I checked

  • The issue check, written before any code and reviewed independently. Against main I checked:
    • choreographer 1.4.0's lookup order, its launch flags (--no-sandbox, --disable-dev-shm-usage, a temporary --user-data-dir, so Chrome runs as root with Docker's 64 MB /dev/shm), and that only a download creates its data directory, read from the wheel;
    • that the Anaconda 2026.07 metapackage pins plotly 6.7.0 and holds no kaleido, so no baseline package moves;
    • that Google's apt repository lists only the current Chrome, so it cannot hold a pin;
    • that Chrome for Testing's versioned URLs last (120.0.6099.109, from February 2024, still downloads).
  • The Chrome pin. I downloaded chrome-linux64.zip 158.0.8127.36 (208.1 MB, 432.0 MB unpacked). Its MD5 matches Google's x-goog-hash, and its SHA-256 is the CHROME_SHA256 here. The 32 libraries chrome links against, read from its ELF DT_NEEDED entries without running it, all come from the images' existing apt list and its dependencies, with no GTK.
  • kaleido 1.5.2 against 1.5.1: the wheels differ only in _kaleido_tab/_tab.py (the fix for the intermittent kaleido_scopes is not defined), with the same requirements. plotly 6.7.0's kaleido extra asks for >=1.1.0.
  • The CHANGELOG's figure notes, from the sources:
    • plotly 6.7.0 points kaleido 0.2 at MathJax 2.7.5 on cdnjs, and kaleido 1.5.2 defaults to MathJax 3.2.2 on cdnjs;
    • plotly refuses EPS with kaleido 1;
    • an org-wide code search finds no kaleido.scope or PlotlyScope.
  • The export cell's checks, run locally against kaleido 1.5.2 and choreographer 1.4.0 with a stand-in BROWSER_PATH. On this Mac they failed: an earlier kaleido_get_chrome download in choreographer's data directory is what choreographer would launch, ahead of BROWSER_PATH. That is the trap the assertion is there for.
  • generate-docs.py --check --check-examples --actionlint (actionlint 1.7.12): 23 generated files current, 18 complete workflows clean. actionlint and scripts/lint-shell.py: clean. shellcheck on check-base-pins.sh, smoke-test.sh and run-local-tests.sh: nothing new.
  • CHANGELOG.md: additions only, under [Unreleased]; every released section is unchanged.

What to watch after merge

The merge is on the organiser's word only, clear of the canary's Sunday runs (2026-11-22, 00:00 to 03:00 UTC) and the Monday lecture matrix (2026-11-23 from 02:00 UTC, about 4.5 hours).

  • build-containers.yml rebuilds both images from the :latest cache. Both conda layers re-run, since both environment.yml files change. In the lean image, prettytable will move from 3.18.0 to 3.19.0 (released after the last build); house_auction installs prettytable<3.18 for itself. Then the new Chrome layer, the smoke tests, the size report and the promotion. :latest then moves for every consumer:
    • lean: lecture-dp, QuantEcon/lectures' site build, the canary and its gate, the two theme test repositories, and the harness;
    • full: the templates and the lecture matrix.
  • The size report: about +0.04 GB compressed and +0.13 GB on disk per image, as this pull request's candidates measured. Full image: 3.39 → 3.43 GB compressed, 8.78 → 8.91 GB on disk. Lean image: 2.85 → 2.89 GB and 7.13 → 7.26 GB.
  • The lecture matrix after the promotion, in both images:
    • the three advanced pages, BCG_complete_mkts, BCG_incomplete_mkts and knowing_forecasts_of_others (10 exports), and lecture-python.myst's back_prop, which installs its own kaleido and Chrome. choreographer prefers that downloaded Chrome over BROWSER_PATH, so back_prop should stay green;
    • non-blank PNGs, and typeset LaTeX labels in knowing_forecasts_of_others;
    • execution times against run 44030094100: BCG_complete_mkts 67/57 s, BCG_incomplete_mkts 142/105 s, knowing_forecasts_of_others 17/11 s (full/lean);
    • a known red that is not this change: lecture-python-intro · quantecon, the World Bank fetch (🔴 CI failure: Test Container Builds #333).
  • The canary: this changes no action, so the release that carries the entry gives the release gate nothing new. The canary's next scheduled runs build lecture-python-intro in the new lean image, which exports no figures.
  • If a figure breaks: promote-image.sh's step summary gives the command that puts :latest back.

Not in this PR

  • A choreographer pin. The export cell asserts that choreographer resolves to BROWSER_PATH, so a rebuild that resolved a choreographer looking elsewhere fails its pull request. A pin would turn each kaleido bump that raises choreographer's floor into a two-package change.
  • The optional negative check (BROWSER_PATH=/nonexistent must raise). It adds little to the find_browser assertion, and a launch that hangs rather than fails would stall the fixture.
  • QuantEcon/lectures' own pin, which environment: kaleido 1.5.2 lectures#77 moves to 1.5.2.

Closes #342

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg

)

kaleido 1 bundles no browser, and the Chrome it downloads for itself goes
under $HOME, which a container job sets to /github/home, so both images held
kaleido below 1.0 (#85). Each image now installs Chrome for Testing
158.0.8127.36 in /opt/chrome, pinned by version and SHA-256 like Node, in its
own layer after the conda layer, with fonts-liberation, and names it in
BROWSER_PATH, which kaleido's choreographer reads whatever HOME is. The build
fails unless the Chrome reports the pinned version and ldd finds every library
it needs. kaleido moves to 1.5.2, pinned exactly in both images; plotly stays
at the baseline's 6.7.0.

The smoke fixture's export cell, in an image, first asserts the pinned
kaleido, that BROWSER_PATH is an executable, that choreographer would launch
exactly it, and that no Chrome was downloaded under HOME. check-base-pins.sh
now also fails unless both Dockerfiles give each ENV *_VERSION and *_SHA256
one value. The Dockerfiles' note on wrangler's Node minimum is now 22.12.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 10:35
The export cell's check is there to fail on a return to kaleido 0.2, whose
bundled browser would take the export away from the image's Chrome. An exact
version made every Dependabot kaleido bump fail until the fixture was edited,
for no gain. The notes saying so in dependabot.yml, CONTAINERS.md and the
environment files go with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg

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.

🟡 Changes recommended

The self-test explanation and container: warning in docs/dev/CONTAINERS.md are incorrectly nested in the fourth list item, making general test guidance appear specific to an export-failure condition.

1 open issue
What changed in this PR

Enables Plotly static-image export with kaleido 1 in both QuantEcon container images, addressing #342 and the browser-discovery problem behind #85 when container jobs change HOME.

Changes:

  • Installs checksum-verified Chrome for Testing at a fixed path and pins kaleido to 1.5.2 in both images.
  • Strengthens the export fixture and checks that hand-maintained Dockerfile pins agree across images.
  • Updates maintenance guidance, local-test hints, and migration notes.
File Description
scripts/​check-base-pins.sh Checks matching version and checksum pins; adds five self-test cases.
docs/​user/​containers.md Describes kaleido 1 and the fixed Chrome installation.
docs/​dev/​CONTAINERS.md Documents Chrome updates, pin checks, and export validation.
containers/​quantecon/​tests/​smoke-test.sh Corrects the comment explaining the earlier Chrome-discovery failure.
containers/​quantecon/​tests/​run-local-tests.sh Updates local installation hints for kaleido 1 and Chrome.
containers/​quantecon/​tests/​minimal-jupyter-book/​intro.md Asserts the kaleido version and browser selection before exporting.
containers/​quantecon/​environment.yml Pins kaleido to 1.5.2 in the full image.
containers/​quantecon/​Dockerfile Installs pinned Chrome, sets BROWSER_PATH, and verifies it.
containers/​quantecon-build/​environment.yml Pins kaleido to 1.5.2 in the lean image.
containers/​quantecon-build/​Dockerfile Adds the same Chrome installation and verification.
CHANGELOG.md Records the upgrade, export differences, and downgrade option.
.github/​dependabot.yml Updates comments about manual pins and kaleido fixture maintenance.

Review effort: Max (adaptive)

Comment thread docs/dev/CONTAINERS.md Resolved
mmcky and others added 3 commits November 19, 2026 21:51
…e; measured sizes (#342)

The self-test and `docker run` sentences had run on into the last item of
the export cell's failure list (Copilot's review). The CHANGELOG gives the
growth the pull request's candidates measured: 0.04 GB compressed and 0.13 GB
on disk per image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg
…e library (#342)

The merge session's review of #346:
- The smoke fixture exports a go.Scatter3d with no legend, title or margins,
  so everything in the picture but the paper is WebGL's, which headless
  Chrome runs in software. The cell fails unless a tenth of the pixels are
  drawn and the red markers show: a WebGL failure returns a blank PNG, not an
  error. The BCG lectures export go.Surface and go.Scatter3d.
- The verify step runs ldd over /opt/chrome/*.so* as well as the binary, and
  fails if ldd itself fails, rather than passing on empty output.
- The Chrome download retries.
- test-container.yml's note on #85 and the mini-lectures README no longer
  speak of a bundled Chromium.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg
CHANGELOG: #345's `### Added` first, then this pull request's `### Changed`,
under [Unreleased]; the released sections are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZz3f9g9nSCqCaQjHg
@mmcky
mmcky merged commit 4cd3ee6 into main Nov 19, 2026
79 checks passed
@mmcky
mmcky deleted the feat/342-chrome-kaleido branch November 19, 2026 20:47
mmcky added a commit to QuantEcon/lectures that referenced this pull request Nov 22, 2026
…not a traceback

From the review of this pull request (Copilot's thread on
tools/site-matrix, and the organiser's reviewer). `environment: [base]`
or `{name: base}`, and the same for `runner`, raised TypeError on the
table lookup, so site-matrix exited with a traceback and stopped
collecting the other sites' refusals. Both lookups now check for a string
first and refuse anything else as they refuse an unknown name; a test
covers a list and a mapping for each.

Also: the workflow records the environment with `pip list --format=freeze`,
since pip freeze gives a package conda installed (pandas, plotly, rich,
seaborn, statsmodels, tabulate) as `name @ file:///...` with no version;
and the header of _base/environment-update.yml and _base/README.md no
longer say that nothing builds with the list, that the image holds no
Chrome (both images carry Chrome for Testing 158.0.8127.36 at /opt/chrome
since QuantEcon/actions#346), or that the series are still being brought
to the baseline. No base-environment cache exists yet, so changing the
list's comments costs no cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
mmcky added a commit to QuantEcon/lectures that referenced this pull request Nov 22, 2026
…not a traceback

From the review of this pull request (Copilot's thread on
tools/site-matrix, and the organiser's reviewer). `environment: [base]`
or `{name: base}`, and the same for `runner`, raised TypeError on the
table lookup, so site-matrix exited with a traceback and stopped
collecting the other sites' refusals. Both lookups now check for a string
first and refuse anything else as they refuse an unknown name; a test
covers a list and a mapping for each.

Also: the workflow records the environment with `pip list --format=freeze`,
since pip freeze gives a package conda installed (pandas, plotly, rich,
seaborn, statsmodels, tabulate) as `name @ file:///...` with no version;
and the header of _base/environment-update.yml and _base/README.md no
longer say that nothing builds with the list, that the image holds no
Chrome (both images carry Chrome for Testing 158.0.8127.36 at /opt/chrome
since QuantEcon/actions#346), or that the series are still being brought
to the baseline. No base-environment cache exists yet, so changing the
list's comments costs no cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
mmcky added a commit that referenced this pull request Nov 28, 2026
Cuts v0.22.0, a minor release: #357 and #345 add features, and nothing in it is marked ⚠️ BREAKING. It carries #357's `deploy-release` reusable workflow, #345's `comment-key` and `toc-file`, and #346's images, whose CHANGELOG entries are already under `[Unreleased]`, and Dependabot's #348, #352 and #347, whose entries this PR writes. `v0` is on v0.21.1, and moves to v0.22.0 only after the release gate and the staging below have passed it.

## What's in it

| Change | PR |
|---|---|
| `deploy-release`, the first reusable workflow for lecture repositories, and its caller, `templates/deploy-release.yml`: on a release published for a `publish-*` tag it deploys that release's site to GitHub Pages, and on a dispatch with a tag it deploys that tag's release, which is the rollback. Its `### Added` entry is already under `[Unreleased]` | #357 |
| `comment-key` and `toc-file` in `preview-netlify`, `preview-cloudflare` and `preview-workers`, for several sites on one pull request. Both are empty by default, which leaves the comment, its marker and its links as they were. Its `### Added` entry is already under `[Unreleased]` | #345 |
| Chrome for Testing 158 in both images, and kaleido 1.5.2. Its `### Changed` entry is already under `[Unreleased]`. `:latest` has carried it since 2026-11-19, so this release only records it | #346 |
| wrangler 4.166.0 in `preview-cloudflare`, `preview-workers` and `deploy-cloudflare`, up from 4.162.0; netlify-cli 27.20.1 in `preview-netlify`, up from 27.19.0. Neither raises its minimum Node, which stays at 22.12 for wrangler and 22.13 for netlify-cli. One entry for both | #348, #352 |
| Both images on the `ubuntu:24.04` image of 2026-11-10, pinned by digest. `:latest` has carried it since 2026-11-20, so this release only records it | #347 |

Also merged since v0.21.1, with no entry of its own: #344 (PLAN), #350 (CI and docs: the canary watcher reads the canary's scheduled `ci.yml` and `publish.yml` runs) and #351 (PyYAML 6.0.4 in `scripts/requirements.txt`, CI only).

## Changes in this PR

| File | Change |
|---|---|
| `CHANGELOG.md` | `## [0.22.0] - 2026-11-28` below an empty `## [Unreleased]`. Under `### Changed`, the entry for #348 and #352 first; then #346's, with one line added (both images rebuilt and smoke-tested, and `:latest` moved on 2026-11-19, before this release); then #347's. `### Added` keeps #357's and #345's entries as they were |
| `docs/dev/PLAN.md` | The release line: the latest release is v0.22.0, and `@v0` is on v0.21.1 until the gate has passed it. The line counting the actions names the reusable workflow, `deploy-release`. The rows for `lecture-jax`, `lecture-python-intro`, `lecture-python-advanced.myst`, `lecture-python-programming`, `lecture-python-programming.fr` and `continuous_time_mcs` are on `@v0`, where PLAN said `@v0.12.0`, and the paragraph on their exact pins goes with them. QuantEcon/lectures' row names `setup-environment` too, which its `site-build.yml` runs on its full-image legs, `intro` and `advanced`, and counts the six sites it builds now. Two rollout lines that still named exact pins say `@v0`: `publish-gh-pages`' 8/8, and `lecture-jax`'s previews |

The date is today's in UTC.

## What I checked

- **The CHANGELOG:** the diff adds 12 lines and deletes none, and everything from `## [0.21.1]` down is byte-identical to `main`. Every PR merged since v0.21.1 has its entry, or is listed above. The lockfiles on `main` pin wrangler 4.166.0 (engines `>=22.12.0`) in all three Cloudflare actions and netlify-cli 27.20.1 (`>=22.13.0`).
- **The consumers,** read today from each repository's default-branch workflows: `lecture-jax` and `lecture-python-programming.fr` call `preview-netlify@v0` (`ci.yml`) and `publish-gh-pages@v0` (`publish.yml`); `lecture-python-intro`, `lecture-python-advanced.myst`, `lecture-python-programming` and `continuous_time_mcs` call `publish-gh-pages@v0` (`publish.yml`). No other workflow in them names this repository. QuantEcon/lectures' `site-build.yml` runs `setup-environment@v0` on the legs whose `site.yml` gives a container runner and `environment: base`, which are `intro` and `advanced`, and `build-lectures@v0` on every leg.
- **The build actions,** `setup-environment`, `setup-latex`, `build-lectures`, `build-jupyter-cache`, `restore-jupyter-cache`, `publish-gh-pages` and `restore-gh-pages`, are byte-identical to v0.21.1 at `19fdc20`, and none calls a script that has changed since. `deploy-cloudflare` changes only in its `package.json` and `package-lock.json` (#348, #352).
- **`generate-docs.py --check --check-examples --actionlint`:** 24 files current; 75 `quantecon/actions` steps and 20 complete workflows checked, clean under actionlint 1.7.12. `actionlint` finds `.github/workflows/` clean, and `scripts/lint-shell.py`, with shellcheck 0.11.0, finds 74 `run:` scripts in 11 `action.yml` files, 216 in 9 workflows, and 16 `scripts/*.sh` clean.
- **The harness skips this PR's files,** since the gate's `IGNORED` covers `CHANGELOG.md` and `docs/`. The evidence is `main`'s full harness at `19fdc20`, #351's merge commit, which comes after #352's lockfile changes: dispatched run https://github.com/QuantEcon/actions/actions/runs/46131794415, green on its first attempt, with 70 jobs passed and 5 skipped.

## Staging, after the tag

As CONTRIBUTING's Staged Releases says, apart from the departures in steps 3 and 5:

1. **The release gate:** `gate.yml` on the canary's `main`, with `candidate=v0.22.0` and the self-test off, outside Sunday 00:00 to 03:00 UTC. It must be green, with each site serving the marker for the release commit, and its log must show both preview deploys running the new CLIs, wrangler 4.166.0 and netlify-cli 27.20.1. The run is linked here.
2. **A canary PR for #345's pull-request half,** which the gate doesn't reach: a branch `staged-v0.22.0` in the canary with every `quantecon/actions/...` step pinned `@v0.22.0`, inputs as `templates/` has them (no `comment-key`, no `toc-file`), and a one-line change to one lecture. Checked by hand: each provider's placeholder comment lists the changed lecture, and its deploy then replaces that same comment, with its marker as before; each `pr-<N>` preview serves the build's marker and the changed lecture, by content; a second push updates the same two comments. The PR is closed unmerged with a results note, and linked here.
3. **`deploy-release` on the canary,** which the gate doesn't reach and the harness checks only as a file: a caller on the canary's `main`, `templates/deploy-release.yml` with its `uses:` pinned `@v0.22.0`, merged on review; a release made by the canary's `publish.yml` on a new `publish-*` tag, which starts no `deploy-release` run; then a dispatch with `tag=publish-check-310`, the rollback path, and that new release published again, the release path. Each is checked by its upload job's `commit` and by the site serving, by content, a file whose bytes differ between the two releases. This departs from CONTRIBUTING, which stages on a canary branch: GitHub dispatches only a workflow that is on the default branch, and the canary's `github-pages` environment admits only `main` and `publish*` tags. The post-move PR updates CONTRIBUTING to match. The runs are linked here.
4. **No lecture matrix at the candidate:** the build actions are unchanged, and #346's and #347's images are already `:latest`. Monday's scheduled run 45098004558, on `main` at `06b493f` with `:latest` of 2026-11-20, ran this build path green on all 8 legs.
5. **Nothing staged by hand for `deploy-cloudflare` and `preview-workers`,** which the gate doesn't reach. Neither has an `@v0` consumer: the two `deploy-cloudflare` callers pin `v0.12.0`, and `preview-workers` has none yet (#299). The harness installs the pinned wrangler for both and runs it ("pinned CLIs install from their lockfiles and run", each action's "the pinned wrangler accepts the generated config", and `deploy-cloudflare` on Node 22.11 and 22.12), and covers #345's keyed and toc paths in its fixtures, all green in the run above.
6. **Once `v0` has moved,** which is asked for on its own: the canary's `cache.yml`, then `ci.yml`, on its `main`; its `deploy-release` caller moved to `@v0` and dispatched once more; then its `publish.yml`, so the site ends on a marked build; then a post-move PR here for PLAN's `v0` line, the canary drift check's workflow list, and TESTING's and CONTRIBUTING's lines on the reusable workflow. The move reaches the `@v0` callers of `preview-netlify` on default inputs, and QuantEcon/lectures' site build, whose `setup-environment` and `build-lectures` this release doesn't change. The runs are linked here.

Copilot: not requested (Matt, 2026-11-22).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01WT8bMYECPyC5K5RvEg6uiq
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.

Full image: a system Chrome, so kaleido 1.x works in container jobs

2 participants