Live data from Hacker News

Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

github.com

21–30 of 69 posts

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#21
post #16

The repo seems to move from "adevinta" (a well known company in the EU tech) to "runetes". Anyone to tell us the story?

> Note: This is a community fork of adevinta/maiao. The original maintainers are no longer at Adevinta and the upstream repository is no longer actively maintained. This fork continues development under runetes/maiao.

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#24
post #18
post #13

Earlier 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?

Not once they hit master, no. You push bug fix commits.

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#26

IME 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

#27

Who 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?

I haven’t used this project but I have used Gerrit. It has its drawbacks (like terrible UX) but its style of code reviews were the most sensible and commit of every PR might not be as bad as it sounds. GitHub’s PR reviews are atrocious and it’s unfortunate they have become the gold standard.

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

#28
post #8

Who 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?

there is an inbetween .... i insist people interactively rebase those commits out. In some contexts it is actually important to have traceability of iterative proof of work towards the final result.

Re: Maiao: Gerrit-style code review workflow for GitHub, GitLab, Gitea, others

#29

IME 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.

I'm not aware of any PR/MR UI that hides the underlying commits. Some of us do look at them.
Post reply on HN