-
Notifications
You must be signed in to change notification settings - Fork 13.3k
tidy: add triagebot checks #137885
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
tidy: add triagebot checks #137885
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
Few errors left, how to fix them?
@rustbot blocked #137876 the same fix Will add more fixes... |
This comment has been minimized.
This comment has been minimized.
Can be removed for now (cc #136643 (comment)).
Change it to compiler/rustc_lint/src/early/diagnostics/check_cfg.rs. |
Added check for trigger_files and pushed fix from #137885 (comment):
|
This comment has been minimized.
This comment has been minimized.
There's one thing to discuss: With this check theoretically being r-l/r agnostic why don't we move it into triagebot itself? Ofc, triagebot wouldn't be able to make CI fail then (well, it could cancel it I guess lol). For context, in the past if |
I do agree it feels like the check belongs in triagebot (since it should be generalizable to repos that use triagebot), but I'm also okay with it being in tidy if it's a hassle to implement in triagebot. cc @apiraino for vibes |
This should make CI fail, and triagebot can't make CI fail, so needs to be in tidy. Even if conceptually the code fits more into triagebot. I would much rather merge this instead of trying very hard to figure out a solution to make this more repo agnostic. We can always put something into triagebot in the future. |
Implementing checks in triagebot is right thing (and should be there), but current impl is "just works" TM. |
I do see that. On the other hand as I mentioned above, a PR can simply disable triagebot for the entire repository (arguably more severe than dead paths) by introducing a TOML syntax error or a schema error without it affecting CI or bors (iinm). /perfect is the enemy of good |
you can delete this
change to
change to
change to
remove
remove |
☔ The latest upstream changes (presumably #137900) made this pull request unmergeable. Please resolve the merge conflicts. |
This seems a convincing argument to keep this check in tidy rather than moving it to the triagebot server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I have two requests:
- Ensure that for rust-lang/rust this tidy check fails if
triagebot.toml
is missing[assign]
or[mentions]
sections. - Squash the commits into 2: 1 commit for tidy changes, and 1 commit for
triagebot.toml
fixes. Or just squish everything.
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@bors r+ rollup |
tidy: add triagebot checks Validates triagebot.toml to have existing paths: `[mentions."*"]` sections, i.e. ```toml [mentions."compiler/rustc_const_eval/src/"] ``` or ```toml [assign.owners] "/.github/workflows" = ["infra-ci"] ``` or ```toml trigger_files = [ "src/librustdoc/html/static/js/search.js", "tests/rustdoc-js", "tests/rustdoc-js-std", ] ``` Looked at rust-lang#137876 and implemented check.
Rollup of 16 pull requests Successful merges: - rust-lang#122790 (Apply dllimport in ThinLTO) - rust-lang#136127 (Allow `*const W<dyn A> -> *const dyn A` ptr cast) - rust-lang#136968 (Turn order dependent trait objects future incompat warning into a hard error) - rust-lang#137147 (Add exclude to config.toml) - rust-lang#137319 (Stabilize `const_vec_string_slice`) - rust-lang#137885 (tidy: add triagebot checks) - rust-lang#138040 (compiler: Use `size_of` from the prelude instead of imported) - rust-lang#138052 (strip `-Wlinker-messages` wrappers from `rust-lld` rmake test) - rust-lang#138084 (Use workspace lints for crates in `compiler/`) - rust-lang#138158 (Move more layouting logic to `rustc_abi`) - rust-lang#138160 (depend more on attr_data_structures and move find_attr! there) - rust-lang#138192 (crashes: couple more tests) - rust-lang#138216 (bootstrap: Fix stack printing when a step cycle is detected) - rust-lang#138232 (Reduce verbosity of GCC build log) - rust-lang#138233 (Windows: Don't link std (and run-make) against advapi32, except on win7) - rust-lang#138242 (Revert "Don't test new error messages with the stage 0 compiler") r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 12 pull requests Successful merges: - rust-lang#136127 (Allow `*const W<dyn A> -> *const dyn A` ptr cast) - rust-lang#136968 (Turn order dependent trait objects future incompat warning into a hard error) - rust-lang#137319 (Stabilize `const_vec_string_slice`) - rust-lang#137885 (tidy: add triagebot checks) - rust-lang#138040 (compiler: Use `size_of` from the prelude instead of imported) - rust-lang#138084 (Use workspace lints for crates in `compiler/`) - rust-lang#138158 (Move more layouting logic to `rustc_abi`) - rust-lang#138160 (depend more on attr_data_structures and move find_attr! there) - rust-lang#138192 (crashes: couple more tests) - rust-lang#138216 (bootstrap: Fix stack printing when a step cycle is detected) - rust-lang#138232 (Reduce verbosity of GCC build log) - rust-lang#138242 (Revert "Don't test new error messages with the stage 0 compiler") r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137885 - klensy:tidy-triagebot, r=jieyouxu tidy: add triagebot checks Validates triagebot.toml to have existing paths: `[mentions."*"]` sections, i.e. ```toml [mentions."compiler/rustc_const_eval/src/"] ``` or ```toml [assign.owners] "/.github/workflows" = ["infra-ci"] ``` or ```toml trigger_files = [ "src/librustdoc/html/static/js/search.js", "tests/rustdoc-js", "tests/rustdoc-js-std", ] ``` Looked at rust-lang#137876 and implemented check.
Validates triagebot.toml to have existing paths:
[mentions."*"]
sections, i.e.or
or
Looked at #137876 and implemented check.