by IshKebab · 3y ago · 0 comments
Edit: I read the first hit from CircleCI and I am none the wiser. The article seems to suggest it could be any of these things:
* Having a main (`master`) branch. But literally everyone except maybe Linux developers does this.
* Not using branches? Which sounds awful.
* Pushing directly to `master` and then running CI/CD! This is insane; does anyone really do this?
So what is it exactly? Linear history?
>So what is it exactly? Linear history?
The essence is that changes developers make are included into the trunk (main / master branch) as fast as possible. Developers shouldn't be branching off and spending a bunch of time making commits without them being added to to the main branch.
You can run CI/CD on the commits developers want to get rebased onto the trunk.
Point three: The best results that I have had on developing systems were doing exactly that. You need more discipline (like make sure that you run test and linters locally), but my experience is that makes the whole process easier.
CI is continuous integration, there is nothing continuous to coding on your branch and merging after a few days.
That sounds error prone. Wouldn't it make more sense to have an automated system to run tests and linters for you...?
> but my experience is that makes the whole process easier.
Sounds like you would just have people breaking `master` constantly to me. And how do you do code review? Or don't you?
> there is nothing continuous to coding on your branch and merging after a few days.
Yeah I guess the meaning has changed a little (or maybe standards have changed). These days CI basically means automatically testing every commit.
I'm only seeing disadvantages compared to traditional MR/PR/diffs.
Pair and Ensemble programming