Skip to content

Make verify._merge_rc severity-aware#28

Merged
cgraf78 merged 1 commit into
mainfrom
merge-rc-severity
Jul 1, 2026
Merged

Make verify._merge_rc severity-aware#28
cgraf78 merged 1 commit into
mainfrom
merge-rc-severity

Conversation

@cgraf78

@cgraf78 cgraf78 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Mirror autolint's _autolint_merge_rc policy in the Python _merge_rc so structural exit codes (2, or the unknown-adapter sentinel 125) survive later ordinary findings. Previously the first non-zero code won, so a later 125/2 was masked by an earlier 1. Now 125 outranks 2 outranks any other non-zero, matching the shell side. Adds a verify-test case asserting the precedence table.

Summary
mirror autolint's `_autolint_merge_rc` policy in the Python
`_merge_rc` so structural exit codes (2, or the unknown-adapter
sentinel 125) survive later ordinary findings.

Previously the first non-zero code won, so in a multi-tool run a later
125/2 was masked by an earlier 1 — a failing run pointed at an ordinary
diagnostic instead of the broken Checkrun contract. Now 125 outranks 2
outranks any other non-zero, matching the shell side.

Testing
- checkrun test suite: all suites pass (verify-test 108)
- new verify-test case asserts the precedence table (1|2->2, 1|125->125,
  2|125->125, 1|1->1, and clean-code passthrough)
- checkrun lint clean
@cgraf78 cgraf78 merged commit 87c20c9 into main Jul 1, 2026
6 checks passed
@cgraf78 cgraf78 deleted the merge-rc-severity branch July 1, 2026 17:41
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