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

Check for rmeta crates when getting existing crates from cache #81414

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

rylev
Copy link
Member

@rylev rylev commented Jan 26, 2021

This change makes sure to check for rmeta files when resolving crates instead of always going to disk in that case.

@rust-highfive
Copy link
Collaborator

r? @lcnr

(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 Jan 26, 2021
@lcnr
Copy link
Contributor

lcnr commented Jan 26, 2021

does running perf matter here? considering that we don't have any perf runs using windows?

@rylev
Copy link
Member Author

rylev commented Jan 26, 2021

@lcnr this should affect all platforms since rmeta files are used on all platforms. Though I would hope this would largely be positive.

@lcnr
Copy link
Contributor

lcnr commented Jan 26, 2021

also I don't know enough about this to tell if this change is good 😅

maybe
r? @michaelwoerister

@lcnr
Copy link
Contributor

lcnr commented Jan 26, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@bors
Copy link
Contributor

bors commented Jan 26, 2021

⌛ Trying commit 36835b7 with merge 0c36e818d2ad0e7c12c23b7eb92dc6a03b16dab7...

@bors
Copy link
Contributor

bors commented Jan 26, 2021

☀️ Try build successful - checks-actions
Build commit: 0c36e818d2ad0e7c12c23b7eb92dc6a03b16dab7 (0c36e818d2ad0e7c12c23b7eb92dc6a03b16dab7)

@rust-timer
Copy link
Collaborator

Queued 0c36e818d2ad0e7c12c23b7eb92dc6a03b16dab7 with parent 7907345, future comparison URL.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jan 26, 2021
@nagisa
Copy link
Member

nagisa commented Jan 26, 2021

I'll review this if nobody else gets to this before me. This is really promising.

@petrochenkov petrochenkov self-assigned this Jan 26, 2021
Copy link
Member

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

I've reviewed the surrounding code and this change looks good to me in context of it. I see @petrochenkov self-assigned themselves too, so I'll give them an opportunity to review too (not to mention that timing run isn't complete yet).

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (0c36e818d2ad0e7c12c23b7eb92dc6a03b16dab7): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jan 26, 2021
@rylev
Copy link
Member Author

rylev commented Jan 26, 2021

Looks like the perf is largely neutral. This is likely only to have a noticeable impact on extremely large crates.

@nagisa
Copy link
Member

nagisa commented Jan 26, 2021

It is positive for large-ish crate graphs (such as hyper); AFAICT that's the largest crate graph in the list of crates we time.

@michaelwoerister michaelwoerister removed their assignment Jan 27, 2021
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jan 27, 2021

📌 Commit 36835b7 has been approved by petrochenkov

@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 Jan 27, 2021
@bors
Copy link
Contributor

bors commented Jan 28, 2021

⌛ Testing commit 36835b7 with merge e32f372...

@bors
Copy link
Contributor

bors commented Jan 28, 2021

☀️ Test successful - checks-actions
Approved by: petrochenkov
Pushing e32f372 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 28, 2021
@bors bors merged commit e32f372 into rust-lang:master Jan 28, 2021
@rustbot rustbot added this to the 1.51.0 milestone Jan 28, 2021
@rylev rylev deleted the fetch-rmeta-crates branch January 28, 2021 17:44
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 29, 2021
…trochenkov

Pre-canoncalize ExternLocation::ExactPaths

This stores pre-canacolized paths inside `ExternLocation::ExactPaths` so that we don't need to canoncalize them every time we want to compare them to source lib paths.

This is related to rust-lang#81414.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

9 participants