How do distributed teams do code reviews?
Paul

Paul @peiche

About: ✝️ Christian - 👨‍👩‍👧 Husband & father - ♿ Ally - 🏳️‍🌈 Ally - 🌐 Full-stack web developer

Joined:
Apr 13, 2017

How do distributed teams do code reviews?

Publish Date: Dec 30 '19
7 8

Like the title says. My team is all in the same location. We occasionally work remotely, but for the most part we come into the office. When we need to do a peer review, it's done face-to-face. If a team member is remote, the review has to wait until they're back in the office. So I was wondering, how do you do code reviews if the team members don't share a physical location?

Comments 8 total

  • Patryk Jeziorowski
    Patryk JeziorowskiDec 30, 2019

    Similarly to how you do it in open source projects - one person opens a pull request, another person takes a look at it, writes comments, gives feedback etc. At the end when everything seems good the reviewer approves the pull request and it's merged.

  • chico1992
    chico1992Dec 30, 2019

    You could also use a video chat app like skype to do the review « face-to-face »

  • Si
    SiDec 30, 2019

    That sounds really laborious and must effect your productivity?

    Code reviews should be able to run asynchronously, and shouldn't need the raiser to be in attendance.

    What's your workflow/tools?

  • Austin S. Hemmelgarn
    Austin S. HemmelgarnDec 30, 2019

    You open a PR, or send patches to whatever mailing list, or however else you submit things for review.

    You then proceed to wait for approvals or requests for clarification from responsible parties you flagged for review (or who were flagged automatically), respond as appropriate, and repeat until everyone who needs to review it has.

    In the event that you need 'synchronous' communication to explain something in depth, you schedule a time with everyone who needs to be involved and either do a video call, or chat on IRC, or something similar.

    Honestly, this is how everyone should be doing it, not just distributed teams. I would go insane working for a company where people couldn't submit reviews if they were working remotely, it seriously hurts efficiency on multiple levels.

  • manish srivastava
    manish srivastavaDec 31, 2019

    We do it by gitlab. It's open-source and you can host in your company server. There are other pieces of software available both paid and open-source without git. We have kept it simple by gitlab

    • Alexander Zeitler
      Alexander ZeitlerJan 1, 2020

      +1 for GitLab. Even if your team is not remote it makes things mach more transparent for everyone. After years of running the self hosted version we’ve switched to their silver plan because there’s so much value in it.

      • manish srivastava
        manish srivastavaJan 1, 2020

        Gitea is another good option . But I will also +1 for Gitlab

Add comment