-
Notifications
You must be signed in to change notification settings - Fork 1
✨ Make finalize command resilient to missing builds #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
Code ReviewThis PR adds a global ✅ Strengths
🔍 Code Quality Observationssrc/commands/finalize.js:109-133The 404 handling logic is clear and well-structured. Minor suggestions:
src/cli.js:239The
🧪 Test CoverageThe tests are comprehensive:
Minor suggestion: Consider adding a test for the interaction between 🎯 Consistency Across CommandsOther commands have similar 5xx handling (
If the answer is "not yet," that's fine - this PR can be the first step. Just worth considering for future work. 🔒 Security & Performance
📝 DocumentationThe PR description is excellent. Consider adding:
✨ Suggestions (Optional Enhancements)
SummaryApproval: ✅ Approve with minor suggestions This is a solid PR that solves a real problem with good test coverage. The code is clean, testable, and follows existing patterns. The minor suggestions above are about consistency and DRY principles, but they're not blockers. Recommended action: Merge after considering:
Great work addressing VIZ-108! 🎉 |
64df1dc to
53a4f5a
Compare
This comment has been minimized.
This comment has been minimized.
53a4f5a to
287d50c
Compare
The finalize command now handles 404 errors gracefully instead of failing CI. When no build exists for a parallel ID (e.g., tests were skipped or no screenshots uploaded), it warns and exits 0. Added global --strict flag for users who want hard failures on any error. This flag is available on all commands. Closes VIZ-108
287d50c to
4500359
Compare
This comment has been minimized.
This comment has been minimized.
Vizzly - Visual Test ResultsCLI Reporter - 8 changes need review
Changes needing review (8)viewer-toggle-mode · Firefox · 1920×1080 · 0.0% diff search-homepage · Firefox · 1920×1080 · 0.1% diff viewer-zoomed-100 · Firefox · 1920×1080 · 0.5% diff filter-failed-only · Firefox · 1920×1080 · 0.0% diff fullscreen-viewer · Firefox · 1920×1080 · 5.7% diff bulk-accept-dialog · Firefox · 1920×1080 · 13.9% diff ...and 2 more in Vizzly. CLI TUI - 1 change needs review
|







Summary
--strictflag for all CLI commands to opt into hard failuresfinalizecommand (warn + exit 0 by default)Why
The
finalizecommand was breaking CI pipelines when no parallel build existed (e.g., tests were skipped, no screenshots uploaded, or mismatched parallel-id). This is a poor UX for CI workflows where Vizzly tests might be conditionally skipped.Behavior
Default (resilient):
Strict mode:
Test plan
node --test tests/commands/finalize.test.js- all 17 tests passvizzly finalize nonexistent-idexits 0 with warningvizzly finalize nonexistent-id --strictexits 1 with errorCloses VIZ-108