Page MenuHomePhabricator

Add reporting on SAL entries
Closed, ResolvedPublicFeature

Description

Not sure how feasible this is, but it'd be cool to show some SAL stats.

Event Timeline

Chlod triaged this task as Low priority.EditedJan 23 2025, 12:49 AM
Chlod subscribed.

This one's pretty cool! Checking around on what tools currently exist for SAL, there's stashbot which seems to push to Toolforge Elasticsearch. That index is publicly readable, so it should mean that searching SAL entries for specific names is possible.

The question on my mind is how we'd be able to tie IRC usernames to developer accounts using some source of truth. For logs on deploy hosts, this shouldn't be an issue since it always uses the developer account shell name, but it's a different story for when !log is called on IRC. I could just automatically search for SAL entries where someone's IRC username matches their developer account shell name, but that doesn't seem like a robust solution, and it probably means we'd need a disclaimer that the IRC user might not match the developer account, or just provide IRC statistics search as an entirely different feature, which I kind of want to avoid since the point of Tech Contribs is to have it all in one page.

Placing this on Low priority for now while the more important services (GitHub, GitLab) get worked on.

The question on my mind is how we'd be able to tie IRC usernames to developer accounts using some source of truth.

Profiles here on Phabricator can have a irc nick set. This does seem to be data returned by the user.search conduit endpoint:

$ curl https://phabricator.wikimedia.org/api/user.search \
  -d api.token=api-token \
  -d constraints[usernames][0]=bd808 | jq -r '.result.data[0].fields["custom.irc_nick"]'
bd808

I don't have any idea how widely used that field is, but I could see your tool actually being a prompt for folks to fill it in if they wanted to get IRC related reports.

An alternate solution might be to get Bitu to add irc account data to the LDAP directory and then again promote folk using it.


A long time ago we tried to get people to add their irc nicks on wikitech. This was back when we had SemanticMediaWiki deployed there to make structured data collection reasonably possible. I miss the nick tracking, but I don't so much miss running SMW.

More tales from the past by old man bd808, but when we ran our own community metrics server it watched IRC and could give you neat reports on things like who spoke the most in a given channel. I was always behind Yuvi in the -labs channels at the time. :)

Thanks Bryan! It seems like I forgot about the Phabricator profile option. That's definitely a good starting point to use!

Adding in IRC nick tracking on Bitu sounds like a good feature to have, but out of the scope of this tool. Not sure if it'll have that much widespread use either, besides being a cool thing to have for completeness.

In addition to the Phab field, you probably also want to search for the shell name, as that's what cookbooks, scap and other semi-automated logs end up using. (Also it'd be awesome if the tool would split manual and semi-automated SALs into their own categories!)

Chlod changed the task status from Open to In Progress.May 2 2025, 3:26 PM
Chlod claimed this task.
Chlod moved this task from Backlog to Hacking projects on the Wikimedia-Hackathon-2025 board.

Done, with a few final things to resolve.