Skip to content

feat(#177): Add build verification against main branch in QA - #207

Merged
admarble merged 4 commits into
mainfrom
feature/177-feat-qa-verify-build-failures-against-main-branch-
Jan 31, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/177-feat-qa-verify-build-failures-against-main-branch-

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds build verification feature to QA that checks if build failures on feature branches are regressions or pre-existing
  • When build fails, QA compares against main branch to determine if failure is new (regression) or already exists
  • Produces a "Build Verification" table in QA output with classification and verdict impact

Changes

  • quality-checks.sh: Add verify_build_against_main() and run_build_with_verification() functions
  • SKILL.md: Document build verification phase (section 2a) and add to output template
  • quality-gates.md: Add verdict impact rules for build verification results

Test plan

  • Syntax validation: bash -n quality-checks.sh passes
  • Build passes: npm run build succeeds
  • Tests: Pre-existing failures unrelated to this change (state-update-cli tests)
  • Manual: Trigger a build failure on a feature branch and verify Build Verification output

Closes #177

🤖 Generated with Claude Code

When build fails on feature branch, QA now verifies whether the failure
is a regression (new) or pre-existing (already on main):

- Add verify_build_against_main() function to quality-checks.sh
- Add run_build_with_verification() wrapper function
- Document build verification phase in SKILL.md (section 2a)
- Add Build Verification section to QA output template
- Add verdict impact rules to quality-gates.md

The verification:
- Runs build on main branch (via main repo directory, not checkout)
- Compares exit codes and first error lines
- Classifies failures as: regression, pre-existing, or unknown
- Outputs a Build Verification table with classification

Closes #177

Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble and others added 3 commits January 30, 2026 17:27
The verify_build_against_main() and run_build_with_verification()
functions were defined but never called, making them dead code.

Add call to run_build_with_verification in the main script flow
so build failures are actually verified against main branch.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Support both main and master branch names in worktree detection
- Add 120s timeout to prevent hanging on slow builds (with macOS fallback)
- Capture return code to prevent set -e from exiting early
- Always show "Quality checks complete" before exiting
- Exit with proper code to signal regression/review status

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Return code 3 (skipped) when main repo can't be found, distinct from:
- 0: success or pre-existing failure
- 1: regression detected
- 2: different errors (needs review)

This prevents false "regression" reports when verification is skipped.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 264152c into main Jan 31, 2026
6 checks passed
@admarble
admarble deleted the feature/177-feat-qa-verify-build-failures-against-main-branch- branch January 31, 2026 00:13
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.

feat(qa): Verify build failures against main branch before dismissing

1 participant