Repository navigation
Description
Failed run
Run 26769127359 on commit f414934 ("feat(list): add repo_url to JSON output (#2941)").
Failure shape
Non-required job collect affected coverage (macos) failed after 26m54s. All 3871 tests ran and the SQLite DB was stored successfully — the failure is in the post-collect cleanup:
[3870/3871] wt-perf::bin/wt-perf::tests::cmd_failure_annotates_name: 12 ranges (1.2s)
storing coverage for 3871 tests (521389 ranges)...
done. 3871 tests, 521389 ranges stored in target/affected/coverage.db (2369.6s total)
Error: failed to remove profraw dir /Users/runner/work/worktrunk/worktrunk/target/affected/profraw-3724: Directory not empty (os error 66)
##[error]Process completed with exit code 1.
The error comes from remove_profraw_dir in cargo-affected src/collect.rs, which calls std::fs::remove_dir_all. macOS returned ENOTEMPTY (os error 66) on the final rmdir, despite the entries having been unlinked — a known APFS race where directory enumeration lags behind unlinkat (often correlated with Spotlight / fseventsd retaining brief references).
Why this is transient, not a regression
- Coverage work itself succeeded. All 3871 tests ran, 521,389 coverage ranges were stored to
target/affected/coverage.dbin 2369.6s. The error fires after the data work, in cleanup. - macOS leg passed on the last 6 consecutive prior runs (26621992766, 26637701475, 26668486939, 26690553627, 26692844192, 26695754243) on the same
cargo-affectedinstall spec (latest default-branch sha) and samemacos-15runner image. - Failure surface is filesystem-level, not anything worktrunk's code does — the syscall is
rmdiron a directory cargo-affected owns end-to-end. - Linux and Windows legs of
collect affected coveragepassed on this same commit, exercising the identical cargo-affected cleanup path with no error.
Per running-tend, filesystem-level non-deterministic causes are explicitly listed as transient.
Repeat-occurrence check
Searched worktrunk-bot ci-fix: issues over the last 7 days for this exact failure shape (profraw, Directory not empty, remove_dir_all on macOS):
- #2957 (2026-06-01, run 26767318774) —
collect affected coverage (linux)runner-host disk-full on_diag/Worker_*.log. Different shape (runner-host I/O, not cargo-affected cleanup; different platform). - #2904 (2026-05-25, run 26421412716) — same linux runner-host disk-full. Different shape.
- #2918 (2026-05-27) — Windows cache-restore failure. Different shape.
- #2770 (2026-05-15) — runner disk exhaustion. Different shape.
This is the first occurrence of cargo-affected post-collect rmdir ENOTEMPTY on macOS. No prior matches within the 7-day window — below the 2+ threshold for escalation to a durable mitigation in upstream cargo-affected.
Disposition
No fix PR. Closing immediately per the ci-fix transient-failure path. The required checks (test (linux|macos|windows)) all passed, so the commit on main is fine; collect affected coverage is non-required (it incrementally builds the coverage DB consumed by the advisory affected tests job). A maintainer can rerun the macOS leg to refresh that DB if needed.
If the same shape fires again on macOS, the next ci-fix run will cross the 2+ threshold and open a durable mitigation PR against max-sixty/cargo-affected — most likely a bounded retry loop around remove_dir_all to absorb the APFS race.
Activity
worktrunk-bot commentedon Jun 1, 2026
Transient — closing as diagnosed.