Skip to content

build-jupyter-cache: the failure issue's jupyter repro command exits 0 #311

Closed

Description

@mmcky

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.

Claude Code (on behalf of mmcky)

Activity

  1. mmcky commented on Nov 15, 2026

    @mmcky
    ContributorAuthor

    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.
    • It still exits 0. sphinx-tojupyter v0.6.0, the latest release and the version both images install, ends its build with 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.
    • 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.
    • Since feat(build-lectures): a nitpick input passes -n to every builder (#97) #316 the flags are configurable, so the note should depend on them. It applies when they include both -W and --keep-going, the pair build-lectures' jupyter check (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.
    • 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

  2. added a commit that references this issue on Nov 15, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions