Page MenuHomePhabricator

Allow configuring which priority of tasks are sent to a channel
Open, MediumPublicFeature

Description

Feature-request: We want to filter the tasks so that only "Unbreak now" tasks are shown in the main IRC channel (#wikimedia-cloud) and all others are sent to the current bot-feed channel (#wikimedia-cloud-feed).

See related discussion at T177427#3670111
See also T116939: Allow configuring which type of events are sent to a channel

Event Timeline

Rough changes needed:

We could also consider having more freeform filters, but that of course easily becomes a pain to maintain.

To filter a whole channel (independent of projects), especially if it's only for a single one: a simple if statement @ https://github.com/wikimedia/labs-tools-wikibugs2/blob/master/redis2irc.py#L99 could also suffice.

bd808 changed the subtype of this task from "Task" to "Feature Request".Feb 17 2024, 1:47 AM
bd808 triaged this task as Medium priority.Mar 10 2024, 1:49 AM
bd808 moved this task from Backlog to Ready to Go on the Wikibugs board.
bd808 subscribed.

The ChannelFilter work done in rTWBTd8b582cba463: channelfilter: Normalize channel files and prepare to use with gerrit should make this even easier. rTWBT543aa2b0b105: gerrit: use wikibugs2.channelfilter.ChannelFilter shows how the gerrit task now uses ChannelFilter and a custom selector function to handle the optional branch filtering for gerrit events.

I don't know that the original use case for this task of sending WMCS related UBN! tasks to #wikimedia-cloud is still desired, but I can can imagine that sending UBN! notices for a subset of projects (or honestly even all projects) to #wikimedia-releng or #wikimedia-operations could be interesting.