Skip to content

Revert "Release a jobserver token while locking a file"#7201

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:revert-thing
Aug 2, 2019
Merged

Revert "Release a jobserver token while locking a file"#7201
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:revert-thing

Conversation

@alexcrichton

@alexcrichton alexcrichton commented Aug 1, 2019

Copy link
Copy Markdown
Member

This reverts commit d19b41f.

Discovered in #7200 this is just a straight up recipe for deadlock. One Cargo has a jobserver token and wants a file lock. Another Cargo has the file lock and wants a jobserver token. If we had a way to acquire a jobserver token in a nonblocking fashion we could perhaps solve this, but for now I think it's best to revert to the previous behavior.

Closes #7200

@rust-highfive

Copy link
Copy Markdown

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2019
@alexcrichton

Copy link
Copy Markdown
Member Author

r? @ehuss

@rust-highfive rust-highfive assigned ehuss and unassigned nrc Aug 1, 2019
@ehuss

ehuss commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Ah, I shoulda reviewed a little more closely.

@bors r+

Should we backport this to beta?

@bors

bors commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

📌 Commit 20d9119 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 2, 2019
@bors

bors commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

⌛ Testing commit 20d9119 with merge 572eaf2...

bors added a commit that referenced this pull request Aug 2, 2019
Revert "Release a jobserver token while locking a file"

This reverts commit d19b41f.

Discovered in #7200 this is just a straight up recipe for deadlock. One Cargo has a jobserver token and wants a file lock. Another Cargo has the file lock and wants a jobserver token. If we had a way to acquire a jobserver token in a nonblocking fashion we could perhaps solve this, but for now I think it's best to revert to the previous behavior.

Closes #7200
@bors

bors commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-azure
Approved by: ehuss
Pushing 572eaf2 to master...

@bors bors merged commit 20d9119 into rust-lang:master Aug 2, 2019
@alexcrichton alexcrichton deleted the revert-thing branch August 2, 2019 15:59
@alexcrichton

Copy link
Copy Markdown
Member Author

agreed to the backport!

bors added a commit to rust-lang/rust that referenced this pull request Aug 8, 2019
Update cargo

9 commits in 26092da337b948719549cd5ed3d1051fd847afd7..42a8c0adf91323c01228268c651aef5366b25b69
2019-07-31 23:24:32 +0000 to 2019-08-07 20:41:07 +0000
- Add support for customizing JSON diagnostics from Cargo (rust-lang/cargo#7214)
- Bump rustfix (rust-lang/cargo#7221)
- Fix remap-path-prefix from failing. (rust-lang/cargo#7219)
- Clean up build script stuff and documentation. (rust-lang/cargo#7215)
- Remove debug panic in package-features. (rust-lang/cargo#7213)
- Fix an old test. (rust-lang/cargo#7208)
- Remove unused AstBuilder (rust-lang/cargo#7210)
- Revert "Release a jobserver token while locking a file" (rust-lang/cargo#7201)
- improve error message for unmatched prerelease dependencies (rust-lang/cargo#7191)
@ehuss ehuss added this to the 1.38.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two concurrent cargo rustc calls hang

5 participants