Skip to content

CI: upload execution reports from the build that executes notebooks - #410

Open
mmcky wants to merge 1 commit into
mainfrom
ci-execution-reports-path
Open

mmcky wants to merge 1 commit into
mainfrom
ci-execution-reports-path

Conversation

@mmcky

@mmcky mmcky commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

When a notebook fails to execute in CI, the execution-reports artifact that should hold its traceback is never uploaded. Found while reviewing #408, whose CI log ended with No files were found with the provided path: _build/jupyter/reports. No artifacts will be uploaded.

Cause

Notebooks execute in whichever jb build runs them first, and each build writes its execution reports under its own output directory. Since #367, the PDF build is the first build and the gating step, so a CellExecutionError stops the job there, and its traceback is written only to _build/latex/reports. The upload step still looked in _build/jupyter/reports, which the tojupyter build used to populate when a failing notebook was re-executed in a later build. That build no longer runs after a failure.

Change

The upload step now lists the reports directories of all three builds: _build/latex/reports, _build/jupyter/reports and _build/html/reports. Whichever build fails, its report is captured. upload-artifact roots a multi-path upload at the common ancestor (_build), so the artifact keeps the three sets apart as latex/reports/…, jupyter/reports/… and html/reports/…. I also dropped "(Download Notebooks)" from the step name, since the step is no longer specific to that build, and added a comment explaining the paths.

Testing

This PR's own CI run won't exercise the step, because it runs only if: failure(). I checked that the workflow parses and that the step's path is a valid multi-line list. The first failing notebook on any PR will confirm the upload.

cache.yml builds HTML only and already uploads _build/html/reports, so it doesn't need this change. publish.yml has no report upload.

🤖 Generated with Claude Code

The "Upload Execution Reports" step only looked in _build/jupyter/reports.
Since #367 made the PDF build the gating step, a CellExecutionError stops
the job in that build, which writes its reports to _build/latex/reports,
so the artifact was never uploaded and the traceback was lost. Upload the
reports directories of all three builds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 00:52
@netlify

netlify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit be9dc36
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6af3bc578dd459b5baa70e21
😎 Deploy Preview https://deploy-preview-410--lustrous-melomakarona-3ee73e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is a narrowly scoped CI workflow tweak to upload execution report artifacts from all Jupyter Book build output locations on failure, and the review evidence indicates no unresolved issues remain.

No open issues 🎉

What changed in this PR

Updates the CI workflow so notebook execution tracebacks are reliably uploaded as an artifact even when the first (gating) jb build fails and later builds do not run.

Changes:

  • Expand the failure-only execution-reports artifact upload to include _build/latex/reports, _build/jupyter/reports, and _build/html/reports.
  • Rename the upload step to be build-agnostic and add an inline comment documenting why multiple report paths are needed.
File Description
.github/​workflows/​ci.yml Adjusts the failure-only artifact upload to collect execution reports from all Jupyter Book build output directories so tracebacks are captured regardless of which build fails first.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request November 11, 2026 01:02 Inactive
mmcky added a commit to QuantEcon/lecture-jax that referenced this pull request Nov 11, 2026
…366)

The "Upload Execution Reports" step only looked in _build/html/reports.
Since #342 made the tojupyter build the gating step, a CellExecutionError
stops the job in that build, which writes its reports to
_build/jupyter/reports, so the execution-reports artifact came up empty.
Upload the reports directories of all three builds.

Mirrors QuantEcon/lecture-python-advanced.myst#410.

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
pull request — be9dc36a Deployed Nov 11, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants