Skip to content

Make sure we run the full suite, even when more specific filters are given#154555

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
jdonszelmann:specific-filters
Apr 5, 2026
Merged

Make sure we run the full suite, even when more specific filters are given#154555
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
jdonszelmann:specific-filters

Conversation

@jdonszelmann
Copy link
Copy Markdown
Contributor

Some test suite's filter code took this into account, while others didn't.
Imagine this:

x test tests/ui/sometest.rs tests/ui

This would run only tests/ui/sometest.rs since we filtered out tests/ui since it matches the name of the test suite.
The reason x test tests/ui on its own works, is that if compiletest gets no filter paths, only a suite, it runs the entire suite.
What I've implemented here is that when you pass the suite path, we effectively ignore specific filters and just run the entire suite since that'll include the more specific paths too. This was the case for a few other suites as well, like rustdocjs, but others actually handle this correctly (like clippy, which my code does edit but for which the behavior doesn't change).

Hope this makes sense!

@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 Mar 29, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 29, 2026

r? @clubby789

rustbot has assigned @clubby789.
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: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

@jieyouxu jieyouxu self-assigned this Mar 30, 2026
@rustbot

This comment has been minimized.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 30, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Comment thread src/bootstrap/src/utils/helpers.rs Outdated
@jdonszelmann
Copy link
Copy Markdown
Contributor Author

That's a good suggestion @clubby789
@rustbot author

@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 Apr 2, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 2, 2026

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

@rust-log-analyzer

This comment has been minimized.

@jdonszelmann
Copy link
Copy Markdown
Contributor Author

@rustbot review

@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 Apr 2, 2026
@jieyouxu jieyouxu self-requested a review April 5, 2026 07:22
Copy link
Copy Markdown
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

@jieyouxu
Copy link
Copy Markdown
Member

jieyouxu commented Apr 5, 2026

@bors r=clubby789,jieyouxu rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 5, 2026

📌 Commit d5caaa1 has been approved by clubby789,jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 5, 2026
rust-bors Bot pushed a commit that referenced this pull request Apr 5, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #154555 (Make sure we run the full suite, even when more specific filters are given)
 - #154674 (borrowck: Don't mention unused vars in closure outlive errors)
@rust-bors rust-bors Bot merged commit 6179c56 into rust-lang:main Apr 5, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Apr 5, 2026
rust-timer added a commit that referenced this pull request Apr 5, 2026
Rollup merge of #154555 - jdonszelmann:specific-filters, r=clubby789,jieyouxu

Make sure we run the full suite, even when more specific filters are given

Some test suite's filter code took this into account, while others didn't.
Imagine this:

```
x test tests/ui/sometest.rs tests/ui
```

This would run only `tests/ui/sometest.rs` since we filtered out `tests/ui` since it matches the name of the test suite.
The reason `x test tests/ui` on its own works, is that if compiletest gets no filter paths, only a suite, it runs the entire suite.
What I've implemented here is that when you pass the suite path, we effectively ignore specific filters and just run the entire suite since that'll include the more specific paths too. This was the case for a few other suites as well, like rustdocjs, but others actually handle this correctly (like clippy, which my code does edit but for which the behavior doesn't change).

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

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc 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.

5 participants