Jump to content

Talk:Code review/Patch board

Add topic
From mediawiki.org
Latest comment: 1 year ago by Thiemo Kreuz (WMDE) in topic Retrospective

Who are the intended reviewers?

[edit]

People with +2 only? Everyone? Goats?

I'd like to contribute, but don't posses +2 in significant repositories (and lack a drive to acquire them anytime soon). (Meaninglessly adding +1 when +2 are required should probably be avoided if nothing of value is to be gained, it'd just add noise) Mainframe98 talk 21:39, 1 February 2023 (UTC)Reply

Its primarily intended for people who have +2 in the repo the patch is in. Of course you're welcome to give helpful feedback to patches regardless of if you have +2. The primary intention is to get stuck things "unstuck" by either merging or giving the creator concrete steps they can do to get it merged. If you can do that without having +2, by all means, but in most cases I think you would need +2. Bawolff (talk) 22:09, 1 February 2023 (UTC)Reply

Awesome idea

[edit]

I don't have any patches that I'm ready to add here yet, but I must say this is an awesome idea. * Pppery * it has begun 22:37, 1 February 2023 (UTC)Reply

What about using hashtags?

[edit]

Just an idea. Gerrit has hash tag functionality. Something to consider is if it might be easier (for reviewers and people needing reviews) to tag Gerrit patches with a hash tag and to link that here ? We could also auto-tag patches listed here.

We did this during the wishathon event and I thought it was pretty effective: https://gerrit.wikimedia.org/r/q/hashtag:wishathon Jdlrobson (talk) 20:35, 2 February 2023 (UTC)Reply

Boldly picked "patchboard" TheresNoTime (talk) 00:37, 9 February 2023 (UTC)Reply
Bookmarked! Jdlrobson (talk) 17:03, 10 February 2023 (UTC)Reply
One thing I do like about the wiki-page, is it draws new people in (e.g. via Special:Recentchanges), where gerrit tags are less noticable if you aren't already following them. Anyways, I hope we do both. Bawolff (talk) 18:02, 11 February 2023 (UTC)Reply
Hashtags could be useful, yes. The patchboard name works for me, although maybe we could use patchboard-inbox, patchboard-inreview, patchboard-$random_status to sort the requests according to the review status. A bot adding and sorting the patches on-wiki based on these gerrit hashtags would be great too. In any case, thanks for this. —MarcoAurelio (talk) 15:23, 16 February 2023 (UTC)Reply

Is this thing still alive?

[edit]

No edits in almost a month, none of the patches here have been reviewed in weeks. Does anyone intend to monitor this page? * Pppery * it has begun 02:42, 28 August 2023 (UTC)Reply

yeah, doesn't seem like it took off quite as much as i would have hoped. Bawolff (talk) 12:08, 28 August 2023 (UTC)Reply
😢 — Frostly (talk) 01:45, 4 October 2023 (UTC)Reply

Retrospective

[edit]

Since this died, maybe it would be good to have an informal retro to see what lessons can be learned. Maybe at some point we can figure out a better way of achieving these goals based on the lessons learned here. Please everyone fill out your thoughts If anyone has anything they want to say but don't feel comfortable posting it publicly under their name, feel free to email me and I will add it on your behalf.

In addition to adding points to each section, I encourage everyone to +1 any point they agree with and comment on points they disagree with. In the spirit of Five_whys, when reading the points posted, try and ask yourself "why" each statement happened, and if you think you know, add that as well. Bawolff (talk) 13:03, 4 October 2023 (UTC)Reply

What were we trying to achieve?

[edit]
  • Have code contributors who feel stuck waiting for code review have a method for getting unstuck
  • Get patches reviewed
  • Make the review process more egalitarian instead of relying on being friends with someone with +2.
  • [add more]

What went well?

[edit]

What went bad

[edit]

Ideas for what might we do differently to prevent the bad

[edit]
  • Bot automation (tags + sorting, per MarcoAurelio)
  • Integration into existing workflows (automated alerts)
  • Regular visualization of activity: success + status of open patches (can be mostly automated; compare monthly user-talk announcements for ongoing contests) Sj (talk) 17:17, 4 October 2023 (UTC)Reply
  • Perhaps in addition to "open" / "merged" a third category can be added for "action needed" with a short description of what action is needed: "existing review needs to be resolved with that review author", "need decision on whether to do this" (aka, needs a "whether" not "how" decision), "too big" (maybe you need to split it up), plus other reasons from the "reasons patches got stuck on the board" list above. Once a patch is moved to the "action needed" category it is "off the board" and you can add a new patch; this keeps the patch board working for the things it is good at while providing at least an itemized resolution for those patches it can't resolve. cscott (talk) 17:29, 4 October 2023 (UTC)Reply
  • No reviews for X days means the patch goes off the board (can be re-proposed later). That means the board doesn't get filled up with stale patches, and it motivates authors to cycle their patches. --Tgr (WMF) (talk) 04:10, 10 October 2023 (UTC)Reply
    Agreed. * Pppery * it has begun 05:13, 10 October 2023 (UTC)Reply
  • Set a norm about reviewers becoming inactive - if there is no follow-up within X days, another reviewer should feel free to take over. (They should probably feel free to take over anyway, but many people don't like to so maybe an explicit rule makes them feel more comfortable.) --Tgr (WMF) (talk) 04:10, 10 October 2023 (UTC)Reply
  • Periodic reminders of open patches where potential reviewers see them (wikitech-l, #code-review on Slack). --Tgr (WMF) (talk) 04:10, 10 October 2023 (UTC)Reply
  • Some sort of in-kind reward for reviews? E.g. if you review a patch, you can list a patch of your own, beyond the normal 1/person limit? A bit unfair to people without +2, but trading reviews could be a nice motivation. --Tgr (WMF) (talk) 04:10, 10 October 2023 (UTC)Reply
  • [add thoughts]