Skip to content

test(remove): wait for staged trash cleanup after inherited lock - #4621

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-40644159052
Nov 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-40644159052

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

The feature-powerset check on #4597 failed because background_removal_preserves_native_path_arguments expected staged trash to be empty immediately after removal. A concurrently forked child can briefly inherit the trash drain lock, so the test's one cleanup attempt may leave the staged entry behind. The test now uses the bounded wait_for helper to retry cleanup and still verifies the checkout and registration are removed. This follows the same accepted fix for another drain test in #4530.

The failed feature powerset job exercised the original assertion. The targeted test passes locally after the change. The full cargo run -- hook pre-merge --yes gate ran 5,463 tests and reported seven failures outside this test; some require socket operations unavailable in this sandbox. CI on this PR will provide the complete verification.

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