Skip to content

fix(tests): the scratch gate went red on the pass that wired it - #2973

Merged
gHashTag merged 1 commit into
masterfrom
w798
Aug 30, 2026
Merged

fix(tests): the scratch gate went red on the pass that wired it#2973
gHashTag merged 1 commit into
masterfrom
w798

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Harness scratch directories failed on master at corpus_zig_bodies.rs — three #[test] functions, a scratch directory keyed by process::id() alone, and a remove_dir_all of it. The shape #2954 closed across five files, reintroduced by #2966, the same pass that wired the gate.

The race cannot fire today: only one of the three tests touches the directory. The gate refuses the shape rather than the outcome, which is why it fired on the commit that introduced the defect instead of on a later, innocent one.

Keyed by an AtomicUsize counter now, like every other scratch helper in the tree. --gate exits 0, the five-leg control passes, the three tests still pass.

Closes #2972 · Refs #2954 · Refs #2966

🤖 Generated with Claude Code

`Harness scratch directories` failed on master at corpus_zig_bodies.rs:
three #[test] functions, a scratch directory keyed by process::id()
alone, and a remove_dir_all of it. That is the shape #2954 closed across
five files, reintroduced by #2966 -- the same pass that wired the gate.

The race cannot fire today: only one of the three tests touches the
directory. The gate refuses the SHAPE rather than the outcome, and that
is the right call -- a second test using the same helper is one edit
away, and that edit would not look like the change that broke anything.

Keyed by an AtomicUsize counter now, like every other scratch helper in
the tree. --gate exits 0, the five-leg control passes, the three tests
still pass.

The gate went red within a day of being wired, on a file written by the
person who wired it, and it was the only thing that noticed.

Closes #2972
Refs #2954
Refs #2966

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@gHashTag
gHashTag enabled auto-merge (squash) August 30, 2026 18:20
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-30 18:20:33 UTC

Summary

Status Count
Total Open PRs 10
PRs with Failing Checks 8
PRs with All Checks Green 2
READY 0
FAILING 8
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=69d5f0a49f87 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag
gHashTag merged commit 23b0068 into master Aug 30, 2026
28 checks passed
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.

Harness scratch gate is red on master, on a test file added by the commit that wired the gate

1 participant