Skip to content

Conversation

@Zalathar
Copy link
Member

These tests are inherently sensitive to optimization level, so it's silly to have new tests mysteriously fail in no-opt CI jobs just because they didn't specify an explicit opt-level.

Fixes #151580.

@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added the A-compiletest Area: The compiletest test runner label Jan 24, 2026
@rustbot rustbot added 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jan 24, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2026

r? @Mark-Simulacrum

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

@Zalathar Zalathar changed the title Ignore rust.optimize-tests for assembly and codegen tests compiletest: Ignore rust.optimize-tests for assembly and codegen tests Jan 24, 2026
@folkertdev
Copy link
Contributor

discussion on zulip: #t-compiler > LLVM tests with no optimizations

.props
.compile_flags
.iter()
.any(|arg| arg == "-O" || arg.contains("opt-level"))
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this check against compile-flags here, but not below? Maybe this can be removed?

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

Labels

A-compiletest Area: The compiletest test runner 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-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.

Require optimization flag for codegen tests

4 participants