✨ Add VIZZLY_BUILD_NAME environment variable support#195
Conversation
- Add getBuildName() to environment-config.js - Wire into config-loader.js to set build.name from env var - Update CLAUDE.md with new env var documentation - Add tests for new functionality
This comment has been minimized.
This comment has been minimized.
Code ReviewSummaryThis PR cleanly adds support for the ✅ Strengths
🔍 Code Qualitysrc/utils/environment-config.js
src/utils/config-loader.js
Tests
🎯 SuggestionsMinor: Environment Variable Truthiness Check InconsistencyThere's a subtle inconsistency in how environment variables are checked in config-loader.js: // Line 116-122
if (envApiKey) {
config.apiKey = envApiKey;
output.debug('config', 'using token from environment');
}
if (envApiUrl !== 'https://app.vizzly.dev') config.apiUrl = envApiUrl;
if (envBuildName) config.build.name = envBuildName;
if (envParallelId) config.parallelId = envParallelId;Observation:
Suggestion: Consider adding a debug log for if (envBuildName) {
config.build.name = envBuildName;
output.debug('config', 'using build name from environment');
}This is a minor nice-to-have, not a blocker. The current implementation is functionally correct. 🛡️ Security, Performance & Best Practices
📝 Test CoverageTest coverage is excellent:
✨ VerdictLGTM! This is a well-implemented, focused feature that improves the CI/CD experience. The code is clean, follows existing patterns, and has comprehensive test coverage. The minor suggestion above is optional and doesn't block approval. Great work on maintaining consistency with the existing codebase patterns! 🚀 |
Vizzly - Visual Test ResultsCLI Reporter - 5 changes need review
Changes needing review (5)fullscreen-viewer · Firefox · 1920×1080 · 5.7% diff bulk-accept-dialog · Firefox · 1920×1080 · 13.9% diff viewer-overlay-mode · Firefox · 1920×1080 · 5.6% diff fullscreen-viewer · Firefox · 375×667 · 97.8% diff bulk-accept-dialog · Firefox · 375×892 · 1.5% diff CLI TUI - Processing...Build in progress...
|





Summary
VIZZLY_BUILD_NAMEenvironment variable for setting build names in CI without CLI flagsChanges
getBuildName()function toenvironment-config.jsconfig-loader.jsto setconfig.build.namefrom environmentUsage
Test plan