Skip to content

train b51 integration gate (do not merge) - #471

Closed
roodboi wants to merge 3 commits into
nextfrom
train/b51
Closed

roodboi wants to merge 3 commits into
nextfrom
train/b51

Conversation

@roodboi

@roodboi roodboi commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Integration gate for merge batch b51: origin/next + #461 (HACK-1393). Tree 42ae5146. Closed after the batch squashes.

🤖 Generated with Claude Code


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

roodboi and others added 3 commits October 23, 2026 22:53
Fixtures named temp roots from the process ID and the wall clock. macOS
reads SystemTime in whole microseconds (node::now counts milliseconds), so
two tests that cargo test starts together can compute the same root. With
a non-exclusive create (state::private_directory is recursive) the second
fixture reuses the first one's root: it finds the other test's provider
lock held, and the first fixture's Drop removes the root under it
(hostname_authority::managed, CI signature provider_busy at :111 and
NotFound at :146).

Add a test-only crate::unique_test_root / private_test_root helper: the
name is <prefix>-<pid>-<process-wide sequence>, made with one exclusive,
non-recursive mkdir; a name left by an earlier process with the same pid
is skipped, never reused. Switch the lib fixtures that named roots from
pid alone or pid plus clock to it. Fixtures that #399 also changes take
#399's identical edit (crate::next_test_scratch appended), so the two
branches merge cleanly in either order.

Refs HACK-1393

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed helper

The host relay control fixture named its /tmp root from the process ID
alone, so a second root in the same process (the live test's other owner
root) or a root left by an earlier process with the same ID failed the
exclusive create. Take both roots from crate::private_test_root, which
keeps the 0700 exclusive create, and record the identity as before.

Refs HACK-1393

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roodboi roodboi closed this Oct 24, 2026
@roodboi
roodboi deleted the train/b51 branch October 24, 2026 05:15
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