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
build-lectures: -n (nitpick) absent from default strictness; no extra-args passthrough via build-jupyter-cache #97
From the v0.8.0 validation study against native lecture-python-intro / lecture-python-programming. Context: QuantEcon/lectures#11.
build-lectures defaults extra-args to -W --keep-going (build-lectures/action.yml:25) — no -n. HTML-only gap: :103-104 hard-codes -n for pdflatex and jupyter, and only the html branch (:102) leaves builder_args empty, so the published site builds without nitpick. build-jupyter-cache calls build-lectures at three fixed with: blocks with no extra-args passthrough (build-jupyter-cache/action.yml:160-190), so its consumers cannot get -n — or any flag — in.
So the default already equals both native cache builds and is stricter than intro's publish; -n diverges only on the CI/publish HTML path, which a direct build-lectures consumer can override.
templates/ci.yml:82 and templates/publish.yml:98 hard-code extra-args: '-W --keep-going', and extra-args replaces rather than extends the default (build-lectures/README.md:190-203): changing the default is a no-op for template-derived consumers, and adding -n but dropping -W silently loses build-failure detection.
Decisions needed before any code
Org strictness for HTML builds — add -n? Standardization, not a parity fix, and consumer-visible: repos with broken cross-references start failing CI, so it wants an announcement and a minor release.
Passthrough shape — a per-builder html-extra-args beats a blanket extra-args, since pdflatex and jupyter already inject -n and would get it twice.
Then, in this order
Apply the decided strictness to templates/ci.yml:82 and templates/publish.yml:98 — that is what reaches consumers.
Add the passthrough to build-jupyter-cache/action.yml:42-51, wired at :168/:178/:188, mirroring the upload-failure-reports plumbing from v0.11.0 (build-jupyter-cache: container-mode failures are silent, undebuggable, and use unpinned sub-actions #83); update the reproduce commands at :439-443, whose comment (:438) requires them to match today's flags. templates/cache.yml:62 inherits the gap and cannot carry the strictness decision until then.
Document the native-equivalent invocation in docs/MIGRATION-GUIDE.md, which never mentions extra-args; the only nitpick guidance is the "Nitpick mode" example at build-lectures/README.md:212.
Decided (2026-11-12), with a re-check of this issue against main at v0.19.0.
The facts have aged since this was written. The defaults and the hard-coded -n are now at build-lectures/action.yml:41 and :277-282, and build-jupyter-cache still passes no flags (:266-299). docs/MIGRATION-GUIDE.md is gone, and the "Nitpick mode" example went with #213. One premise has partly inverted: lecture-python-intro and lecture-python-programming don't need this decided to move to the full chain. Their cache builds are html with -W --keep-going, which is build-jupyter-cache's default, and their CI and publish builds can keep -n through build-lectures' extra-args.
The decisions treat the flags as configuration with defaults:
build-lectures gets a nitpick input, default 'true'. It adds -n for whichever builder runs: pdflatex and jupyter, as today, and now html too. The hard-coded -n moves under it. ⚠️ This is breaking for html builds: a site with a reference Sphinx cannot resolve fails under -W until it fixes the reference or sets nitpick: 'false'. extra-args keeps its default, -W --keep-going.
build-jupyter-cache gets the same two inputs,nitpick (default 'true') and extra-args (default -W --keep-going), passed to all three of its builds, rather than one input per builder. Its failure report's reproduce commands are built from them.
The work also covers the templates, the two chapters and the migration section, a harness job with nitpick on and off, and a lecture-matrix run to find which repositories have unresolved references on html before the release.
Released in v0.20.0, and @v0 has pointed to it since 2026-11-12. Before the move, the release gate, the canary's own lectures and test-lecture-theme-sphinx all passed with -n on html, and the lecture matrix and lecture-dp showed no warning added by it. A note for the repositories migrating to build-lectures is on QuantEcon/meta#348.
Activity
mmcky commentedon Nov 12, 2026
Decided (2026-11-12), with a re-check of this issue against
mainat v0.19.0.The facts have aged since this was written. The defaults and the hard-coded
-nare now atbuild-lectures/action.yml:41and:277-282, andbuild-jupyter-cachestill passes no flags (:266-299).docs/MIGRATION-GUIDE.mdis gone, and the "Nitpick mode" example went with #213. One premise has partly inverted:lecture-python-introandlecture-python-programmingdon't need this decided to move to the full chain. Their cache builds are html with-W --keep-going, which isbuild-jupyter-cache's default, and their CI and publish builds can keep-nthroughbuild-lectures'extra-args.The decisions treat the flags as configuration with defaults:
build-lecturesgets anitpickinput, default'true'. It adds-nfor whichever builder runs: pdflatex and jupyter, as today, and now html too. The hard-coded-nmoves under it.-Wuntil it fixes the reference or setsnitpick: 'false'.extra-argskeeps its default,-W --keep-going.build-jupyter-cachegets the same two inputs,nitpick(default'true') andextra-args(default-W --keep-going), passed to all three of its builds, rather than one input per builder. Its failure report's reproduce commands are built from them.The work also covers the templates, the two chapters and the migration section, a harness job with
nitpickon and off, and a lecture-matrix run to find which repositories have unresolved references on html before the release.Claude Code (on behalf of mmcky)
scratch(#97): run the steps under bash
feat(build-lectures): a nitpick input passes -n to every builder (#97) (
mmcky commentedon Nov 12, 2026
Released in v0.20.0, and
@v0has pointed to it since 2026-11-12. Before the move, the release gate, the canary's own lectures andtest-lecture-theme-sphinxall passed with-nonhtml, and the lecture matrix andlecture-dpshowed no warning added by it. A note for the repositories migrating tobuild-lecturesis on QuantEcon/meta#348.Claude Code (on behalf of mmcky)