Repository navigation
Description
Goal: no container image reaches :latest without being tested, and the weekly lecture-build matrix (test-containers-lectures.yml) is red only when something is really broken.
Where we stand (verified 2026-09-28)
Next: #141. #102 is closed: #203 fixed it on 2026-09-28 with a CI-side retry, and #144 was closed unmerged. #197 already gave lecture-python.myst a 180-minute limit and records each leg's runner CPU. What #141 still needs:
-
its preventive half: record every leg's duration, and warn when one grows past the previous green run's;
-
a decision on the runtime itself (lecture-python.myst: CPU build time sits at the lecture-validation ceiling #196).
-
The latest matrix run (36370003884) was the weekly run on 2026-09-28, on
c0ac111, and the first with ci(lecture-validation): retry a failed HTML build once with --all; restore lecture-python-programming to the matrix #203's retry.- It failed only in the two
lecture-python.mystlegs, and only onlectures/bayes_nonconj.md. That is numpyro 0.22'sBinomialProbs distribution got invalid probs parameter, the failure every run has hit since 2026-09-18. - Both legs retried the HTML stage and failed again, as a persistent failure should.
- The fix is bayes_nonconj: declare the truncated log-normal prior's (0, 1] support (numpyro 0.22) lecture-python.myst#1065, which had not landed by that run.
- The other six legs passed.
- The matrix has been red since 2026-08-03 (alert: 🔴 CI failure: Test Container Builds #159), apart from one green run on 2026-09-14.
- It failed only in the two
-
Those two legs took 95 min (
quantecon-build) and 125 min (quantecon), inside the 180-minute limit ci(lecture-validation): per-repo timeout (180 min for lecture-python.myst); log the runner CPU #197 gavelecture-python.myst. Thequanteconleg's first HTML attempt alone took 120 minutes, so at the old 120-minute ceiling that leg would have been cancelled. test-containers-lectures: lecture-python.myst doubled to the 120-minute ceiling #141 stays open for the runtime itself (lecture-python.myst: CPU build time sits at the lecture-validation ceiling #196). -
Both images moved to the
anaconda=2026.07baseline the matrix repos pin (deps(containers): move both images to the Anaconda 2026.07 baseline #199, merged 2026-09-25). The build and the smoke test were green, and the matrix runs since show no new failure. -
The matrix covers four repos again. ci(lecture-validation): retry a failed HTML build once with --all; restore lecture-python-programming to the matrix #203 restored
lecture-python-programmingbesidelecture-python-intro,lecture-python.mystandlecture-python-advanced.myst.lecture-jaxis commented out. -
Nothing validates an image before
:latestmoves (containers: no validation runs before the tag every consumer pins moves #142). Any merge touchingcontainers/**rebuilds and pushes:latestimmediately. deps: bump the conda group across 2 directories with 1 update #162, feat(containers): Node 24 LTS from nodejs.org, out of conda #166, test(containers): exercise the real theme and FreeFont path in the smoke fixture (#108) #171 and deps(containers): move both images to the Anaconda 2026.07 baseline #199 all went out that way.
Plan
The work items and their order are the sub-issues below.
Sequencing rationale:
- test-containers-lectures: absorb transient raw-GitHub 429s when building lecture repos #102 is done: ci(lecture-validation): retry a failed HTML build once with --all; restore lecture-python-programming to the matrix #203 closed it on 2026-09-28.
- test-containers-lectures: lecture-python.myst doubled to the 120-minute ceiling #141 comes next, because a matrix that times out cannot tell a healthy image from a broken one.
- containers: no validation runs before the tag every consumer pins moves #142 is the larger change. Its own body says its phase 2 (
main-<sha>tag, retag:lateston green) should follow the release-gate fixture work in Release gate fixture: content and hygiene for the canary's gate.yml #136. The Spike: settle the two gate-mechanism assumptions before building for them #143 spike may re-scope Release gate fixture: content and hygiene for the canary's gate.yml #136, so what phase 2 can reuse waits on the Spike: settle the two gate-mechanism assumptions before building for them #143 decision (see Next steps after the 2026-09-28 session: release gating (#138) and loose ends #212).
Related work
- Tracking: release gating — get to a candidate that is verified before v0 moves #138, release gating for the actions'
v0tag. It has the same structural problem for a different artefact. It is kept separate because its goal is thev0move, not images. - Optimize preview builds: phased plan for the fastest PR previews (tracking) #92, preview-build speed. Two of its items are container changes:
- zstd layers for quantecon-build, plus a tag input for test-container.yml #150 pushes a
:zstdtag and smoke-tests it before:latest, which overlaps containers: no validation runs before the tag every consumer pins moves #142's phase 2; - Ship containers/quantecon-preview: slim TeX-free preview image with pinned deploy CLI #151 adds a new
quantecon-previewimage that this validation will need to cover.
- zstd layers for quantecon-build, plus a tag input for test-container.yml #150 pushes a
- Build-time monitoring across lecture repos, with published benchmarks #186, build-time monitoring. test-containers-lectures: lecture-python.myst doubled to the 120-minute ceiling #141's per-leg duration summary is a small first instance of it.
Out of scope
- The
bayes_nonconj.mdfailure itself: that fix belongs inlecture-python.myst. - Image content changes such as the Anaconda baseline and pins. Those follow the dependency policy in
docs/dev/PLAN.md.
Activity
deps(containers): move both images to the Anaconda 2026.07 baseline (#…
ci(containers): build and smoke-test a pull request's images before t…
ci(containers): build and smoke-test a pull request's images before t…
ci(containers): build and smoke-test a pull request's images before t…
ci(containers): build and smoke-test a pull request's images before t…
ci(containers): build and smoke-test a pull request's images before t…
mmcky commentedon Nov 10, 2026
Every sub-issue is closed, so this tracking issue closes too, as the maintainer decided on 2026-11-10.
:latestuntested. Phase 1 (ci(containers): build and smoke-test a pull request's images before they merge (#142, phase 1) #245) builds and smoke-tests each pull request's candidate. Phase 2 (ci(containers): move :latest only once main's build has passed the smoke test (#142, phase 2) #274) promotesmain's tested digests only when every smoke test passes. Its first live promotion, run 42743671096 on 2026-11-10, went green.lecture-python.myst's ceiling is 240 min (ci(lecture-validation): report each leg's duration and warn as it nears its ceiling; lecture-python.myst gets 240 min (#141, #196) #288). The lecture-side cost is imp_sample: about 33 minutes to execute on CPU since the JAX conversion lecture-python.myst#1118.Related, outside this tracker: #286 (#287) stops a superseded matrix run filing a false alarm, and #277 (retention of
main's candidate tags) is in review as #290.Claude Code (on behalf of mmcky), organiser session
docs(plan): #188 is closed; #282 and #291 join the open issues (#292)