Skip to content

[collab] Sync build-tool pins with environment.yml to fix weekly execution check#916

Merged
mmcky merged 2 commits into
mainfrom
worktree-fix-collab-deps
Jun 18, 2026
Merged

[collab] Sync build-tool pins with environment.yml to fix weekly execution check#916
mmcky merged 2 commits into
mainfrom
worktree-fix-collab-deps

Conversation

@mmcky

@mmcky mmcky commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

What this fixes

The weekly Google Colab execution check (collab.yml) has been failing every week (issue #905, and identically for the prior ~6 weeks). Despite the auto-generated "execution failure" title, no notebook actually fails to execute — every executed notebook succeeds and the _build/html/reports artifact is empty.

The build runs with -W --keep-going, so any warning is fatal. The hand-maintained pip install in collab.yml had drifted far behind environment.yml, producing two config-compat warnings that failed the build:

Warning Cause
unsupported theme option 'sticky_contents' given quantecon-book-theme==0.8.2 predates the sticky_contents option (added in theme 0.17.1)
unknown config value 'exercise_style' in override, ignoring unpinned sphinx-exercise resolved to a version that no longer registers exercise_style

The regular ci.yml build — which uses the correct environment.yml versions — passes on main, confirming the book is healthy and the problem is isolated to this workflow's dependency install.

The change

Pin the build tools in collab.yml to the same versions environment.yml uses (and that ci.yml builds against cleanly). The list is kept explicit rather than switching to pip install -r requirements.txt, since the whole point of this job is to layer the build tools on top of the Colab runtime:latest scientific stack without clobbering its pinned numpy/scipy/jax/etc.

Package Before After
jupyter-book ==1.0.3 >=1.0.4post1,<2.0
quantecon-book-theme ==0.8.2 ==0.21.0
sphinx-tojupyter ==0.3.0 ==0.6.0
sphinxext-rediraffe ==0.2.7 ==0.3.0
sphinxcontrib-youtube ==1.3.0 ==1.5.0
sphinx-togglebutton ==0.3.2 ==0.4.5
sphinx-proof unpinned ==0.4.0
sphinx-exercise unpinned ==1.2.1
sphinx-reredirects unpinned ==1.1.0

Pinning quantecon-book-theme==0.21.0 clears the sticky_contents warning and sphinx-exercise==1.2.1 clears the exercise_style warning.

Follow-up

This drift will recur unless build-tool versions are kept in sync. Worth having dependency bumps (e.g. the recent #896) also touch collab.yml, or centralizing these versions.

Fixes #905

🤖 Generated with Claude Code

The weekly Colab execution check builds with `-W --keep-going`, so any
warning fails the build. The hand-maintained pip install in collab.yml had
drifted from environment.yml, producing two config-compat warnings that
failed the build every week (no notebook actually fails to execute):

- quantecon-book-theme==0.8.2 predates the `sticky_contents` theme option
  -> "unsupported theme option 'sticky_contents' given"
- unpinned sphinx-exercise (latest) no longer registers `exercise_style`
  -> "unknown config value 'exercise_style' in override, ignoring"

Pin the build tools to the same versions environment.yml uses (which
ci.yml builds against cleanly), keeping the explicit list so the Colab
runtime image's scientific stack is preserved.

Fixes #905

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 18, 2026 07:51

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.

Pull request overview

Updates the weekly Google Colab execution-check workflow to use the same documentation build-tool versions as environment.yml, preventing Sphinx/Jupyter Book config warnings from failing the -W --keep-going build.

Changes:

  • Align collab.yml pip-installed Jupyter Book/Sphinx tooling versions with environment.yml (notably quantecon-book-theme==0.21.0 and sphinx-exercise==1.2.1).
  • Add explicit pins for previously unpinned Sphinx extensions to reduce config-compat drift.

Comment thread .github/workflows/collab.yml Outdated
Comment thread .github/workflows/collab.yml Outdated
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-916--sunny-cactus-210e3e.netlify.app

Commit: ef35f84


Build Info

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mmcky mmcky added the ready label Jun 18, 2026
@mmcky mmcky merged commit 398a404 into main Jun 18, 2026
1 of 2 checks passed
@mmcky mmcky deleted the worktree-fix-collab-deps branch June 18, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weekly Colab Execution Check Failed - 27526486349

2 participants