The repo seems to move from "adevinta" (a well known company in the EU tech) to "runetes". Anyone to tell us the story?
Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
21–30 of 69 posts
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#22Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#23This sounds intriguing. Additionally, I wanted the community to evolve our approach to providing PR feedback. One of the unintended consequences was that it became a tool for people to exploit their workers.
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#24Earlier quoted context omitted.
If your PR has more than one commit, each one should be deployable in isolation. Which means you can split your giant PR into smaller ones that can be reviewed independently.
I’ve worked under both systems, but isn’t the purity you’re describing a bit of a dodge in that you wind up force pushing amended commits when you find you forgot something?
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#25Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#26IME juniors struggle with making single commits in the first place. What I usually see is a scatter brained approach with more "fix" commits than anything else. This doesn't help with that, does it?
The current UIs don't punish you for that as the reviewer mostly sees one final coherent change.
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#27Who is creating a separate PR for each commit on their feature/fix branch? sounds like crazy town. I just dont understand why someone would operate like this. Lets assume you're squash merging your feature branchs to your local main, then you're raising the them as prs. why would you do this?
In Gerrit, you commit every review, and the author has to edit individual commits to address them (using git rebase). This may sound PITA but it makes the history absolutely clean, and makes it easier for both reviewers and authors to review and address suggestions.
On Github, on the other hand, reviewing a large PR is just insanely hard. Making sure comment was addressed properly is hard as well, they can get lost in a sea of suggestions. They also become separate commits instead of being part of the commit itself. The commit should always been treated as unit of work rather than the branch.
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#28Who is creating a separate PR for each commit on their feature/fix branch? sounds like crazy town. I just dont understand why someone would operate like this. Lets assume you're squash merging your feature branchs to your local main, then you're raising the them as prs. why would you do this?
1 commit == 1 reviewable unit == 1 PR == 1 CL == 1 feature == 1 fix is a perfectly reasonable way of working. I used to work at companies where no one squashed their commits and the entire git logs were filled with 80% non-sense like "temp" or "bad" or "working" with the other 20% being coherent changes. What's the point of doing this I ask?
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#29IME juniors struggle with making single commits in the first place. What I usually see is a scatter brained approach with more "fix" commits than anything else. This doesn't help with that, does it?
It could help in the sense that people would not accept a pile of `fix`, `fix of fix` commits in a PR anymore. The current UIs don't punish you for that as the reviewer mostly sees one final coherent change.
Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others
#30What's a Gerrit? (Looks it up)
Gerrit is based on Rietveld
What's a Rietveld? (Looks it up)
Rietvelt integrates with SVN