1 Chapter 25 Configuration Management
1 Chapter 25 Configuration Management
Lecture 1
Topics covered
Change management
Version management
System building
Release management
Configuration management
Because software changes frequently, systems, can be
thought of as a set of versions, each of which has to be
maintained and managed.
Versions implement proposals for change, corrections of
faults, and adaptations for different hardware and
operating systems.
Configuration management (CM) is concerned with
the policies, processes and tools for managing
changing software systems. You need CM because it
is easy to lose track of what changes and component
versions have been incorporated into each system
version.
Chapter 25 Configuration management
CM activities
Change management
Keeping track of requests for changes to the software from customers
and developers, working out the costs and impact of changes, and
deciding the changes should be implemented.
Version management
Keeping track of the multiple versions of system components and
ensuring that changes made to components by different developers do
not interfere with each other.
System building
The process of assembling program components, data and libraries,
then compiling these to create an executable system.
Release management
Preparing software for external release and keeping track of the system
versions that have been released for customer use.
Chapter 25 Configuration management
CM terminology
Term
Explanation
Configuration item or Anything associated with a software project (design, code, test data,
software configuration document, etc.) that has been placed under configuration control. There
item (SCI)
are often different versions of a configuration item. Configuration items
have a unique name.
Configuration control
The process of ensuring that versions of systems and components are
recorded and maintained so that changes are managed and all versions of
components are identified and stored for the lifetime of the system.
Version
An instance of a configuration item that differs, in some way, from other
instances of that item. Versions always have a unique identifier, which is
often composed of the configuration item name plus a version number.
Baseline
A baseline is a collection of component versions that make up a system.
Baselines are controlled, which means that the versions of the components
making up the system cannot be changed. This means that it should
always be possible to recreate a baseline from its constituent components.
Codeline
A codeline is a set of versions of a software component and other
configuration items on which that component depends.
CM terminology
Term
Explanation
Mainline
Release
Workspace
Branching
Merging
System building
Change management
Organizational needs and requirements change during
the lifetime of a system, bugs have to be repaired and
systems have to adapt to changes in their environment.
Change management is intended to ensure that system
evolution is a managed process and that priority is given
to the most urgent and cost-effective changes.
The change management process is concerned with
analyzing the costs and benefits of proposed
changes, approving those changes that are worthwhile
and tracking which components in the system have been
changed.
Chapter 25 Configuration management
10
Change assessment: It is necessary to inform users that the books they selected
are temporarily not available.
Change priority: High
Change implementation:
Estimated effort: 2 hours
Date to SGA app. team: 28/01/09
CCB decision date: 30/01/2013
Decision: Accept change. Change to be implemented in Release 1.2
Change implementor:
Date of change:
Date submitted to QA:
QA decision:
Date submitted to CM:
Comments:
11
12
13
Version management
Version management (VM) is the process of keeping
track of different versions of software components or
configuration items and the systems in which these
components are used.
It also involves ensuring that changes made by different
developers to these versions do not interfere with each
other.
Therefore version management can be thought of as the
process of managing codelines and baselines.
14
15
16
Baselines
Baselines may be specified using a configuration
language, which allows you to define what components
are included in a version of a particular system.
Baselines are important because you often have to
recreate a specific version of a complete system.
For example, a product line may be instantiated so that there are
individual system versions for different customers. You may have
to recreate the version delivered to a specific customer if, for
example, that customer reports bugs in their system that have to
be repaired.
17
Storage management
To reduce the storage space required by multiple versions of
components that differ only slightly, version management
systems usually provide storage management facilities.
18
Project support
A version management system may support the development of
several projects, which share components.
19
Codeline branches
Rather than a linear sequence of versions that reflect
changes to the component over time, there may be
several independent sequences.
This is normal in system development, where different
developers work independently on different versions of the
source code and so change it in different ways.
20
21
Key points
Configuration management is the management of an evolving
software system. When maintaining a system, a CM team is put in
place to ensure that changes are incorporated into the system in a
controlled way and that records are maintained with details of the
changes that have been implemented.
The main configuration management processes are change
management, version management, system building and release
management.
Change management involves assessing proposals for changes
from system customers and other stakeholders and deciding if it is
cost-effective to implement these in a new version of a system.
Version management involves keeping track of the different versions
of software components as changes are made to them.
Chapter 25 Configuration management
22
Lecture 2
23
System Building
System building is the process of creating a complete,
executable system by compiling and linking the system
components, external libraries, configuration files, etc.
System building tools and version management tools
must communicate as the build process involves
checking out component versions from the repository
managed by the version management system.
The configuration description used to identify a baseline
is also used by the system building tool.
24
Build platforms
The development system, which includes development
tools such as compilers, source code editors, etc.
Developers check out code from the version management
system into a private workspace before making changes to the
system.
25
26
System Building
System building involves assembling a large amount of
information about the software and its operating
environment
27
28
Minimizing recompilation
Tools to support system building are usually designed to
minimize the amount of compilation that is required:
1. Checking if a compiled version of a component is
available. If so, there is no need to recompile that
component.
2. A unique signature identifies each source and object
code version and is changed when the source code is
edited.
File identification
Modification timestamps
The signature on the source code file is the time and date when
that file was modified. If the source code file of a component has
been modified after the related object code file, then the system
assumes that recompilation to create a new object code file is
necessary.
30
Timestamps vs checksums
Timestamps
Because source and object files are linked by name rather than
an explicit source file signature, it is not usually possible to
build different versions of a source code component into
the same directory at the same time, as these would generate
object files with the same name.
Checksums
When you recompile a component, it does not overwrite the
object code, as would normally be the case when the timestamp
is used. Rather, it generates a new object code file and tags it
with the source code signature. Parallel compilation is
possible and different versions of a component may be
compiled at the same time.
Chapter 25 Configuration management
31
Agile Building
32
Agile Building
Check out the mainline system from the version
management system into the developers private
workspace.
Build the system and run automated tests to ensure that
the built system passes all tests. If not, the build is
broken and you should inform whoever checked in the
last baseline system. They are responsible for repairing
the problem.
33
Agile building
Once the system has passed its tests, check it into the
build system but do not commit it as a new system
baseline.
Build the system on the build server and run the tests.
You need to do this in case others have modified
components since you checked out the system. If this is
the case, check out the components that have failed and
edit these so that tests pass on your private workspace.
34
Daily building
The development organization sets a delivery time (say
2 p.m.) for system components.
If developers have new versions of the components that they are
writing, they must deliver them by that time.
A new version of the system is built from these components by
compiling and linking them to form a complete system.
This system is then delivered to the testing team, which carries
out a set of predefined system tests
Faults that are discovered during system testing are documented
and returned to the system developers. They repair these faults
in a subsequent version of the component.
35
Release management
A system release is a version of a software system that
is distributed to customers.
For mass market software, it is usually possible to
identify two types of release: major releases which
deliver significant new functionality, and minor releases,
which repair bugs and fix customer problems that have
been reported.
For custom software or software product lines, releases
of the system may have to be produced for each
customer and individual customers may be running
several different releases of the system at the same
time.
Chapter 25 Configuration management
36
Release tracking
In the event of a problem, it may be necessary to
reproduce exactly the software that has been
delivered to a particular customer.
When a system release is produced, it must be
documented to ensure that it can be re-created exactly in
the future.
This is particularly important for customized, long-lifetime
embedded systems, such as those that control complex
machines.
Customers may use a single release of these systems for many
years and may require specific changes to a particular software
system long after its original release date.
Chapter 25 Configuration management
37
Release reproduction
To document a release, you have to record the specific
versions of the source code components that were
used to create the executable code.
You must keep copies of the source code files,
corresponding executables and all data and
configuration files.
You should also record the versions of the operating
system, libraries, compilers and other tools used to
build the software.
38
Release planning
As well as the technical work involved in creating a
release distribution, advertising and publicity material
have to be prepared and marketing strategies put in
place to convince customers to buy the new release of
the system.
Release timing
If releases are too frequent or require hardware upgrades,
customers may not move to the new release, especially if they
have to pay for it.
If system releases are too infrequent, market share may be lost
as customers move to alternative systems.
39
Release components
As well as the the executable code of the system, a
release may also include:
configuration files defining how the release should be configured
for particular installations;
data files, such as files of error messages, that are needed for
successful system operation;
an installation program that is used to help install the system on
target hardware;
electronic and paper documentation describing the system;
packaging and associated publicity that have been designed for
that release.
40
Factor
Description
Technical quality of
the system
Platform changes
41
Factor
Description
Competition
Marketing
requirements
Customer change
proposals
42
Key points
System building is the process of assembling system components
into an executable program to run on a target computer system.
Software should be frequently rebuilt and tested immediately after a
new version has been built. This makes it easier to detect bugs and
problems that have been introduced since the last build.
System releases include executable code, data files, configuration
files and documentation. Release management involves making
decisions on system release dates, preparing all information for
distribution and documenting each system release.
43