Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Fix macOS and Windows installers when rust-docs is not available. - #109880

Merged
bors merged 2 commits into
rust-lang:masterfrom
ehuss:fix-macos-installer-rust-docs
Apr 10, 2023
Merged

bors merged 2 commits into
rust-lang:masterfrom
ehuss:fix-macos-installer-rust-docs

Conversation

@ehuss

@ehuss ehuss commented Apr 3, 2023 •

Copy link
Copy Markdown
Contributor

This fixes the macOS .pkg and Windows .msi installers to work when rust-docs is not available. If the rust-docs component is not built, then the installer would fail. This adds the rust-docs component to the filtering mechanism so that the rust-docs line of the distribution definition aren't included.

I tested installing and uninstalling both with and without the rust-docs component available.

This happens on the aarch64-apple-darwin distribution provided by rust-lang since we currently disable the rust-docs component due to long build times. An alternate solution would be to just enable the rust-docs component on aarch64-apple-darwin since there are faster build systems.

Fixes #109877

@rustbot

rustbot commented Apr 3, 2023

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Apr 3, 2023
@Mark-Simulacrum

Copy link
Copy Markdown
Member

For rustup IIRC we have the fallback mechanism where we pull in a Linux rust-docs, but I guess that's not really possible for pkg (on apple) or msi (on windows) installers, at least without restructuring CI so that they're built after Linux dist completes?

Does this handle the same problem for our windows installers?

@ehuss

ehuss commented Apr 3, 2023

Copy link
Copy Markdown
Contributor Author

Does this handle the same problem for our windows installers?

The Windows distributions all include rust-docs (including aarch64-pc-windows-msvc, which btw installs in the wrong directory, x86 instead of ARM). So for now, at least, they shouldn't need any modification. I do not know if the msi fails if the docs are not available. I can look into that if you want.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Hm, ok. We may want to disable docs there soon so if it's not too hard, let's check on that, but r=me other than that.

@ehuss ehuss changed the title Fix macos pkg installer when rust-docs is not available. Fix macOS and Windows installers when rust-docs is not available. Apr 4, 2023
@ehuss

ehuss commented Apr 4, 2023

Copy link
Copy Markdown
Contributor Author

OK, I pushed an update that makes the MSI installer also handle the case when rust-docs is not built. I tested by running the installer built with and without docs.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Thanks!

@bors r+

@bors

bors commented Apr 9, 2023

Copy link
Copy Markdown
Contributor

📌 Commit 6b57a34 has been approved by Mark-Simulacrum

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 Apr 9, 2023
@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6b57a34 with merge 68e67609ffe004649408b3b6ebf8aee00b1a1a70...

@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

💔 Test failed - checks-actions

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

ehuss commented Apr 10, 2023

Copy link
Copy Markdown
Contributor Author

@bors retry

crates.io network blip

@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 Apr 10, 2023
@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6b57a34 with merge 1d1f769d3900238eca078ba2c8dbca127fd7170e...

@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

💔 Test failed - checks-actions

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

ehuss commented Apr 10, 2023

Copy link
Copy Markdown
Contributor Author

@bors retry

crates.io network blip

@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 Apr 10, 2023
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job dist-aarch64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6b57a34 with merge 749b487...

@bors

bors commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing 749b487 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 10, 2023
@bors
bors merged commit 749b487 into rust-lang:master Apr 10, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 10, 2023
@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (749b487): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.3% [1.3%, 1.3%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.6% [-0.7%, -0.5%] 4
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) -0.2% [-0.7%, 1.3%] 5

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.4% [0.4%, 0.4%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.5% [-0.5%, -0.5%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.0% [-0.5%, 0.4%] 2

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job dist-aarch64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

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. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The rust standalone installer for macOS aarch64 (Apple Silicon) fails to install

6 participants