Hey all! My team at work is struggling with growing pains of getting into a formalized review process, so I was wondering if any of you guys have some things to live or die by in your code reviews. How much of it is manual, or how much is just static code analysis + style guide stuff, etc?

  • dalarist
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    We’ve got 20 or so devs and some infrequent contributors commiting to a pair of mono-repos, with some extra steps between them.

    Our process looks like this:

    • develop on a feature branch
    • get two or more reviewers, sometimes devs that you’ve been talking with about the design, but if you don’t know who we have a list of devs for different product areas.
    • only our newest stuff has auto-linting, otherwise style and static code analysis is all manual, but we’re trying to automate as we go
    • need at least one approval to merge, not by any got rules, just by convention

    All the code reviews are asynchronous, we’re a distributed team so we don’t like sit down in a room to talk about it, just comments on the PR.

    Sometimes however you find a fix so small, you just commit and push to master. I’m not really in favor of that, but it happens.

    • mustyOrange@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      Midwestern b tier company:

      1. Test your code on its own branch. Make sure it’s not fucked

      2. Pr to dev, do code review with devs that call you out on your bullshit (were all lazy sometimes)

      3. Whip up QA doc, send the ticket to the QA queue

      4. Confirm with BU that all their bases are covered and nothing is missing

      5. Repeat steps for inevitable wishy washy scope creep from BA who wants to have inevitable meetings that could be done in emails

      6. Complete merge to dev, merge dev to master, and tell devops that it’s ready to go

    • lackthought@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      this is almost exactly how my company does it as well

      except merges are typically handled by specific people and they only reach out for reviews if they aren’t sure of how to handle a potential conflict