Skip to content

fix(tests): extend the spawn pin to benches; correct the pin's cost note - #3792

Merged
max-sixty merged 2 commits into
mainfrom
fix-wrapper-spawn-flakes
Aug 9, 2026
Merged

fix(tests): extend the spawn pin to benches; correct the pin's cost note#3792
max-sixty merged 2 commits into
mainfrom
fix-wrapper-spawn-flakes

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to #3784, prompted by a history audit of the spawn-flake family. Benches still spawned env!("CARGO_BIN_EXE_wt") — the uplifted path the suite stopped spawning — so a concurrent build could fail a bench run's spawns; all 11 sites now route through wt_bin() and test_wt_spawns_are_pinned scans benches/ too, making the rule exceptionless. The pin's docstring also claimed the hardlink shares the deps/ artifact's inode: true where cargo uplifts by hardlink (Linux), but macOS uplifts by copy-on-write clone — the pin keeps the clone, whose blocks stay shared with deps/ (measured: cloning the 70 MB binary consumes 8 KB), so the no-cost conclusion stands with the mechanism now stated per platform, plus why nothing sweeps the directory.

This was written by Claude Code on behalf of max-sixty

Benches spawned env!("CARGO_BIN_EXE_wt") directly — the same uplifted
path the suite stopped spawning — so a sibling build could fail a bench
run's spawns; route them through wt_bin() and widen
test_wt_spawns_are_pinned's scan to benches/. The pin docstring claimed
the hardlink shares the deps artifact's inode: true where cargo uplifts
by hardlink (Linux), but on macOS the uplift is a copy-on-write clone —
the pin keeps the clone, whose blocks stay shared with deps (measured:
cloning the 70 MB binary consumes 8 KB), so the cost conclusion stands
with the mechanism stated per platform.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Removing the use std::path::Path; line left its #[cfg(unix)] behind, so use wt_perf::{…} now carries the attribute twice. It compiles and lint is green (clippy's duplicated_attributes doesn't fire on repeated cfg), but it reads as an editing slip — suggestion inline.

Comment thread benches/picker_preview.rs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@max-sixty
max-sixty merged commit 897f7d7 into main Aug 9, 2026
40 checks passed
@max-sixty
max-sixty deleted the fix-wrapper-spawn-flakes branch August 9, 2026 22:36
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.

2 participants