Skip to content

Comments

Skip tidy in PR CI jobs not dedicated to running tidy#152845

Open
jieyouxu wants to merge 1 commit intorust-lang:mainfrom
jieyouxu:split-tidy-from-pr-test-jobs
Open

Skip tidy in PR CI jobs not dedicated to running tidy#152845
jieyouxu wants to merge 1 commit intorust-lang:mainfrom
jieyouxu:split-tidy-from-pr-test-jobs

Conversation

@jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Feb 19, 2026

This is both:

  1. Redundant, since PR CI has a dedicated tidy job which runs in parallel and doesn't early-cancel other PR CI jobs
  2. A contributor roadblock, because tidy failures in one test jobs block further failures from other test jobs being revealed.

(2) defeats the parallel-but-not-early-cancelling reason of the separate tidy job in the first place.

This PR skips tidy from being run in PR CI jobs that are not dedicated to running tidy (i.e. the non-tidy CI jobs).

Fixes #148932.

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Feb 19, 2026
@rust-log-analyzer

This comment has been minimized.

@jieyouxu jieyouxu force-pushed the split-tidy-from-pr-test-jobs branch from e744645 to 8a71bea Compare February 19, 2026 12:26
@jieyouxu
Copy link
Member Author

Hm, need to double-check when PR_CI_JOB gets set...

@jieyouxu jieyouxu force-pushed the split-tidy-from-pr-test-jobs branch 3 times, most recently from 0454a0e to 61cb25a Compare February 21, 2026 09:14
@rust-log-analyzer

This comment has been minimized.

This is both:

1. Redundant, since PR CI has a dedicated `tidy` job
2. A contributor roadblock, because tidy failures block further failures
   from being revealed.

We *only* skip tidy in PR CI and not in Merge CI because tidy in Merge
CI will early-cancel *anyway*.
@jieyouxu jieyouxu force-pushed the split-tidy-from-pr-test-jobs branch from 61cb25a to 498f111 Compare February 21, 2026 16:00
@jieyouxu
Copy link
Member Author

Checked PR CI run (https://github.com/rust-lang/rust/actions/runs/22259809434):

  • tidy job still runs tidy
  • The aarch64-gnu-llvm-20-{1,2} jobs skip tidy (invocation for *-2 job becomes ../x.py --stage 2 test --skip tidy --skip tests --skip coverage-map --skip coverage-run --skip library --skip tidyselftest)

@jieyouxu jieyouxu marked this pull request as ready for review February 23, 2026 14:39
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 23, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 23, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 23, 2026

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, jdno, jieyouxu, marcoieni
  • Random selection from Mark-Simulacrum, jdno, marcoieni

@marcoieni
Copy link
Member

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 24, 2026

📌 Commit 498f111 has been approved by marcoieni

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 Feb 24, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 24, 2026
…obs, r=marcoieni

Skip `tidy` in PR CI jobs not dedicated to running `tidy`

This is both:

1. Redundant, since PR CI has a dedicated `tidy` job which runs in parallel and doesn't early-cancel other PR CI jobs
2. A contributor roadblock, because tidy failures in one test jobs block further failures from other test jobs being revealed.

(2) defeats the parallel-but-not-early-cancelling reason of the separate `tidy` job in the first place.

This PR skips tidy from being run in PR CI jobs that are not dedicated to running `tidy` (i.e. the non-`tidy` CI jobs).

Fixes rust-lang#148932.
rust-bors bot pushed a commit that referenced this pull request Feb 24, 2026
…uwer

Rollup of 15 pull requests

Successful merges:

 - #152176 (Neon fast path for str::contains)
 - #152657 (std: move `exit` out of PAL)
 - #152841 (Streamline `QueryVTableUnerased` into `GetQueryVTable`)
 - #152845 (Skip `tidy` in PR CI jobs not dedicated to running `tidy`)
 - #152897 (Add optional json logging)
 - #153009 (Remove `rustc_feedable_queries` and `define_feedable` macros.)
 - #151558 (Port diagnostic attributes)
 - #152492 (mGCA: Enforce WF element types for array valtrees)
 - #152888 (Fix async drop glue MIR bug)
 - #152988 (Port `#[register_tool]` to the new attribute system)
 - #153018 (`unused_must_use` lint improvements)
 - #153023 (Update books)
 - #153033 (Clarify how "ensure" queries check whether they can skip execution)
 - #153043 (fix error on missing value for -C flags)
 - #153045 (rustc-dev-guide subtree update)

Failed merges:

 - #153032 (Fix attribute parser and kind names.)
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-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-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.

PR - aarch64-gnu-llvm-20-2 is also running tidy, not just the tidy job

4 participants