Skip to content
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

Main rust repo has "A-macros-2.0" label, rustbot cannot parse this #1903

Open
safinaskar opened this issue Feb 14, 2025 · 11 comments
Open

Main rust repo has "A-macros-2.0" label, rustbot cannot parse this #1903

safinaskar opened this issue Feb 14, 2025 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@safinaskar
Copy link

safinaskar commented Feb 14, 2025

Main rust repo has "A-macros-2.0" label, rustbot cannot parse this.

I just wrote this comment: rust-lang/rust#41430 (comment) . Command rustbot label: -A-macros-2.0 didn't work. I suspect this is because rustbot's parser doesn't allow dots in label names. So, please, fix rustbot.

(There are other solutions, through. One of them is to forbid labels with dots in main rust repo. Another is to give me right to directly set labels. :) )

(Ha-ha, even this repo itself has bad labels, such as "help wanted", which probably will not be parsed by rustbot, too.)

Also, it seems #1633 will fix this bug.

@rustbot label: +A-command-parsing +A-labeling +bug

@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2025

Error: Label A-command-parsing can only be set by Rust team members

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@safinaskar
Copy link
Author

@rustbot label: +A-labeling
@rustbot label: +bug

@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2025

Error: Label A-labeling can only be set by Rust team members

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@rustbot rustbot added the bug Something isn't working label Feb 14, 2025
@apiraino
Copy link
Contributor

happy to have a look at this

@rustbot claim

@apiraino
Copy link
Contributor

@safinaskar so, we investigated a little bit here.

As you point out, labels with dots are not parsed by the bot, by design (we sanitize the input and remove puncuation).
The fact that the user does not get a feedback is bad UI. We're not sure, though, how we can improve this since:

  • changing a label we've been using since 2017 could make some people unhappy
  • we do not want to add a comment suggesting what to do because the thread can get noisy
  • we do not want to edit and fixing the user's comment because it has side-effects, at least until we have a better story

So, hm ... leaving this open for now 🤷‍♂

@safinaskar
Copy link
Author

@apiraino , so is there a way I can add or remove "A-macros-2.0" labels from issues?

@apiraino
Copy link
Contributor

No, not at this time, sorry. In case ask for help, I think you catched the only case in +800 labels. If we don't come up with a better solution we might choose one of the above (I'd vote for renaming the label after a cursory check at least on our tooling).

@safinaskar
Copy link
Author

@apiraino , I will repeat: #1633 seems to fix this issue. It allows one to add labels with spaces, and, presumably, with dots, as you can see in example

@apiraino
Copy link
Contributor

@apiraino , I will repeat: #1633 seems to fix this issue. It allows one to add labels with spaces, and, presumably, with dots, as you can see in example

Please read my comment about using Github label rendering (maybe it's nested in the thread and not easily found)

@Noratrieb
Copy link
Member

changing a label we've been using since 2017 could make some people unhappy

I don't think anyone will be upset if we rename the label to A-macros-2-0 but also just allowing periods in labels seems fine too. if you don't want to do that though I can just rename the label

@apiraino
Copy link
Contributor

apiraino commented Mar 3, 2025

I can also rename the label, I just want to be sure we're not breaking (or not overlooking) anything. So I asked on Zulip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants