Three Major Trends in Software Release Management You Should Adopt

[article]
Summary:

Software companies with tight-knit agile and robust release management practices have a significant competitive advantage. To realize this advantage, an organization must first optimize its release management process and identify the most appropriate platform and release management tools. In this article, Surinderpal Kumar explains three major software release management trends every software development organization can benefit from.

Due to increasing market pressure, companies are striving to release their software earlier than their competitors. These frequent releases allow teams to validate features earlier and detect bugs easily. Additionally, smaller iteration cycles provide flexibility, making adjustments to unforeseen scope changes less of a burden. As a result, software companies with tight-knit agile and robust release management practices have a significant competitive advantage. 

The process of implementing such agile practices, however, is easier said than done as building software becomes increasingly more complex due to factors such as increasing legacy code, resource movements, globally distributed development teams, and the increasing number of supported platforms. In this article, I will explain three major release management trends every software development organization can benefit from.

The first trend is to adopt agile practices at the core, including automation.Simply holding daily standup meetings will not be enough. Yes, sprint and Iteration planning as well as review and retrospection are all essential elements for successful releases. However, in order to gain substantial and meaningful stories or features within the time boundaries of your sprints, companies need to invest in automation.

The lack of automation places an unnecessary burden on your development team and invites human error into your environment adversely affecting team velocity and productivity. Proper automation will establish a process that is consistent and repeatable, therefore reducing errors and release times. Agile practices—be it scrum, XP, or lean—all strongly recommend build automation, test automationdeployment automation, and feedback (or review) automation. Essentially, automation relieves software teams from the overhead of time-consuming manual configuration management tasks and brings the focus back to the code and core product development. 

For example, as a developer commits changes to the version control, these changes automatically get integrated with the rest of the modules. Integrated assembles are then automatically deployed to a test environment. If there are changes to the platform or the environment, the environment gets automatically built and deployed on test bed. Next, build acceptance tests are automatically kicked off, which would include capacity tests, performance, and reliability tests. Developers and/or leads are notified only when something fails. Therefore, the focus remains on core development and not just on other overhead activities. Of course, there will be some manual check points that the release management team will have to pass in order to trigger next the phase, but each activity within this deployment pipeline can be more or less automated.

As your software passes all quality checkpoints, product version releases are automatically pushed to the release repository from which new versions can be pulled automatically by systems or downloaded by customers. There are a range of technologies available in the market in each of these areas, including build automation (e.g., Ant, Maven, and Make), continuous integration (e.g., Jenkins, Cruise Control, and Bamboo), test automation (e.g., Silk Test, EggPlant, Test Complete, and Coded UI), and continuous deployment (e.g., Bamboo, Prism, and Jenkins). Implementing these best practices will obviously require strategic planning and an investment of time in the early phases of your project; this will reduce the organizational and change management efforts needed later on.

The second trend is the use of virtualization and cloud platforms as development and test environments. Today, most software products are built to support multiple platforms, be it operating systems, application servers, databases, or Internet browsers. Software development teams need to test their products in all of these environments in-house prior to releasing them to the market. 

However, this presents the challenge of creating all of these environments as well as maintaining them. These challenges increase in complexity as development and test teams become more geographically distributed. In these circumstances, the use of virtualization and cloud platforms can be handy, and these platforms have recently been widely adopted in the industry.

In some companies, release management teams have started to bring in deployment automation on virtualized and cloud platforms. In this case, the same way we maintain code and configuration version history for our products, we also maintain the version history of all their supported platforms.

For example, previously we described the process of a developer checking in code, and the product build automatically being run and deployed to the necessary test environments. Similarly, if a build and release engineer changes configurations for the target platform—like the operating system, database, or application server settings—the whole platform can be built and a snapshot of it created and deployed to the relevant target platforms. In other words, if you are using in-house VMware virtualization, the virtual machine (VM) is automatically provisioned from the snapshot of base operating system VM, appropriate configurations are deployed and the rest of the platform and application components are automatically deployed.

The same goes for cloud-based environments if you are using Rackspace as your Infrastructure-as-a-Service (IaaS) and Platform as a Service (PaaS); as new configurations are introduced, a new Rackspace instance is procured, instantiated, and configured as a development and test environment. This is crucial for productivity, otherwise it could take weeks to adopt to configuration changes. With automation, the process becomes repeatable, quick, and there are no hassles of communication across different teams within the software development center. 

The third trend is the use of distributed version control systems. Distributed version control systems (DVCS)—like GIT, Mercurial, and Perforce—are becoming more popular due to the flexibility it provides for teams to collaborate at the code level. The fundamental design principle behind DVCS is that each user keeps a self-contained repository with complete version history on one’s local computer. There is no need for a privileged master repository, although most teams designate one as a best practice. DVCS allow developers to work offline and commit changes locally.

As developers complete their changes for an assigned story or feature set, they push their changes to the central repository as a release candidate. DVCS offers a fundamentally new way to collaborate, such that developers can commit their changes frequently without disrupting the main codebase or trunk. This becomes useful when teams are exploring new ideas or experimenting.

DVCS come in handy for software teams that utilize an agile-feature-based branching strategy. This encourages development teams to continue to work on their features (branches) as they get ready, having fully tested their changes locally, to load them into next release train. In this scenario, developers are able to work on and merge their feature branches to a local copy of the repository.

Only after standard reviews and quality checks will the changes then be merged into the main repository. If your software product development involves multiple project teams, distributed teams or feature-based development, DVCS should certainly be taken into consideration. 

Adopting these three major trends of software release management make for a great start for software teams struggling with release management issues!

User Comments

2 comments
Tomas Lundstrom's picture

A few nitpicks on the DVCS part.

1. By your own definition of DVCS, Perforce is definitely not distributed.

2. But obviously Perforce is distributed in the sense that you can collaborate across sites. It's just not decentralized. The same applies to several other products that have some form of replication/proxy functionality, such as AccuRev, TFS and even ClearCase.

3. Feature branching has nothing to do with DVCS. Feature branching (and any other branching pattern that is employed frequently) has to do with having a VCS powerful enough to support it. Git obviously works well here, but not because it's distributed/decentralized, it's because Git is simply good at branching and merging.

4. Likewise, being on a private branch really doesn't have anything to to with DVCS, it's about supporting private branches in a good way. In AccuRev it's built in. In some tools it's feasible, while in others (SVN, CVS) it's simply too much overhead.

5. Code reviews and automated tests of course are nothing unique to DVCS, that can be (and has been) done with any tool. But it helps to have a good way of staging and promoting changes. One way is to use extensive branching (again, when you have a powerful branch/merge engine like Git it is feasible) but it can also be achieved using meta-data manipulation (the ClearCase way) or stream promotion/inheritance (the AccuRev way).

October 26, 2013 - 6:55am
Surinderpal Kumar's picture

Good points!! Its clear, you bring good depth on knowledge on version control systems.

I agree in black & white terms Perforce is not a pure DVCS, but a Hybrid one with introduction of some of new capabilities like GIT Fusion which suites to enterprises which still prefer central repository but distributed teams want to take advantage of GIT.

Feature based development is one of important Agile practices which enable multiple teams to work on their ideas independently and lets them load them in releases as they are ready. This enables large companies to make frequent & quality releases with rich feature sets and version control system plays an important role here. Some distributed version control systems are more powerful than others & I agree GIT has an upper edge.

 

 

 

October 30, 2013 - 6:35am

About the author

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.