Another story about continuous integration and version branching

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.