Skip to content

fix: exit codes & CI gating across report/coverage/deps/score/resolve/diff/changelog (closes #418, closes #419, closes #422, closes #425, closes #430, closes #431, closes #441, closes #444)#459

Open
0xLeif wants to merge 21 commits into
mainfrom
fix/w1-exit-codes-ci-gating
Open

Conversation

@0xLeif

@0xLeif 0xLeif commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

One consolidated PR for the W1 exit-code/CI-gating cluster (the changes share a common enforcement core — commands::default_enforcement/compute_exit_code/exit_with_status, SpecSyncConfig.enforcement_set, CoverageReport.missing_files, and main.rs wiring — so they land together).

Core convention: an explicit enforcement key in config is honored as-is (including warn → exit 0). When enforcement is UNSET, gate commands now default to gating on errors (validation failures exit non-zero) instead of the old implicit warn-everything. Wired into check, coverage, generate, comment, score, report.

Issue → fix → regression tests

Plus default-enforcement tests: check_validation_errors_exit_nonzero_by_default, check_validation_errors_warn_enforcement_exits_zero.

Verification

  • cargo check --all-targets: clean
  • cargo test: 1720 unit tests pass (1 pre-existing root-only failure: change::tests::non_git_walk_skips_volatile_trees_but_fails_on_relevant_walk_errors, fails on main too); 223 integration tests pass; 20 new regression tests pass
  • cargo clippy -- -D warnings (CI invocation): clean
  • Before/after evidence generated with released binary vs this build

Closes #418, closes #419, closes #422, closes #425, closes #430, closes #431, closes #441, closes #444

0xLeif added 21 commits July 24, 2026 11:49
…metic, scaffold boilerplate, non-vacuous files_exist (closes #441) (batch 19)
…, closes #419, closes #422, closes #425, closes #430, closes #431, closes #441, closes #444)
…, closes #419, closes #422, closes #425, closes #430, closes #431, closes #441, closes #444)
@0xLeif
0xLeif requested a review from a team as a code owner July 24, 2026 19:14
@0xLeif
0xLeif requested review from 0xGaspar, Kyntrin and tofu-ux July 24, 2026 19:14
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Corvin says...

      _
    <(;\  .oO(oh no...)
     |/(\
      \(\\
      " "\\

"Caw... your imports are all over the place."

CI Summary

Check Status
Validate action.yml ✅ Passed
Packaged Action Consumer ❌ failure
Dependency Audit ✅ Passed
Code Coverage ❌ failure
Format Check ❌ failure
Docs Site ✅ Passed
Spec Validation ❌ failure
Tests (build, test, clippy) ❌ failure
VS Code Extension ✅ Passed

Powered by corvid-pet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant