Skip to content

Conversation

@ranger-ross
Copy link
Member

What does this PR try to resolve?

This PR fixes incorrect locking behavior in layout.rs that forgets to lock the build-dir when build-dir == artifact-dir.
This is problematic is the default for both are $WORKSPACE/target and I overlooked this :(

Issue reported in #16384

How to test and review this PR?

See the tests. You can also run cargo check and check for the presence of .cargo-lock

r? @weihanglo

@rustbot rustbot added A-layout Area: target output directory layout, naming, and organization S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 12, 2025
Copy link
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weihanglo weihanglo added this pull request to the merge queue Dec 12, 2025
@weihanglo
Copy link
Member

Let me know if you're willing to do a beta-backport, @ranger-ross. No worries if you are busy.

For cherry-picking, it would need this PR, as well as #16380 to make CI happy, and should be filed against the branch https://github.com/rust-lang/cargo/tree/rust-1.93.0. (See doc)

@weihanglo weihanglo added the beta-nominated Nominated to backport to the beta branch. label Dec 12, 2025
@ranger-ross
Copy link
Member Author

sure I can take a crack at it :)

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2025
@weihanglo
Copy link
Member

The same flakiness on aarch64-pc-windows-msvc (again)

requeuing

 ---- cache_lock::download_then_mutate stdout ----

thread 'cache_lock::download_then_mutate' (4228) panicked at tests\testsuite\cache_lock.rs:15:5:
test did not finish within 10 attempts (1.0035934s total)

@weihanglo weihanglo added this pull request to the merge queue Dec 12, 2025
Merged via the queue into rust-lang:master with commit 4d0eff0 Dec 12, 2025
28 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 12, 2025
weihanglo added a commit that referenced this pull request Dec 12, 2025
### What does this PR try to resolve?

This PR backports #16385 along with some test fixes from #16380 to make
CI happy.

### How to test and review this PR?

r? @weihanglo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-layout Area: target output directory layout, naming, and organization beta-nominated Nominated to backport to the beta branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants