Skip to content

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

Closed

Description

@dezren39

Finding

PR #1310 split the aggregate crash-gate PR check into four parallel checks partitioned by test-name filter, and retired the aggregate from the PR gate (it now runs only in the nightly full flake check). The partition is complete today, but it is maintained by enumeration with no guard: any future #[ignore]d test added to the crash suite will silently run in none of the four PR checks, and nothing will fail.

Evidence

  • PR id(ci): split crash-gate into 4 parallel PR checks, test shards 3→4 (#551) #1310 (commit 859726d5, merged 2026-10-27) — body claim: "Together they run every test the aggregate runs except the corpus writers (excluded everywhere, as before)."
  • Current main ed8e5910, pkgs/id/justfile:
    • aggregate (nightly only): crash-gate: cargo test --release --features web --test crash -- --skip write_corpus --include-ignored
    • crash-gate-sampled: cargo test … --test crash -- --skip write_corpus — no --include-ignored, so it runs zero ignored tests.
    • crash-gate-sweep / crash-gate-control / crash-gate-ingest: each --include-ignored <one name substring> (full_sweep_has_no_failures, full_lying_sync_control_produces_failures, ingest_survives_every_crash_point).
  • The crash suite's ignored tests on current main are exactly the five the three named splits cover, plus the two corpus writers excluded everywhere by design:
    • pkgs/id/tests/crash/main.rs:176,191 — full_sweep_has_no_failures, full_lying_sync_control_produces_failures
    • pkgs/id/tests/crash/identity.rs:647,668 — same two names
    • pkgs/id/tests/crash/store.rs:662 — ingest_survives_every_crash_point
    • writers: main.rs:205 write_corpus, identity.rs:687 write_corpus_identity
  • .github/scripts/check-id-pr-checks.sh (updated by id(ci): split crash-gate into 4 parallel PR checks, test shards 3→4 (#551) #1310) validates that flake check names match the PR check list — it never enumerates test names, so a new ignored crash test passes every guard while losing all PR coverage. The failure mode is silent: the new test would run only in the nightly aggregate, exactly the feedback delay id(ci): F11.4 fast CI lane under 15 minutes #551 was closing.

Why it matters

The crash gate is the redb/identity-store crash-safety gate. A heavy test added the documented way (#[ignore = "… just crash-gate runs it"], per pkgs/id/tests/README.md:42) after this split gets no PR signal at all, and the justfile comment "together … they cover every test crash-gate runs" becomes false without anyone noticing.

Acceptance criteria

  • A CI-visible guard exists that fails when an ignored test in the crash suite is not covered by any PR-gate split (e.g. a script/check that lists the crash binary's ignored tests and asserts each name is matched by a split filter or is a deliberately excluded corpus writer).
  • The guard passes on current main (five covered gates + two named writer exclusions).
  • Adding a dummy #[ignore]d test to the crash suite makes the guard fail, demonstrating the tripwire.
  • The justfile / check-list comments point at the guard so the next split editor finds it.

Filed by the pr-diff-review job from PR #1310's diff; verified against current main twice (local git show origin/main + gh searches, 2026-10-28). Deduped: searches for "crash-gate ignored", "crash-gate-sampled", "silently excluded PR gate" returned no covering issue (#551 is closed; #1569 is unrelated flake-source corruption).

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Oct 28, 2026
  2. developing-today commented on Oct 28, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    area/ciCI/CD pipelines, workflows, and build automation (area)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: pr-diff-review job
    • Session / ID: cron job pr-diff-review, run 2026-10-28 04:24 CDT
    • Found via: filed this run
    • Task: Filed after reviewing PR id(ci): split crash-gate into 4 parallel PR checks, test shards 3→4 (#551) #1310 (commit 859726d): its four crash-gate PR splits partition the aggregate gate by test-name filter, and crash-gate-sampled has no --include-ignored — verified on current main ed8e591 (justfile recipes + the crash suite's seven #[ignore]d tests at main.rs:176/191/205, identity.rs:647/668/687, store.rs:662) that the partition is complete today but unguarded, so any future ignored crash test silently loses all PR coverage. Enqueued as a triage packet to repo-health-code-pilot.
    • Expectation: triage (effort s) confirms the gap against current main and routes a coverage-guard check (list ignored crash tests, assert each is split-covered or a named corpus-writer exclusion).
    • Links: packet hidden_files/packet-code-1635.json
  5. added
    work/assignedQueue worker lifecycle state
    and removed on Oct 28, 2026
  6. 38 remaining items

  7. added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Oct 28, 2026
  8. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), Lane B shift
    • Session / ID: queue task 1783
    • Found via: queue claim
    • Task: Parked 60m — laptop SSH unreachable (Connection closed by UNKNOWN port 65535 via ~/tools/laptop-ssh.sh, 2026-10-28 ~11:56Z); same outage that parked task 1821 earlier this morning. This fix's worktree, edits and pass/fail/pass proof must run on the laptop (instruction §3), so no sandbox work was started.
    • Expectation: resume on next claim after the park when laptop SSH works; full resume brief is in the task's verified checkpoint
    • Links: n/a yet
  9. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor
  10. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  11. added a commit that references this issue on Oct 28, 2026
  12. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)area/ciCI/CD pipelines, workflows, and build automation (area)effort/sSmall: expected under 2 hours of workkind/ciCI/CD pipelines, workflows, and build automationkind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions