Repository navigation
Conversation
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]>
✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
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-reportsartifact 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
Contributor
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a notebook fails to execute in CI, the
execution-reportsartifact that should hold its traceback is never uploaded. Found while reviewing #408, whose CI log ended withNo files were found with the provided path: _build/jupyter/reports. No artifacts will be uploaded.Cause
Notebooks execute in whichever
jb buildruns 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 aCellExecutionErrorstops 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/reportsand_build/html/reports. Whichever build fails, its report is captured.upload-artifactroots a multi-path upload at the common ancestor (_build), so the artifact keeps the three sets apart aslatex/reports/…,jupyter/reports/…andhtml/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'spathis a valid multi-line list. The first failing notebook on any PR will confirm the upload.cache.ymlbuilds HTML only and already uploads_build/html/reports, so it doesn't need this change.publish.ymlhas no report upload.🤖 Generated with Claude Code