Repository navigation
Conversation
PR summary 156db1ec70Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
FWIW I intentionally did not link the discussion as it is private, and instead linked to the public discussion in #44115 |
There was a problem hiding this comment.
Snir does have a point, currently the awaiting-zulip label is sometimes used for a general awaiting-discussion or needs-discussion. Maybe we need such a label, so that there is no "zulip" in it's name?
Sometimes it's desirable to ask the author to go and start their PR on Zulip and there might not be any topic existing yet. This is especially on PRs where it's foreseeable that the change is controversial. I don't think it should be the responsibility of the reviewer to open a Zulip topic about a PR they feel like would benefit from some discussion about it. (arguably in that case, one could also apply awaiting-author if awaiting-zulip was somehow guarded by a script)
Probably Snir's comment there could have been a bit more specific to help others understand the full context. But also, that particular discussion has been happening in several different places and the "conclusion" hasn't been implemented due to time constrains, so it's somewhat unfortunate.
There was a problem hiding this comment.
On another note, I wonder if it would be more than enough to simply check fro the existence of a link to Zulip and dropping all the validation on the Zulip-side.
This seems to add a lot of complexity and a lot of python for not much gain...
|
(ironically, I would like to add |
|
This has been discussed in the mathlib maintainers stream. A tweaked proposal has been suggested there, which seems to have consensus there. I just audited all PRs tagged awaiting-zulip to this effect. To me, sensible next steps are
|
Require open PRs labelled
awaiting-zulipto link, in their description or comments, to a Zulip topic that references that same mathlib PR. After a manual label addition, remove the label if no qualifying discussion is linked, and leave a polite, actionable comment mentioning the person who applied it.The comment-labeling bot checks before applying
awaiting-zulipand declines invalid requests, mentioning the requester. It uses the same validator as the manual-label check, since itsGITHUB_TOKENlabel changes do not trigger another workflow. It scans issue comments, review bodies, and inline comments; follows message anchors across topic renames; and checks the whole topic. Full GitHub URLs and linkifiers are recognised through rendered destinations and topic-title links, matching the repository and PR number rather than bare numbers.Checks run on label and PR/comment changes, with a daily sweep to retry missed events/outages and catch changes on Zulip. Manual runs default to dry-run. Verification failures leave labels untouched; notices are updated rather than duplicated. Privileged jobs execute the default branch's action, and tests run without the Zulip secret.
The first scheduled sweep after merge will also enforce this on existing labels. Uses the existing
ZULIP_API_KEYand mathlib Zulip bot account; linked private topics must be accessible to that bot. The live dry run used my account's read access, so it does not establish the bot's private-channel permissions.Motivated by #44489 (comment).
🤖 prepared with Codex