• Hacker News
  • new|
  • comments|
  • show|
  • ask|
  • jobs|
  • martythemaniak 5 hours

    Gerrit. Now that's a name I've not heard in a long time. A long time

  • andai 3 minutes

    Maiao is based on Gerrit

    What's a Gerrit? (Looks it up)

    Gerrit is based on Rietveld

    What's a Rietveld? (Looks it up)

    Rietvelt integrates with SVN

    https://xkcd.com/178/

  • Kinrany 3 hours

    Is it compatible with jujutsu?

  • jasonlotito 5 hours

    As someone who much prefers Gerrit's UI/UX over GitHub's UI, I was disappointed that this wasn't replicating the UI for GH reviews.

    Edit: Just to be clear, this is not a blemish on this project. More a lament and a wish someone would create such a thing for those of us forced to leave Gerrit behind for... GitHub. =/

  • ppljudge 1 hours

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

    gojogs 1 hours

    how so?

  • dolmen 3 hours

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

    joaoqalves 3 minutes

    Hi! One of maiao's maintainers here, and ex-Adevinta.

    tl;dr: Adevinta got bought by a Private Equity consortium [1]. Since then, the fund did many changes, and layoffs. All of the original creators/maintainers don't work there anymore.

    Runetes is just an umbrella org for some OSS we created there.

    1 - https://adevinta.com/press-releases/permira-and-blackstone-a...

    opello 1 hours

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

  • esafak 5 hours

    Does it use Github's new stacked PR feature?

    Edit: apparently stacked PRs on GH are older than I thought; the readme references a 2024 blog post about it.

    dietr1ch 5 hours

    It seems so, https://github.com/runetes/maiao#quick-example

    As they say in mtg, reading the card explains the card

    joaoqalves 39 seconds

    Hi! Maintainer here.

    In short: maiao supported stacked PRs on GH, before it existed as a feature :) Now that it's exists (beta), it simply does "progressive enhancement" and adds the PRs to the native stack. But you could still perfectly function without it. That's how maiao works on Codeberg, and Bitbucket, for instance.

    GiLab has an interesting approach where they auto-stack up until 20 Merge Requests, if they're chained.

  • globular-toast 46 minutes

    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?

    bjackman 46 seconds

    It means you can comment on the problematic commits saying "please squash this". Then (if it works as well as Gerrit) you can compare the commit between the before and after squash state.

    Basically it lets you treat the commits as part of the thing you are reviewing instead of just a minor detail that the UI doesn't care about very much.

    peanball 43 minutes

    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.

    globular-toast 5 minutes

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

  • NamlchakKhandro 4 hours

    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?

    steveklabnik 4 hours

    This is standard practice in the "stacked diffs" world: one review, one commit.

    shubhamjain 39 minutes

    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.

    verall 4 hours

    On large teams I think the "cherry pick" workflow (Gerrit style) beats the "pull request" workflow (GitHub/gitlab style). On smaller teams it's the other way around. I think it's somewhere around 10-20 people actively committing that the cherry pick workflow comes out ahead.

    danpalmer 2 hours

    This is exactly it. When I worked in a ~10 person team I just didn't get it, PRs worked quite well (with some basic discipline, they're not perfect). When I moved to a... much larger company... I don't know how PRs would work here, it would be way too unwieldy. The Gerrit style works fantastically here.

    jsphweid 4 hours

    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?

    zmmmmm 18 minutes

    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.

    cobalt 4 hours

    it lets you maintain version history when working, then most workflows auto squash on merge

    datsci_est_2015 3 hours

    Well are we talking about commits pre- or post-merge? I don’t care how many commits you put into the PR / MR as long as they squash down to a single commit upon merge.

    steveklabnik 3 hours

    When you work this way, each commit is expected to be able to land independently.

    what 4 hours

    Why would you have more than one commit for a PR? That sounds like crazy town.

    chrisweekly 4 hours

    IMHO equating commits and PRs puts undue pressure on the scope and quality of a given commit, adding potential for unnecessary stress and eliminating the benefits of an additional buffer / layer for aggregation of changes. A PR representing a sizable feature or refactor might naturally contain a dozen commits, each dedicated to a logical area or a requisite subset of the whole. Assuming on principle a goal of keeping main in a known-good state, such intermediate and incomplete changes (fine in an unstable feature branch) would wreak havoc.

    It's equivalent to asking, "Why would you have more than one story in an epic (or task in a story)?".

    what 3 hours

    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.

    tclancy 2 hours

    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?

    steveklabnik 2 hours

    Why is that a dodge? that's the expected way to work in this system, and it should be able to show you the interdiff between those amends.

    adastra22 55 minutes

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