Thoughts on GitHub AI PR reviews

Do people have any opinions pro/con OpenWrt possibly enabling the Github Co-Pilot driven PR reviews?

It seems that there's quite a range of 'quality' when it comes to PR submissions, and it takes up precious human reviewer resources raising some relatively trivial issues that should have been addressed long before PR submission time (i.e. Signed-off-by, PR labelling, commit messages etc).

I think having a quick turn-around AI review could be beneficial to weed out those trivial PR issues before a human has to invest time in them, and it might potentially even catch some 'gotcha' bugs that still creep into otherwise high-quality PR submissions (like not releasing memory/handles in all abnormal scenarios)

I personally also think that where a PR doesn't comply with basic requirements (i.e. commit messages, appropriate Signed-off-by), it should be automatically closed by the system after 1 day.

3 Likes

I’m personally not interested in AI-driven reviews. I’ve found that it doesn’t really know what it’s talking about with things like adding support for new devices/platforms/targets, or anything really new in general, and tends to make of a lot of nonsense and mislead.

I am, however, in agreement that improper PRs should be closed automatically, perhaps after a week or so rather than 1 day.

2 Likes

I do agree that AI can often be rubbish... my only context around OpenWrt was this comment submission from hauke, which I didn't think was bad (i.e. the wording wasn't great, but all the points made were valid, in my opinion).

It wasn't stated that it was AI generated. But it does have that vibe to it (apologies to hauke if it was not AI).
I'd personally prefer if rather than lots of text, it just had a line comment (like humans tend to do) which indicated the particular concern with that line/nearby lines.

Sounds fun in the arrogant world of yours.
and then .. 2 months later CM formatting regex gets changed and all contributors efforts dumped?

Sounds fun in the arrogant world of yours.

You may not be aware, but this sounds very much like an offensive personal attack, which is not appreciated. Please be a bit more mindful of your tone.

The current basic requirement is that there is a commit message. So I'm unsure which aspect of a 'CM formatting regex' you're talking of.
I would very much not expect 'all contributors' to be submitting every PR with commits entirely devoid of a commit message.

Also, PRs that are closed are not 'dumped'. They can be re-opened again. They just don't consume reviewer's time/mental burden.

3 Likes

Throw in more clankers, best way to gatekeep outside contributors, as if 50 mails for 1 line change was not offputting enough.

They're OK - if it's bots responding with pre-written human messages to fix common problems, great. AI can be a bit of a battle if it starts nit-picking. Some of the repos have automated formality checks which catch the SoB and subject line stuff, and that's fine. AI doesn't cut it with newer languages like ucode, yet, however. If AI can be manually triggered, fine, but not as an automated check.

1 Like