Skip to content

Add T-compiler backports Zulip notifications #140397

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

apiraino
Copy link
Contributor

This patch make it so, that the triagebot willl send notifications to the Zulip channel #t-compiler/backports when a label {stable-beta}-nominated is added to beta or stable backport pull request. Requirement to trigger this notification is that the pull request be labeled T-compiler.

Note: Zulip notifications can send notifications also on other events (message_on_close and message_on_reopen) but I omitted them for now, I am not yet sure we need them.

r? @davidtwco

@rustbot rustbot added A-meta Area: Issues & PRs about the rust-lang/rust repository itself S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented Apr 28, 2025

triagebot.toml has been modified, there may have been changes to the review queue.

cc @davidtwco, @wesleywiser

Copy link
Member

@fmease fmease left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't strictly related but could you remove those four FIXMEs attached to the T-rustdoc+{stable,beta}-{nominated,accepted} handlers now that they've been fixed by rust-lang/triagebot#1853?

Otherwise you or I can send a separate PR. Edit: Eh, let's do that.

@apiraino apiraino force-pushed the t-compiler-backports-zulip-notifications branch from 170a129 to b5e9db1 Compare April 28, 2025 15:18
@jieyouxu jieyouxu added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 28, 2025
@@ -691,6 +679,41 @@ message_on_remove = "Issue #{number}'s nomination has been removed. Thanks all f
message_on_close = "Issue #{number} has been closed. Thanks for participating!"
message_on_reopen = "Issue #{number} has been reopened. Pinging @*T-types*."

[notify-zulip."beta-nominated".compiler]
Copy link
Member

@fmease fmease May 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this isn't the best location to report this (but I just remembered and will be afk soon), IIRC message_on_add doesn't trigger if the PR author has already added {beta,stable}-nominated before actually opening/submitting the PR (I'm presuming, from the perspective of triagebot, the event is likely "IssueOpened" or whatever, not "LabelsModified" and it's currently only looking for the latter for that).

I first noticed this here: #137899. I know it's hard to tell but I had to remove and readd the label as you can see here #137899 (comment) for it to truly trigger on Zulip. Well, you'd need to compare time & date to verify.

Once I'm back home again, I'll open a triagebot issue or even PR. Edit: I guess it applies to a lot of things, so there's likely an issue for that already.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @fmease for the head-up. if you don't get around to sending a patch, let me know. I can try to do that (and maybe ask you to review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues & PRs about the rust-lang/rust repository itself S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants