Skip to Content

Contributors

Re: Reviews

> Also, even if there are 2 reviews then PSC's generally don't respond to

> merge requests.

I can tell you why I don't: It has happened quite often in the past that I 
trusted fellow reviewers' reviews, but afterwards it turned out what I merged 
was very obviously wrong - just as you mention below we do have quite a bit of 
substandard code already in the codebase. And I feel responsible for what I 
merge. So if the existing reviews are not done by (to me) "known good" 
reviewers, I'll only merge if I reviewed myself too, and that is severely 
constrained by lack of time.

In the survey about PSCs earlier (I haven't seen any results of this, will 
those be published?), I wrote that I'd like to have some kind of automated 
triage, this would increase my reviewing/merging output considerably. Very 
often I spend my weekly OCA-time on clicking through PRs that are in my 
opinion of such a low quality that a review would be CS 101 plus guided 
reading of the conventions, and that's simply not what I signed up for.

A bot that closes PRs with failing CI for longer than X days would be a start, 
another bot could close PRs of people who don't play nice (details to be 
determined), inactive PRs should be closed much earlier. Then I know that 
what's left is not a waste of time and go reviewing in a much happier mood.


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com

by Holger Brunn - 02:20 - 16 Sep 2021

Reference

  • Reviews
    Hi all,
    
    For years, OCA has a big problem with unmerged PR's.
    
    Also, even if there are 2 reviews then PSC's generally don't respond to 
    merge requests.
    
    The answer has always been "let's review more" or "Let's use 
    gitaggregator and so we can use unmerged PR's".
    
    But why don't we try something more radical:
    
    - Let's write a script to assign "maintainer" role for all modules to 
    the person who committed the oldest/original version of it
    
    - If maintainer does not respond to a ping longer than 1 month he loses 
    the maintainer role, which then changes to the default maintainer that 
    is set for the full repo.
    
    - Let's require only 1 positive review from now on. After that the 
    maintainer can merge.
    
    --> I don't think that having 2 reviewers is always necessary and it 
    also does not prevent bugs from being merged - this happens anyway. I 
    used to have high trust of merged OCA modules but after seeing some 
    quite ugly bugs and incomplete work being merged I am starting to think 
    that maybe the quality of the unmerged stuff is not that bad as compared 
    to what is actually merged. The maintainer can prevent really bad 
    changes from entering, by just closing the PR.
    
    Tom
    
    
    

    by Tom Blauwendraat - 01:51 - 16 Sep 2021