A release is a version of the software that is made available to users. Release management is the work of planning, building, testing and delivering it in a controlled way.
Release Planning
Release planning decides what features and fixes will be included in a release and when it will be delivered. It balances business value, the capacity of the team, the risks and the dependencies between features. The result is a release plan, a schedule of planned releases with their content, such as a major release every six months with minor releases every month. A release may be a major one with many new features, a minor one with a few features and fixes, or a patch, which corrects a specific problem.
Definition: Release management. The process of planning, scheduling, building, testing and deploying software releases in a controlled and predictable manner.
Development Plan
The development plan for a release shows how the work will be done. It sets out the features, the tasks and their order, the team members and their roles, the estimates of effort, the schedule of milestones, the testing and review activities, and the environments used for development and testing. Version control is used, and work is done on branches, which are merged into the main line when ready. The plan sets the release criteria, the conditions that must be met before release, such as that all critical defects are closed and the tests pass.
Build Plan
The build plan describes how the source code is turned into a working product. A build compiles the code, links the libraries, runs the tests and packages the result. A build script makes the build automatic and repeatable. In continuous integration the code is built and tested automatically every time a developer submits a change. Each build is given a version number, commonly of the form major.minor.patch, such as 2.4.1. Build artefacts are stored in a repository so that any release can be rebuilt or reinstalled. A configuration management process keeps track of which versions of which files make up each release.
Table 4.4: Types of release
| Type | Content | Example version |
|---|---|---|
| Major | New features, large changes | 2.0.0 |
| Minor | A few features and fixes | 2.1.0 |
| Patch | A specific bug fix | 2.1.1 |
Example 4.4: Choosing the version number
Problem: The current version is 2.4.1. Give the next version for (a) a security bug fix, (b) a new report feature that keeps old features working, (c) a redesign that changes the interface.
Solution:
- A bug fix increases the patch number, giving 2.4.2.
- A compatible new feature increases the minor number and resets the patch, giving 2.5.0.
- An incompatible change increases the major number, giving 3.0.0.
Result: (a) 2.4.2, (b) 2.5.0, (c) 3.0.0.
Common mistakes
- Releasing without defined release criteria.
- Building by hand, so that the build cannot be repeated exactly.
- Changing version numbers without a rule.
Key takeaways
- A release plan decides the content and timing of releases.
- Release criteria are conditions that must be met before release.
- A build compiles, tests and packages the software.
- Version numbers take the form major.minor.patch.
Practice questions
- What is release management?
- What are release criteria?
- What does continuous integration do?
Answers to the practice questions
- Planning, building, testing and deploying software releases in a controlled way.
- The conditions that must be met before a release is made.
- Builds and tests the code automatically each time a change is submitted.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit IV
