Skip to content

ci(id): guard crash-gate PR partition against uncovered ignored tests (#1635) - #1647

Merged
dezren39 merged 1 commit into
mainfrom
queue/1783-1635-crash-gate-guard
Oct 28, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/1783-1635-crash-gate-guard

Conversation

@dezren39

@dezren39 dezren39 commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Fixes #1635.

PR #1310 split the aggregate crash-gate into four PR checks partitioned by test-name filter; an #[ignore]d crash test whose name contains none of the three split filters would silently run in no PR check. This adds the source-level guard the triage settled:

  • New .github/scripts/check-crash-gate-coverage.sh (no cargo build): enumerates #[ignore]d test names in pkgs/id/tests/crash/*.rs, subtracts the named corpus writers (write_corpus, write_corpus_identity), extracts the split filters from the crash-gate-sweep/-control/-ingest recipes in pkgs/id/justfile, and fails naming each uncovered test. Parse drift (no filters / no ignored tests found) also fails — a guard that passes on empty input is the failure this prevents.
  • Wired into the id workflow's guard job alongside check-id-pr-checks.sh (new step + the script added to both push/PR path filters).
  • Comments pointed at the guard: the composition assertion in check-id-pr-checks.sh's header and the partition comment block in pkgs/id/justfile now reference the checked invariant.

Acceptance proof (laptop, per the packet):

  • Guard on current main: crash-gate partition covers all 3 #[ignore]d gate tests (2 corpus writers excluded: write_corpus write_corpus_identity) — exit 0.
  • Dummy #[ignore]d dummy_uncovered_gate_probe appended to store.rs: exit 1, ::error:: names the test and the three filters.
  • Dummy removed: exit 0 again.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 28, 2026 10:38
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4ea0b88-a933-4398-a014-499f8fe88a04
Commits

Reviewing files that changed from the base of the PR and between ed8e591 and 5b0a303.

Files selected for processing: 4
  • .github/scripts/check-crash-gate-coverage.sh
  • .github/scripts/check-id-pr-checks.sh
  • .github/workflows/id-check.yml
  • pkgs/id/justfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T10:41:03.278079Z 5b0a303 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b0a3031af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +64 to +66
ignored && /^#\[/ { next }
ignored && /^\/\/\// { next }
ignored && /^fn [A-Za-z0-9_]+/ {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Recognize indented ignored tests in nested modules

When an ignored crash test is inside a nested module, its normally indented fn declaration does not match this column-zero regex, so the parser silently discards it. This layout already exists in pkgs/id/tests/crash/faultfs.rs: adding #[ignore] to its unsynced_writes_are_dropped_at_a_power_cut test in a temporary fixture leaves the guard passing with the same three covered names, although that test matches none of the split filters and would lose PR coverage. The nonempty-input check cannot detect this because the other ignored tests still parse. Accept leading whitespace on function and intervening attribute/doc lines so nested tests participate in the coverage check.

Useful? React with 👍 / 👎.

@dezren39
dezren39 merged commit 1b22a6e into main Oct 28, 2026
33 checks passed
@dezren39
dezren39 deleted the queue/1783-1635-crash-gate-guard branch October 28, 2026 12:51
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.

id(ci): crash-gate PR splits silently drop any future #[ignore]d crash test — no coverage guard for the #1310 partition

1 participant