Skip to content

test(cli): per-IssueKind drift guard for the GitHub-native formats#1846

Merged
BartWaardenburg merged 1 commit into
mainfrom
advisor/027-jq-drift-guard
Jul 13, 2026
Merged

test(cli): per-IssueKind drift guard for the GitHub-native formats#1846
BartWaardenburg merged 1 commit into
mainfrom
advisor/027-jq-drift-guard

Conversation

@BartWaardenburg

Copy link
Copy Markdown
Collaborator

The bundled action's shell drift guard (action/tests/issuekind-drift-guard.sh) asserts that every counted dead-code IssueKind reaches the GitHub summary and annotation surfaces. Those surfaces render natively since v3.4.2, but no Rust test held the same line: a new counted IssueKind could land in ISSUE_RESULT_META and silently miss render_summary / render_annotations.

This adds a Rust guard that iterates the counted registry rows and asserts each kind renders in BOTH github-summary and github-annotations, plus a trip-wire keeping the fixture in lockstep with the registry (and a count pin agreeing with the shell guard's gated set). This hardens the already-live native path and is the prerequisite for eventually retiring the jq renderers (advisor plan 027 Phase A; Phase B, the deletion, stays deferred).

Verified: the three new tests pass (29 total in the suite); neuter-checked by removing one category row from the summary renderer and confirming the guard fails with a precise message, then restoring.

Iterate the counted ISSUE_RESULT_META rows and assert every dead-code
IssueKind renders in both github-summary and github-annotations, mirroring
the shell drift guard in action/tests/issuekind-drift-guard.sh
(assert_issuekind_summary_coverage). This closes the gap where a new
counts_in_total IssueKind could land in the registry and silently miss the
native GitHub renderers, which have carried the surfaces since v3.4.2. The
Rust guard gates the same dead-code set as the shell guard, verified by
both suites skipping the same non-counted advisory kinds.
@BartWaardenburg BartWaardenburg merged commit 06b8ccb into main Jul 13, 2026
17 of 18 checks passed
@BartWaardenburg BartWaardenburg deleted the advisor/027-jq-drift-guard branch July 13, 2026 18:39
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