Skip to content

ci: skip screenshot artifacts on passing tests - #253

Open
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
ci/trim-terminal-screenshot-work
Open

John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
ci/trim-terminal-screenshot-work

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Failing PRs stop spending runner time sooner. Each test suite stops at the first failure, and a failed platform cancels the remaining matrix jobs. A sibling canceled before screenshots can avoid a step that took 4–15 seconds per runner in GitHub Actions. CI timings

Passing screenshot runs skip 20 SVG writes and 20 reads per platform. The median of three local macOS runs fell from 5.35s to 5.13s. A failed comparison still saves the actual SVG, baseline, and terminal text for debugging.

Companion PR Socket CLI #1787

@cursor

cursor Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes affect CI configuration and e2e snapshot helpers only, with no production runtime impact.

Overview
Terminal snapshot e2e tests now compare rendered SVG in memory with toMatchFileSnapshot; they only create the screenshot artifact directory and write actual.svg, output.txt, and expected.svg when a snapshot assertion fails, so passing runs avoid extra disk I/O.

The test CI job enables matrix fail-fast, runs pnpm test --bail=1, and adds --bail=1 to the termless vitest step so the first failure stops that suite and cancels sibling OS matrix jobs sooner on broken PRs.

Reviewed by Cursor Bugbot for commit 0612e2e. Configure here.

This branch has not been deployed

No deployments
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.

1 participant