Show HN: How to Get Started with Continuous Integration
1–10 of 23 posts
Re: Show HN: How to Get Started with Continuous Integration
#2100% this - I've never seen it written down anywhere so concisely before! What's the point in CI running automated tests on only your changes, when you have already done so locally? If you are pushing your changes just to get your unit test results (and code formatting checks etc), you are doing it wrong! :) merging it first makes much more sense / has much more value.
Re: Show HN: How to Get Started with Continuous Integration
#3Re: Show HN: How to Get Started with Continuous Integration
#4> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
Re: Show HN: How to Get Started with Continuous Integration
#5> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
Re: Show HN: How to Get Started with Continuous Integration
#6> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
> main branch moves ahead now merged code doesn't pass tests.
> ci still says merged code is good to go
> user performs merge
> main branch is broken
Re: Show HN: How to Get Started with Continuous Integration
#7> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
For me the right way is never to allow non-ff merges and instead require all changes to be integrated into your branch (either via rebase or merge from base into your branch) before merging. GitLab supports this flow nicely and it has been wonderful for ensuring that the resulting product passes tests.
I have to keep merging upstream whenever upstream changes?
Some PRs are open for days.
Re: Show HN: How to Get Started with Continuous Integration
#8> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
> ci runs tests on merged code and says its ok > main branch moves ahead now merged code doesn't pass tests. > ci still says merged code is good to go > user performs merge > main branch is broken
Re: Show HN: How to Get Started with Continuous Integration
#9Earlier quoted context omitted.
For me the right way is never to allow non-ff merges and instead require all changes to be integrated into your branch (either via rebase or merge from base into your branch) before merging. GitLab supports this flow nicely and it has been wonderful for ensuring that the resulting product passes tests.
what happens if I am waiting for my PR to merged. I have to keep merging upstream whenever upstream changes? Some PRs are open for days.
Re: Show HN: How to Get Started with Continuous Integration
#10> Most Continuous Integration tools run the CI build on your branch to say if it can be merged or not. But that is not what is of interest here. If you know what you’re doing there is a pretty good chance that the code you have just pushed is working already! > Your CI tool should perform a local merge of your branch to the main branch and run the build and tests against that. 100% this - I've never seen it written d…
> ci runs tests on merged code and says its ok > main branch moves ahead now merged code doesn't pass tests. > ci still says merged code is good to go > user performs merge > main branch is broken