Repository navigation
Report a snapshot that failed to generate under its own name (sc-9177) - #210
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
snapshot-failures
branch
3 times, most recently
from
December 4, 2026 16:12
89f810d to
5e281d0
Compare
ndbroadbent
force-pushed
the
snapshot-failures
branch
from
December 4, 2026 16:51
5e281d0 to
3934bda
Compare
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.
sc-9177. When the code under test crashed, its file didn't exist, and the build showed the snapshot as removed. The WeasyPrint case study uploaded each error as a separate text file to explain why, so build #6 read "14 removed, 14 added" when the truth was "14 failed".
Now: a client can send a failure under the snapshot's own name.
errorand no file (sha256,sizeandcontent_typeleft out;kinddefaults todocument). It's stored asfailedwith that error and no blob, needs no upload, and a retried request is fine. The error is limited to 16 KB, and an entry with both a file and an error is refused (400).visualci fail <name> --message "…"(or--message-file,--kind,--platform). A manifest entry{"name", "error", "kind"?}with nopathdoes the same. Failures skip the group check's hashing and are always sent. The "nothing changed since build #N" shortcut isn't taken when there's a failure. Bumps the CLI to 0.2.26. If CLI 0.2.26: the pull request's base branch from every CI provider; API calls retry through a deploy; a floating v0 tag; Action and orb defaults follow each release (sc-9247) #200 lands first, I'll rebase this onto 0.2.27.base_snapshot_idfor the version it would have been compared with, so its page shows that version beside the error. Baselines already treat a failed snapshot as standing for that base, so the last approved version stays the baseline, and the next build compares with it.visualci failin the CLI reference, and the API'serrorfield. The visualci-pdfs skill is regenerated and the plugin bumped to 0.1.62.Different from the story (a question for the coordinator): the story asks for a failure to count as a change to review, failing CI only in strict mode. Today any failed snapshot (a render failure, a file that never arrived) fails the whole build: it isn't reviewable, and CI fails in every mode. This PR keeps that, so a crash fails CI, as the test run itself would. Making failures reviewable would change render failures and missing uploads too, so I've left it as its own decision.
Tests:
processing::a_test_that_crashed_shows_its_snapshot_failed_in_place_and_keeps_the_baselinecovers the whole flow through the API:failedin place with its error and base;The base assertion fails without the processing change.
--kind, manifest failure entries (and their errors), and message truncation at a character boundary.The app, CLI and core suites pass locally.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.