Skip to content

Fix test compiling Fuchsia with rust-under-test - #162573

Open
erickt wants to merge 1 commit into
rust-lang:mainfrom
erickt:fix-fuchsia-tests
Open

erickt wants to merge 1 commit into
rust-lang:mainfrom
erickt:fix-fuchsia-tests

Conversation

@erickt

@erickt erickt commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

View all comments

The rust tests for Fuchsia were disabled some time ago in #138690 when fuchsia.googlesource.com was temporarily rate limiting git checkout requests during a high period of requests. This makes a number of attempts to avoid this issue:

  • It checks out Fuchsia with git filter tree:0 to reduce download size.
  • It blocks downloading Fuchsia's Rust toolchain.
  • It adds a number of retries to requests.
  • It reduces the parallel git checkout threads.

Since it has been a while since we updated the Fuchsia integration, it also updates:

  • Use the most recent commit be532c.
  • It updates to the clang commit 5e63f2.
  • It updates to the Fuchsia SDK version 33.20260909.5.1.
  • It updates the ubuntu container to 26.04.
  • It renames the test job to test-x86_64-fuchsia.
  • The Fuchsia build system now requires shared libraries to be stripped.
  • The Fuchsia build now requires the Rust toolchain to have the artifacts for arm64 and riscv64 to be present, even though they might not be used for this build.

Note that I did use Gemini to help debug some issues, but all the code has been written by me.

try-job: dist-various-2
try-job: test-x86_64-fuchsia

@rustbot

rustbot commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Warning

If you are changing how CI LLVM is built or linked, make sure to bump
src/bootstrap/download-ci-llvm-stamp.

cc @jieyouxu

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Sep 10, 2026
@rustbot

rustbot commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

r? @marcoieni

rustbot has assigned @marcoieni.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: infra-ci
  • infra-ci expanded to Kobzol, Mark-Simulacrum, jieyouxu, marcoieni, ubiratansoares
  • Random selection from Mark-Simulacrum, jieyouxu, marcoieni, ubiratansoares

@rustbot

This comment has been minimized.

@erickt
erickt force-pushed the fix-fuchsia-tests branch 2 times, most recently from a713911 to fc8ed40 Compare September 10, 2026 04:05
@erickt

erickt commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

It looks like the job-linux-8c config was removed in #161562. For now I switched to using job-linux-4c to at least verify the tests are still working, but should I instead switch over to job-linux-x86-8c-ec2? Also, I saw in #162063 that the aarch64 bots might be about half as much as the x64 bots, should we switch to targeting them instead? We test that configuration in our Fuchsia tests, so it should work out of the box.

@erickt

erickt commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 10, 2026
Fix test compiling Fuchsia with rust-under-test

try-job: dist-various-2
try-job: x86_64-fuchsia
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 10, 2026
@rust-bors

rust-bors Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

💔 Test for a03d4d5 failed: CI. Failed job:

@rustbot

rustbot commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

The rustc-dev-guide subtree was changed. If your future PRs only touch the subtree, consider submitting them directly to rust-lang/rustc-dev-guide, which is where the document is primarily maintained (and has faster CI).

cc @BoxyUwU, @tshepang

@rustbot rustbot added the A-rustc-dev-guide Area: rustc-dev-guide label Sep 10, 2026
@erickt

erickt commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

@bors try

rust-bors Bot pushed a commit that referenced this pull request Sep 10, 2026
Fix test compiling Fuchsia with rust-under-test

try-job: dist-various-2
try-job: test-x86_64-fuchsia
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

💔 Test for c09146d failed: CI. Failed jobs:

@jieyouxu jieyouxu assigned jieyouxu and unassigned marcoieni Sep 10, 2026
@erickt
erickt marked this pull request as draft September 10, 2026 04:36
@erickt

erickt commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

Looks like I need to incorporate some changes from CI, so I switched this to a draft mode until I get the tests passing.

@bors try

@rust-bors

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 15, 2026
Fix test compiling Fuchsia with rust-under-test

try-job: dist-various-2
try-job: test-aarch64-fuchsia
try-job: test-x86_64-fuchsia
@erickt

erickt commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

@bors try cancel

@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Try build cancelled. Cancelled workflows:

Hint: if you want to run another try build, you do not need to manually cancel the previous one. Just run @bors try and bors will cancel the previous build automatically.

@erickt

erickt commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

@bors try

rust-bors Bot pushed a commit that referenced this pull request Sep 15, 2026
Fix test compiling Fuchsia with rust-under-test

try-job: dist-various-2
try-job: test-x86_64-fuchsia
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b68343f (b68343f8d1b60eda945f77f06dc69446ba3a2df9)
Base parent: 574ff7d (574ff7d98bd6d037e5236a8453029173b32631fd)

@erickt
erickt marked this pull request as ready for review September 15, 2026 02:17
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 15, 2026
@erickt

erickt commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, it took a little iteration to get the try job ready. Unfortunately I forgot that while we are producing our toolchain on a linux arm64 machine, we don't yet support compiling fuchsia on an arm64 machine. So we'll need to stick with the x86_64 instances. From the most recent run it looks like this test takes an hour and 13 minutes, so it stays under the threshold.

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. I think there's a few things.

View changes since this review

Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/build-fuchsia.sh
Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/build-fuchsia.sh Outdated
Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/build-fuchsia.sh Outdated
Comment thread src/ci/docker/scripts/build-fuchsia-toolchain.sh Outdated
Comment thread src/doc/rustc-dev-guide/src/tests/ecosystem-test-jobs/fuchsia.md Outdated
Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/install-rust-for-fuchsia.sh Outdated
Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/Dockerfile Outdated
Comment thread src/ci/docker/host-x86_64/test-x86_64-fuchsia/Dockerfile Outdated
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 16, 2026
@rustbot

rustbot commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Comment thread src/doc/rustc-dev-guide/src/tests/ecosystem-test-jobs/fuchsia.md Outdated
The rust tests were disabled some time ago when fuchsia.googlesource.com
was temporarily rate limiting git checkout requests during a high period
of requests. This makes a number of attempts to avoid this issue:

* It checks out Fuchsia with git filter `tree:0` to reduce download
  size.
* It blocks downloading Fuchsia's Rust toolchain.
* It adds a number of retries to requests.
* It reduces the parallel git checkout threads.

Since it has been a while since we updated the Fuchsia integration, it
also updates:

* Use the most recent commit [be532c].
* It updates to the clang commit [5e63f2].
* It updates to the Fuchsia SDK version 33.20260909.5.1.
* It updates the ubuntu container to 26.04.
* It renames the test job to `test-x86_64-fuchsia`.
* The Fuchsia build system now requires shared libraries to be stripped.

try-job: dist-various-2
try-job: test-x86_64-fuchsia

[be532c]: https://fuchsia.googlesource.com/integration/+/be532c365aa6ba56b08ed684c0f8bb71960c18fd
[5e63f2]: llvm/llvm-project@5e63f2c
@erickt

erickt commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 16, 2026
@erickt

erickt commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 16, 2026
Fix test compiling Fuchsia with rust-under-test

try-job: dist-various-2
try-job: test-x86_64-fuchsia
@rust-bors

rust-bors Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 005a85e (005a85e0293b203a5d777a70526ded250896be32)
Base parent: 92801ed (92801ede88f6c10e34df6976a4cfde40142585f2)

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

Labels

A-CI Area: Our Github Actions CI A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants