Live data from Hacker News

Show HN: How to Get Started with Continuous Integration

fire.ci

21–23 of 23 posts

Re: Show HN: How to Get Started with Continuous Integration

#21
post #15

Earlier quoted context omitted.

And now that I look at your question again: yes. If all 23 builds were green and one person merges, then it would trigger a build on the remaining 22. The thing being that you probably shouldn't have 23 PRs lying around (probably waiting for code review).

Yeah I think what you are suggesting might work if team follows * merge PR asap * keep build time down to n mins. But its extremely common in big projects to have atleast 20 prs open with long build. kubernetes has like 1100 open prs atm ( each pr with 5 25 min builds). What should a project like k8s do for CI ? would require insane computing power to launch 5000 builds for every merge.

k8s is open source, which is a different setup: you can't just merge in anything that comes in. In commercial projects though, even with a large team, you should be able to trust any team member to contribute to the main branch in the right way. Mistakes and errors should be caught by the CI build.

Getting from here to there probably requires a transition phase. In the long run though, if the time spared/lost waiting for PRs, developers context switching, resolving conflicts and dealing with errors (that will appear anyway) is invested into improving the quality and speed of automated tests, you end up in a much better place.

I'm not saying it's an easy thing, but in my opinion this is what development teams should strive for.

Re: Show HN: How to Get Started with Continuous Integration

#22
post #11

> 15 minutes later you get a failed build notification. You need to switch back to the previous task, try to fix the issue … and go for another 15 minutes loop … The 3 minute rule is probably one of the most important in the article in my opinion. I have worked with workflows that were longer than 3 minutes (10min+-) and I find that I either went do something unproductive or I started another task. The times when I s…

Not to hijack the OPs post, Fire CI looks like a great tool! I recently released my open source feature toggle project, Flipt ( https://github.com/markphelps/flipt ), that allows you to implement feature flags in your existing environment. Would love for you to check it out and give any feedback that you can!

Flipt is an interesting concept! I've tracked you down on Twitter. Let's talk when you have time ;)

Re: Show HN: How to Get Started with Continuous Integration

#23
Long lived feature branches create a false sense of safety and comfort for each developer individually. As the branches drift apart for a long period of time, there is no way to measure how hard it will be to merge it all

A great explanation of how hard feature branches are to manage. But surely better architecture would alleviate that pain...

Post reply on HN