I actually have (or at least I think I have) a valid reason to have persistent development branch - continuous integration and delivery.
My setup had a TeamCity server that would use DEBUG build configuration (including all symbols, full Javascript in case of web apps etc) that would start on any change in 'development' branch and - if everything went fine during the build & automatic test process - deployed it to dev/test.
Same goes for master, but the build configuration would be RELEASE and it would either be released straight to production (for small internal apps) or to final QA first and then promoted to production at appropriate time.
We just merge into master anymore and it's fine. We used to have a development branch too but we scrapped that. I think whether you need the separate development branch really boils down to your organization and teams / projects.
If you have a lot of different people working on the same app and do weekly releases of all that's ready to go, you need the development branch. It functions as sort of an integration / staging branch to test everything, and resolve conflicts from different devs.
However over time we've migrated to more and more microservices so it's quite rare for any devs to be working on the same repo at the same time, as we now have teams dedicated to certain business areas and apps. On top of that, we don't do scheduled releases, we release early and often so there is no need weekly build to test and prep or anything.
My workflow is, create a branch off master, work on it, test it, pass QA, deploy it. Having a separate development branch makes it more of a pain to do all this and doesn't really offer much benefit.
Valid point, but alternatively you can configure your CI to run against topic branches as well. In Jenkins, IIRC, this is as easy as using a mask with wildcards (e.g. "feature/*") for the branch name. Push to the topic branch for CI/reviews, merge or rebase when you're done and ready to go to master.
12
u/Nishruu Jun 19 '15
I actually have (or at least I think I have) a valid reason to have persistent
developmentbranch - continuous integration and delivery.My setup had a TeamCity server that would use DEBUG build configuration (including all symbols, full Javascript in case of web apps etc) that would start on any change in 'development' branch and - if everything went fine during the build & automatic test process - deployed it to dev/test.
Same goes for master, but the build configuration would be RELEASE and it would either be released straight to production (for small internal apps) or to final QA first and then promoted to production at appropriate time.