Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dont call wrap in a no-op source_id::with* #14318

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

Eh2406
Copy link
Contributor

@Eh2406 Eh2406 commented Jul 29, 2024

What does this PR try to resolve?

When running resolution in parallel (which my pubgrub tests do but cargo does not) there can be a lot of contention on the lock for constructing new source_id. When investigating much of this is due to without_precise in encodable_package_id in check_duplicate_pkgs_in_lockfile. There are many ways to solve this, the simplest seems to be to return self if the requested modification made no difference.

How should we test and review this PR?

All tests still pass and it's an internal re-factor.

In addition running all crates on crates.io through cargoes resolver in parallel on 190 cores went from >20k sec cpu time to ~10k.

Additional information

@rustbot
Copy link
Collaborator

rustbot commented Jul 29, 2024

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 29, 2024
epage added a commit to epage/cargo that referenced this pull request Jul 29, 2024
This is to quickly resolve a test failure from rust-lang#14318
@epage
Copy link
Contributor

epage commented Jul 29, 2024

I posted #14319 for the test failure.

bors added a commit that referenced this pull request Jul 29, 2024
Partial revert of 3085b54

This is to quickly resolve a test failure from #14318
src/cargo/core/source_id.rs Outdated Show resolved Hide resolved
@epage
Copy link
Contributor

epage commented Jul 29, 2024

#14319 has been merged

@epage
Copy link
Contributor

epage commented Jul 29, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jul 29, 2024

📌 Commit 22f4352 has been approved by epage

It is now in the queue for this repository.

@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 Jul 29, 2024
@bors
Copy link
Contributor

bors commented Jul 29, 2024

⌛ Testing commit 22f4352 with merge 62f2d3b...

@bors
Copy link
Contributor

bors commented Jul 29, 2024

☀️ Test successful - checks-actions
Approved by: epage
Pushing 62f2d3b to master...

@bors bors merged commit 62f2d3b into rust-lang:master Jul 29, 2024
22 checks passed
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 31, 2024
Update cargo

5 commits in b5d44db1daf0469b227a6211b987162a39a54730..257b72b8adfb1f2aa9916cefca67285c21666276
2024-07-26 21:27:12 +0000 to 2024-07-30 15:08:27 +0000
- chore: Update toml (rust-lang/cargo#14324)
- dont call wrap in a no-op source_id::with* (rust-lang/cargo#14318)
- Partial revert of 3085b548ecbd7d29d40c6180609ea3c224bad857 (rust-lang/cargo#14319)
- chore(deps): update msrv (rust-lang/cargo#14303)
- Fix warnings building tests on Windows (rust-lang/cargo#14315)

r? ghost
@rustbot rustbot added this to the 1.82.0 milestone Jul 31, 2024
stupendoussuperpowers pushed a commit to stupendoussuperpowers/cargo that referenced this pull request Aug 7, 2024
This is to quickly resolve a test failure from rust-lang#14318
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.

5 participants