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

improve incompatible option detection for ci-llvm #129153

Closed
onur-ozkan opened this issue Aug 16, 2024 · 0 comments · Fixed by #129788
Closed

improve incompatible option detection for ci-llvm #129153

onur-ozkan opened this issue Aug 16, 2024 · 0 comments · Fixed by #129788
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@onur-ozkan
Copy link
Member

Since #128822, CI builders provide their configuration in the builder-config file, which can be used to more precisely detect incompatible ci-llvm options (similar to how it's done for rustc options in #129052). This helps to prevent incorrect assumptions of CI builders on a used llvm option which was also used while building ci-llvm artifact.

@onur-ozkan onur-ozkan added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 16, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 16, 2024
@onur-ozkan onur-ozkan removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 16, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 8, 2024
…-llvm, r=Kobzol

detect incompatible CI LLVM options more precisely

Previously, the logic here was simply checking whether the option was set in `config.toml`. This approach was not manageable in our CI runners as we set so many options in config.toml. In reality, those values are not incompatible since they are usually the same value used to generate the CI llvm. Now, the new logic compares the configuration values with the values used to generate the CI llvm, so we get more precise results and make the process more manageable.

Fixes rust-lang#129153
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 8, 2024
…-llvm, r=Kobzol

detect incompatible CI LLVM options more precisely

Previously, the logic here was simply checking whether the option was set in `config.toml`. This approach was not manageable in our CI runners as we set so many options in config.toml. In reality, those values are not incompatible since they are usually the same value used to generate the CI llvm. Now, the new logic compares the configuration values with the values used to generate the CI llvm, so we get more precise results and make the process more manageable.

Fixes rust-lang#129153
@bors bors closed this as completed in 263a3ae Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants