• Dieguito 🦝@feddit.it
    link
    fedilink
    arrow-up
    23
    ·
    8 months ago

    The worst case is when someone requires changes, you address them, but then they disappear/go on a leave.

    If the repository rules require all conversations to be resolved before merging and only the original reviewer can mark them as solved, the PR is stuck forever even if the rest of the team approves it.

  • pimeys@lemmy.nauk.io
    link
    fedilink
    arrow-up
    10
    ·
    8 months ago

    A 15000 line PR landing on a Friday evening for the lucky random reviewer to open on Monday. “Please approve it fast so we avoid too many conflicts.”

    • ohlaph@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 months ago

      I would review it and immediately tell them to break it into bite sized PRs.

      My coworker kept doing that. We had several talks about it. Other members of our team had talks about it with them, and even our manager. Finally, I marked the PR as needs work, told them to break it into several PRs. They weren’t happy, but I was tired of dealing with PRs that were 30+ files, unrelated in change, and over 1500 lines of code changes. They were pretty mad at me for a while. But it stopped shortly afterwards.

      It shouldn’t take more than an hour to review a PR.

      • pimeys@lemmy.nauk.io
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        Yeah I’ve been working a lot in my life in seed stage startups and it is quite common in the early stages… I try to make things change though.

      • douglasg14b@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        8 months ago

        There is no context here though?

        If this is a breaking change to a major upgrade path, like a major base UI lib change, then it might not be possible to be broken down into pieces without tripping or quadrupling the work (which likely took a few folks all month to achieve already).

        I remember in a previous job migrating from Vue 1 to Vue 2. And upgrading to an entirely new UI library. It required partial code freezes, and we figured it had to be done in 1 big push. It was only 3 of us doing it while the rest of the team kept up on maintenance & feature work.

        The PR was something like 38k loc, of actual UI code, excluding package/lock files. It took the team an entire dedicated week and a half to review, piece by piece. We chewet through hundreds of comments during that time. It worked out really well, everyone was happy, the timelines where even met early.

        The same thing happened when migrating an asp.net .Net Framework 4.x codebase to .Net Core 3.1. we figured that bundling in major refactors during the process to get the biggest bang for our buck was the best move. It was some light like 18k loc. Which also worked out similarly well in the end .

        Things like this happen, not that infrequently depending on the org, and they work out just fine as long as you have a competent and well organized team who can maintain a course for more than a few weeks.

        • ohlaph@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          It was simply constant refactors, moving random stuff, etc. like, every week. It was unnecessary change.

    • catacomb@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      I’d be pulled up at my job for any PR exceeding a few hundred lines. I don’t even know what they’d do if I just dropped a 15000 line stinker.

  • Cheesebaron@feddit.dk
    link
    fedilink
    arrow-up
    7
    arrow-down
    12
    ·
    8 months ago

    This always happens to me when I’ve written some genius code. Takes so long to review it, because my caveman colleagues don’t understand it.