crates/registry-breg/tests/install_script.rs: InstallerFixture::build names the fixture root by process id and SystemTime::now().as_nanos(). macOS reports CLOCK_REALTIME at 1 µs resolution, so glibc_at_the_floor_installs_both_commands and glibc_below_the_floor_refuses_before_installing, which do the same file read before building their fixtures, can share a root. The below-the-floor installer exits at the preflight, its fixture's Drop removes the shared root, and the at-the-floor installer reports "Could not read the published breg v9.8.7 binary for linux/amd64". Observed: 5 failures in 30 runs of the two tests together, 0 in 30 runs of the failing test alone, 0 in 20 runs with --test-threads=1. Fix in the test: a process-wide counter or a tempfile directory in the root name.
interrupted_replacement_and_baseline_advance_restore_the_complete_prior_state (crates/registry-evidencectl/src/source_import/tests.rs) failed once on its final assert!(ProjectLock::acquire(&fixture.project).is_ok()) during a whole-crate run under CPU contention, and did not reproduce in 20 solo runs or 30 runs as two concurrent loops. The assertion discards the error, so the cause is unknown. Make the assertion report the error and rerun under contention.
crates/registry-evidencectl/tests/production_build.rs creates target/production-build-* directories (tempfile prefix production-build-) that outlive the run; 30 were left behind after a few local runs. Use a directory removed on drop, or clean up in the test's teardown.
Origin: review of PR #865 (items 1 and 2 seen in the local gate runs; item 3 predates the PR).
crates/registry-breg/tests/install_script.rs:InstallerFixture::buildnames the fixture root by process id andSystemTime::now().as_nanos(). macOS reportsCLOCK_REALTIMEat 1 µs resolution, soglibc_at_the_floor_installs_both_commandsandglibc_below_the_floor_refuses_before_installing, which do the same file read before building their fixtures, can share a root. The below-the-floor installer exits at the preflight, its fixture'sDropremoves the shared root, and the at-the-floor installer reports "Could not read the published breg v9.8.7 binary for linux/amd64". Observed: 5 failures in 30 runs of the two tests together, 0 in 30 runs of the failing test alone, 0 in 20 runs with--test-threads=1. Fix in the test: a process-wide counter or atempfiledirectory in the root name.interrupted_replacement_and_baseline_advance_restore_the_complete_prior_state(crates/registry-evidencectl/src/source_import/tests.rs) failed once on its finalassert!(ProjectLock::acquire(&fixture.project).is_ok())during a whole-crate run under CPU contention, and did not reproduce in 20 solo runs or 30 runs as two concurrent loops. The assertion discards the error, so the cause is unknown. Make the assertion report the error and rerun under contention.crates/registry-evidencectl/tests/production_build.rscreatestarget/production-build-*directories (tempfile prefixproduction-build-) that outlive the run; 30 were left behind after a few local runs. Use a directory removed on drop, or clean up in the test's teardown.Origin: review of PR #865 (items 1 and 2 seen in the local gate runs; item 3 predates the PR).