by nhumrich · 9y ago · 0 comments
I would still consider this continuous delivery.
Edit: I don't think anyone was trying to imply a single allowed feature branch at a time; we can probably all easily agree that's basically no different than working on master.
How would I use git bisect with a bunch of flags to a composite of build systems?
Branches tend to be solo devs and tend to live less than a day. But nobody develops in master. It's actually locked down to just merges from pull requests.
Then trunk based is poorly named and apt to start a fruitless holy war. Nobody wants too many people on a feature branch, or for one to live too long. (But it happens, like rebranding an entire app or rewriting all the auth code, which is a good thing to be able to do. )
Is there a threshold of time/collaboration that makes it not-CD?
>CD means every commit gets built and delivered all the way prod if it passes all tests. The key word is "continuous" as in, every single commit.
In my experience one of two things happen with this approach. Either the functionality is hidden behind flags and intentionally doesn't impact prod, in which case there's no point in it being there. Or you only commit when the feature is complete, which is effectively the same "delivery when I am ready" as with merges.
The goal of CD is not to push every commit to prod -- this is merely the process. If the goal achieved by the process of pushing every commit to prod can be achieved via a different process, we shouldn't be so quick to criticise the other process. We should instead discuss the tradeoffs between the two, because in reality there is no best option, only tradeoffs.
BTW "commit" is also a "manual step".
> Write tests first
What does this have to do with TBD vs branch based? Should be that way either way. In fact TBD breaks down if you don't write your tests.
> A branch doesn't move to prod on a commit
Are you saying your shipping branches to prod regardless as to if it's on trunk or not?
Or perhaps your whole comment is just saying how TBD is supposed to work and your agreeing with me?
My live system looks up the branch name in the URL or in a (signed) cookie and checks out the appropriate branch then and there. This is possible because my development system is integrated into my live system.
I always wondered why a company would allow code to go straight to production, live, affecting customers, without a human giving the OK to release.
That's terrifying. After 15 years in the same field I still don't have half the business knowledge as those writing the specs I implement. I would never ever want a nontrivial feature I wrote to hit a customer without manual testing by an expert in the area.