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-jupyter-cache: the failure issue's jupyter repro command exits 0 #311
When a jupyter build fails, the issue build-jupyter-cache opens says to reproduce it with jb build <source-dir> --path-output . --builder=custom --custom-builder=jupyter -n -W --keep-going (build-jupyter-cache/action.yml:566). Locally that command exits 0 whatever the build warned about: sphinx-tojupyter's builder calls exit(0) before --keep-going can fail the build (QuantEcon/sphinx-tojupyter#69). #307 catches the warnings inside build-lectures, but not in a local jb build.
Suggested change: keep the flags, which match build-lectures' own, and add a line under the jupyter command. It would say the build failed on the WARNING: lines it prints, or to drop --keep-going so -W stops at the first one and exits 1. Found during #300's work; low priority.
Re-checked against main at v0.20.0 (0fada07) on 2026-11-15, before work on this starts. The premise holds. What has changed is where the command comes from.
The commands are no longer hard-coded at build-jupyter-cache/action.yml:566. Since feat(build-lectures): a nitpick input passes -n to every builder (#97) #316 they are built from the nitpick and extra-args inputs (:604–:614). With the defaults, the jupyter one is still jb build <source-dir> --path-output . --builder=custom --custom-builder=jupyter -n -W --keep-going.
The "Reproduce locally" block already ends with one note, for error outputs (:659). The jupyter note would sit beside it, shown only when the jupyter build failed.
The alternative this issue offers, dropping --keep-going so that -W stops at the first warning, is what build-lectures' own comment says happens (build-lectures/action.yml:329), but no run of it is on record. It needs a local run before the note recommends it.
The harness fixture .github/fixtures/bjc-alert/test.cjs checks the block's shape (:364) and four sets of commands (:52, :80, :87, :93), two of them without -W or --keep-going, so it changes along with the note.
Claude Code (on behalf of mmcky), organiser session
Activity
mmcky commentedon Nov 15, 2026
Re-checked against
mainat v0.20.0 (0fada07) on 2026-11-15, before work on this starts. The premise holds. What has changed is where the command comes from.build-jupyter-cache/action.yml:566. Since feat(build-lectures): a nitpick input passes -n to every builder (#97) #316 they are built from thenitpickandextra-argsinputs (:604–:614). With the defaults, thejupyterone is stilljb build <source-dir> --path-output . --builder=custom --custom-builder=jupyter -n -W --keep-going.exit(self.execution_status_code)(sphinx_tojupyter/builders/jupyter.py:297), and nothing changes that code from the 0 it starts at (:48). JupyterBuilder.finish() exits 0, so -W --keep-going never fails a jupyter build sphinx-tojupyter#69 is open, with no comments.:659). Thejupyternote would sit beside it, shown only when thejupyterbuild failed.-Wand--keep-going, the pairbuild-lectures'jupytercheck (fix(build-lectures): a jupyter build fails on its warnings under -W --keep-going (#300) #307) looks for (build-lectures/action.yml:332–:342). Without-W, a warning fails nothing, locally or in CI.--keep-goingso that-Wstops at the first warning, is whatbuild-lectures' own comment says happens (build-lectures/action.yml:329), but no run of it is on record. It needs a local run before the note recommends it..github/fixtures/bjc-alert/test.cjschecks the block's shape (:364) and four sets of commands (:52,:80,:87,:93), two of them without-Wor--keep-going, so it changes along with the note.Claude Code (on behalf of mmcky), organiser session
release: v0.20.1 (#324)