[BUG] Parallel orphan tests share a filesystem checker image #24
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/e2fsd#24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two orphan-lifetime tests use the same temporary ext image while running in parallel. One test can overwrite or remove the image while the other runs e2fsck.
Reproduction
Run the normal parallel unit suite at
508790d3b2e730e126905793fadb0eeac92040cf. CI 411 reaches this collision; its frequency is not established. Both affected cases callassert_e2fsckwith the labelfs-ext3, and the helper names its image using only that label and the process ID.Expected and actual behavior
Each checker invocation must own a distinct image through checking and removal. Instead, one case reports e2fsck aborted and the other fails to remove the image with ENOENT. The suite finishes with 572 of 574 cases passing in 64.48 seconds.
Environment and identity
Linux 6.14.0-1-pve, x86-64 Docker CI, normal Rust unit-test concurrency. The affected code is the host fixture helper in
src/media/truncate_fixture_tests.rs; this does not establish a guest filesystem defect. The last reliably working parallel revision is unknown.Evidence and prior checks
The linked run retains both failures and their checker output. The previously stalled encrypted-growth cases complete after the AES dependency update. Test serialization and larger time limits would leave this fixture collision unresolved.
Tracking
Repository audit, implementation PR, phase completion.
Each checker invocation now creates its own image exclusively. Concurrent same-label fixtures stay independent; attempts to reuse an existing file or symlink leave it intact. Commit c0b9ce7f passes all 577 tests in CI 415, including both original failures. Closing this fixture race.