Skip to content

Missing label in a ping definition causes the ping to fail #1992

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
jieyouxu opened this issue May 17, 2025 · 5 comments
Open

Missing label in a ping definition causes the ping to fail #1992

jieyouxu opened this issue May 17, 2025 · 5 comments
Labels
A-ping Area: pinging

Comments

@jieyouxu
Copy link
Member

E.g. rust-lang/rust#140966 (comment), seems like @rustbot ping rfl is not working (at least sometimes?).

@jieyouxu
Copy link
Member Author

Or maybe it's just the rfl alias? The actual marker-team in team is called rust-for-linux.

@ehuss
Copy link
Contributor

ehuss commented May 17, 2025

The label for that ping does not exist:

Unknown labels: O-rfl

Perhaps it should be A-rust-for-linux?

@jieyouxu
Copy link
Member Author

Weird. Let me double check.

@jieyouxu
Copy link
Member Author

You're right -- both the labels referenced are outdated in triagebot.toml and also in rustc-dev-guide docs. rust-lang/rust#141139 should fix both and thus close this issue.

I do wonder if it might make sense for triagebot to loudly complain if a ping group becomes misconfigured? Idk, it's hard to figure out why it's not working otherwise.

@ehuss
Copy link
Contributor

ehuss commented May 17, 2025

There is very basic validation done in https://github.com/rust-lang/triagebot//blob/HEAD/src/handlers/validate_config.rs. It sounds reasonable to me to continue extending that to check things like "does label exist". I think it should be fine to add that in terms of API points and time budget as long as we don't go overboard.

It also seems reasonable to me to have the ping handler just log errors about missing labels, but otherwise continue to process the ping (instead of just stopping).

Those should be relatively easy changes if anyone is interested in trying.

@ehuss ehuss added the A-ping Area: pinging label May 17, 2025
@ehuss ehuss changed the title rust-lang/rust triagebot ping group might be broken? Missing label in a ping definition causes the ping to fail May 17, 2025
fmease added a commit to fmease/rust that referenced this issue May 18, 2025
Fix Rust for Linux ping group label

Noticed in rust-lang#140966 (comment). Seems like a broken label can cause the triagebot ping message to not be issued.

See rust-lang/triagebot#1992.

`@rustbot` label: +A-rust-for-linux
fmease added a commit to fmease/rust that referenced this issue May 18, 2025
Fix Rust for Linux ping group label

Noticed in rust-lang#140966 (comment). Seems like a broken label can cause the triagebot ping message to not be issued.

See rust-lang/triagebot#1992.

``@rustbot`` label: +A-rust-for-linux
fmease added a commit to fmease/rust that referenced this issue May 18, 2025
Fix Rust for Linux ping group label

Noticed in rust-lang#140966 (comment). Seems like a broken label can cause the triagebot ping message to not be issued.

See rust-lang/triagebot#1992.

```@rustbot``` label: +A-rust-for-linux
rust-timer added a commit to rust-lang-ci/rust that referenced this issue May 18, 2025
Rollup merge of rust-lang#141139 - jieyouxu:fix-rfl, r=Urgau

Fix Rust for Linux ping group label

Noticed in rust-lang#140966 (comment). Seems like a broken label can cause the triagebot ping message to not be issued.

See rust-lang/triagebot#1992.

```@rustbot``` label: +A-rust-for-linux
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this issue May 19, 2025
Fix Rust for Linux ping group label

Noticed in rust-lang/rust#140966 (comment). Seems like a broken label can cause the triagebot ping message to not be issued.

See rust-lang/triagebot#1992.

```@rustbot``` label: +A-rust-for-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ping Area: pinging
Projects
None yet
Development

No branches or pull requests

2 participants