Skip to content

clippy: fix test filtering when TESTNAME is empty #143825

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RalfJung
Copy link
Member

Fixes #143824. Turns out bootstrap was just fine, the TESTNAME logic in clippy was wrong... I still made this a rustc PR as that's where I did all the debugging.

The bootstrap change is not really related, but it's comment-only so not worth a separate PR... adding the test_args is also part of what prepare_cargo_test would usually do so let's group the code properly.

@rustbot
Copy link
Collaborator

rustbot commented Jul 12, 2025

r? @jieyouxu

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

@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. labels Jul 12, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 12, 2025

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Jul 12, 2025
@RalfJung RalfJung force-pushed the clippy-test-filter branch from 1721cc1 to 73edfe7 Compare July 12, 2025 09:11
@jieyouxu
Copy link
Member

This is a clippy change, so r? clippy

@rustbot rustbot assigned llogiq and unassigned jieyouxu Jul 12, 2025
@llogiq
Copy link
Contributor

llogiq commented Jul 12, 2025

Looks good to me, but I'm not sure whether I have r+ rights here.

@jieyouxu
Copy link
Member

jieyouxu commented Jul 12, 2025

Looks good to me, but I'm not sure whether I have r+ rights here.

Yes, clippy team should have r+ on r-l/r as per

https://github.com/rust-lang/team/blob/7cb869f23f9d838c3fe9903907e82f3596975f19/teams/clippy.toml#L32-L34

[permissions]
perf = true
bors.rust.review = true

@jieyouxu jieyouxu added the T-clippy Relevant to the Clippy team. label Jul 12, 2025
@llogiq
Copy link
Contributor

llogiq commented Jul 12, 2025

In that case

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 12, 2025

📌 Commit 73edfe7 has been approved by llogiq

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 Jul 12, 2025
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) T-clippy Relevant to the Clippy team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

./x test clippy does not honor --test-args
5 participants