Repository navigation
fix: propagate summary write failures - #204
Merged
Merged
Conversation
A run treated summary destination failures as warnings and retained exit status 0, so callers could accept a successful run after its summary write failed. Summary files now use the shared atomic writer, and a summary failure makes the command return status 1. The CLI reproducer is `run` with the usual `--site` and `--target` values after creating `summary.json` as a directory in the run directory; the command now reports the destination error through its exit status. The new test `a_summary_destination_directory_fails_the_run` in `tests/summary.rs` checks that a directory at the JSON summary destination makes an otherwise successful run fail.
HaoZeke
force-pushed
the
fix/summary-write-status
branch
from
November 20, 2026 23:53
edb76d8 to
6c8759e
Compare
A summary file of the wrong kind, a bundle manifest, and other refused destinations still expected a warning and exit 0. They now expect status 1 and the summary write error, and the file is left unchanged.
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.
fix: propagate summary write failures
A run treated summary destination failures as warnings and retained exit
status 0, so callers could accept a successful run after its summary
write failed. Summary files now use the shared atomic writer, and a
summary failure makes the command return status 1.
The CLI reproducer is
runwith the usual--siteand--targetvalues after creating
summary.jsonas a directory in the rundirectory; the command now reports the destination error through its
exit status.
The new test
a_summary_destination_directory_fails_the_runintests/summary.rschecks that a directory at the JSON summarydestination makes an otherwise successful run fail.
Restack onto d4f8e8b:
The shared atomic writer for summary files is already on main
(0baa6e8, changelog.d/+summary-writer-shared-atomic.bugfix.md), so that
part of the patch was not repeated. The exit status change remains.
The reference pages that quoted the old warning were updated with the
example script. A signal still outranks a summary write error.