There should be no “one master branch” that everyone uses, since it’s a point of contention and a single point of failure. And when stuff breaks in “one master branch” your whole organization is affected.
Where do you build releases out of?
Bottom-up: Junior developers should push their changes to senior developers, that truly review them (as opposed to just “glance over and point out mistakes” - more on it later), and if accepted, they include them in their own branches then push to team leaders, and then release managers and so on.
Oh, I see where you're going with this. Where do you think senior engineers are going to get the time to handle merge damage between two large changes by junior devs as they try to push into the release branch?
This might work for a group of people working autonomously on code that's very segmented and isolated. I'm not waiting on a coworker because of quirks in our VC system, I'm waiting on them because they're implementing some functionality that fundamentally changes the architecture of the code and my work will only really gain meaning once that context has been established.
or a developer to truly review a change, the developer should download it locally, do git checkout on it, open in IDE/text editor of their choice with or along diff viewer, jump around the new code, run tests and even write some new ones, toy with it, execute etc. Only then the change has been “reviewed” as opposed to “glanced over”.
This again sounds unrealistic. Although actually, where do you work that senior engineers have this much free time... ? Sounds kind of nice.
Review should be more about communication and collaboration, rather than just one way critique. If problems were found the reviewer can fix them immediately and send back the fixes.
Besides sounding extraordinarily inefficient with respect to the time of senior devs (I keep coming back to this because I think it's a critical flaw) and other gatekeepers, this is a bad idea because it destroys the virtuous feedback loop that exists as a result of senior devs imparting hints and general feedback as part of code and design reviews.
Release branch maintained by someone filling the release manager role.
Where do you think senior engineers are going to get the time to handle merge damage between two large changes by junior devs as they try to push into the release branch
Typically if the conflict is small, you fix it yourself. If it's bigger or you don't have time, you pick one set of changes to keep, and tell the author of the other to rebase their work.
This again sounds unrealistic.
It really isn't. The degree of the review is entirely in reviewer's discretion. At a minimum, it can be "glancing over" as before.
21
u/PC__LOAD__LETTER Aug 23 '17
Interesting write-up, but I disagree.
Where do you build releases out of?
Oh, I see where you're going with this. Where do you think senior engineers are going to get the time to handle merge damage between two large changes by junior devs as they try to push into the release branch?
This might work for a group of people working autonomously on code that's very segmented and isolated. I'm not waiting on a coworker because of quirks in our VC system, I'm waiting on them because they're implementing some functionality that fundamentally changes the architecture of the code and my work will only really gain meaning once that context has been established.
This again sounds unrealistic. Although actually, where do you work that senior engineers have this much free time... ? Sounds kind of nice.
Besides sounding extraordinarily inefficient with respect to the time of senior devs (I keep coming back to this because I think it's a critical flaw) and other gatekeepers, this is a bad idea because it destroys the virtuous feedback loop that exists as a result of senior devs imparting hints and general feedback as part of code and design reviews.