The authors of the classic book "Continuous Delivery" [1] have discussed in detail the negative impact of abusive branching on continuous integration on issues such as branching and code evolution. And what I'm going to say today is a story about a team that can only apply to a very limited number of hardware devices, and how they practice continuous integration under multiple branching strategies.
A team takes over a project and needs to maintain several publishing branches while developing new features. Team planning practices continue to integrate, but there is a serious shortage of hardware resources at hand to meet the deployment lines of all the branches at the same time.
Pipeline is divided into three stages, namely:
Commit compilation, unit testing, and partial integration testing and packaging
At deploying applications and running automated acceptance tests
UAT Deploy applications and perform manual acceptance tests by test engineers
Here we omit the performance testing phase and the release phase, which typically require additional hardware equipment, which is not related to this story. Each stage of the pipeline may depend on some external services, such as Web containers, databases, and so on. To prevent unwanted interference, each phase usually uses a dedicated external service as much as possible, and the test engineer does not like the Web container to be restarted because the at phase is triggered when the UAT phase does manual testing.
The long lifecycle branches, like the backbone, also need to deploy pipelining, and more external services are required. If the at phase of the backbone relies on the database, the at phase of a publishing branch also needs to be dependent on the database. Usually you have to prepare different database instances for them to avoid interfering with each other. The installation and operation of external services requires hardware resources, and the branch undoubtedly exacerbates this problem when resources are constrained. Due to some special circumstances, we only applied to a run-down PC server as a test device for the team in several projects. But we're not going to give up continuous integration, so let's see if we can do the dojo in the snails shell.