Skip to content

🐛 Keep user test suites running through Vizzly network errors#312

Merged
Robdel12 merged 3 commits into
mainfrom
fix/sdk-api-fail-open
Jul 21, 2026
Merged

🐛 Keep user test suites running through Vizzly network errors#312
Robdel12 merged 3 commits into
mainfrom
fix/sdk-api-fail-open

Conversation

@Robdel12

@Robdel12 Robdel12 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Why

Vizzly observes a user test suite; it should never become the reason that suite fails. Build setup previously ran before the child command, so API, Cloudflare, authentication, malformed-response, or other SDK errors could stop healthy tests from running or change their result.

Approach

Make the user test command the source of truth. Any Vizzly setup error disables visual testing for that invocation and runs the child command normally, while errors after the child passes are logged and ignored regardless of status code. Real child command failures and intentional visual comparison failures keep their existing behavior.

The screenshot client already treats in-test transport and upload failures this way, so this applies the same fail-open principle to build creation, local server setup, screenshot accounting, and wait-mode polling.

Evidence

The regression coverage follows real CLI workflows for a rejected 401 response and a provider-style 503 HTML response. Focused tests cover malformed build data, local setup failures, server startup failures, post-test SDK failures, and wait-mode polling errors. All 2,294 runnable tests pass with zero failures, and Biome reports a clean changed-file check.

Fail open when build setup or status polling hits an availability error so Vizzly infrastructure cannot prevent the user's tests from running. Preserve actionable client errors and authoritative test exit codes.
@Robdel12 Robdel12 changed the title 🐛 Keep tests running during Vizzly outages 🐛 Keep user test suites running when Vizzly errors occur Jul 20, 2026
@Robdel12 Robdel12 changed the title 🐛 Keep user test suites running when Vizzly errors occur 🐛 Keep user test suites running through Vizzly and Cloudflare errors Jul 20, 2026
@vizzly-testing

Copy link
Copy Markdown

Vizzly - Visual Test Results

CLI Reporter - Waiting for build

No builds received yet for this pull request.

CLI TUI - 5 changes need review
Result Count Review
Meaningful diffs 5 Required - inspect changed screenshots
Meaningful diffs needing review (5)

vizzly-run-help · 1202×722 · 0.1% diff

vizzly-run-help

vizzly-doctor · 1202×578 · 0.2% diff

vizzly-doctor

vizzly-tdd-help · 1202×578 · 0.2% diff

vizzly-tdd-help

vizzly-help · 1202×1430 · 0.0% diff

vizzly-help

vizzly-invalid-command · 1202×578 · 0.2% diff

vizzly-invalid-command

Review changes


fix/sdk-api-fail-open · 3840a963

@Robdel12 Robdel12 changed the title 🐛 Keep user test suites running through Vizzly and Cloudflare errors 🐛 Keep user test suites running through Vizzly network errors Jul 20, 2026
Disable Vizzly for every setup or network failure while preserving the user's test command exit code as the source of truth.
@Robdel12
Robdel12 marked this pull request as ready for review July 20, 2026 18:07
Use the completed run result as the single post-test guard and remove polling context and redundant status cases that no longer affect behavior.
@Robdel12
Robdel12 merged commit eca5dbf into main Jul 21, 2026
30 checks passed
@Robdel12
Robdel12 deleted the fix/sdk-api-fail-open branch July 21, 2026 01:09
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