Docsity

Configuration managment, Lecture notes of Advanced Data Analysis

Partial preview of the text

Download Configuration managment and more Lecture notes Advanced Data Analysis in PDF only on Docsity!

Copyright © 2008 by The McGraw-Hill Companies, Inc. All Rights

By: Reecha Sharma

Assistant Professor

Galgotias University

Module V: Configuration

Management

What's the need of Configuration

Management?

 Changes—those due to the evolution of work products and

those due to requirement changes—take place continuously

in a software project. All these changes eventually get

reflected as changes in the files containing source, data, or

documentation. When multiple people create and change the

huge number of files in a software project, it can lead to

complications unless the changes are properly controlled.

 Configuration management (CM)—also known as software

configuration management (SCM)—is the aspect of project

management that focuses exclusively on systematically

controlling the changes so that such problems do not occur.

Examples configuration items

 Product concept specification

 Software project plans

 Software requirements specifications

 Software design descriptions

 Source code

 Database descriptions

 SCM procedures

 Software release processes

 Software test documents

 User documentation

 Maintenance documentation

Exercise: Two Different Situation

 Situation 1 : Two different change requests came from the customer.

The project manager assigned one request to Rao for implementation,

and the other to Meera. Both had to modify code for module X.

When Meera finished her modification, she saved the file for X,

inadvertently overwriting the changes Rao had made a day earlier.

 Situation 2 : Srinath's team was in good spirits. They had finished the

development on time, and the final testing had shown no bugs. The

software was released to the customer for implementation. The next

day Srinath received angry e-mails from the users and the customer,

reporting problems in the software. After frantic effort by the team,

the cause was found: The release version of the software contained an

older version of a key component.

CM Functionality Projects Require

 Give the states of the programs.You need this information to decide when to start testing or when to release the software.  Give the latest version of a program. Suppose that a program must be modified. Clearly, the modification must be carried out in the latest version; otherwise, earlier changes may be lost.  Handle concurrent update requests. Two programmers, in response to two different change requests, might change the same program concurrently. One of the changes could potentially overwrite the other change. Avoiding such a situation requires access control so that only one person can make changes to a program at a time. If multiple parallel changes are allowed, reconciliation procedures should be implemented to ensure that all changes are reflected in the final version.  Undo a program change. A change is made to a program (to implement a change request), but later a need arises to reverse this change request.  Prevent unauthorized changes or deletions. A programmer may decide to change some programs, only to discover that the change has adverse side effects. Access control mechanisms are needed to disallow unapproved changes.

CM Functionality Projects Require

 Provide traceability between requirement change requests and

program changes.

 Undo a requirement change. A requirement change request that

was implemented (by changing many programs) may later need to

be undone (perhaps because the users do not like the new

features).

 Show associated changes. Suppose a bug is found in a program, and

it is suspected that this bug came from the implementation of a

change request. It is desirable to review all changes made as a result

of that change request.

 Gather all sources, documents, and other information for the

current system.

Conventions for naming and

organization of files

 Naming program files (and document files) according to a

standard convention and keeping the files in specific

directories help in finding a desired file quickly. Proper

naming (for example, by using standard extensions) also

helps developers to readily understand the nature of file

contents without looking at the files. In addition, segregating

programs by their states into separate directories helps

developers to identify the program state easily.

Version control

 Version control is a key issue for CM and many tools are

available to help manage this task. Version control helps

preserve older versions of the programs whenever they are

changed. Without such a mechanism, the system cannot

support many of the required CM functions.

Access control

 Access control mechanisms ensure that only authorized people can

modify certain files and that only one person can modify a file at

any given time.

 Reconciliation procedures specify how two changes made

independently to a program can be merged to create a new

version that reflects both.

 Some CM mechanisms may be supported by a tool, whereas

others may require that the users perform them explicitly. For

example, version control may be carried out by a tool, but

capturing the state of a program may require the programmer to

explicitly maintain this information. The CM process defines all

steps needed to implement such mechanisms and explains how

these mechanisms are to be used in a project.

CONFIGURATION MANAGEMENT

PROCESS

 The CM process defines the sequence of activities that must

be performed in support of the CM mechanisms.

1. Planning and Setting Up Configuration Management

2. Perform Configuration Control

3. Status Monitoring and Audits

Step 2: Perform Configuration

Control

 Two main configuration control activities are performed: one that deals with managing the state transitions of programs (and documents), and one that deals with managing the change requests that must be implemented.  State transition management involves moving the items from one directory to another when the state changes and then creating versions when changes are made.  The following activities are part of implementing a change request:

  1. Accept the change request (with impact analysis).
  2. Set up a tracking mechanism.
  3. Check out configuration items that need to be changed.
  4. Perform the changes.
  5. Check in the configuration items.
  6. Take the item through its life cycle.

Step 3: Status Monitoring and Audits

Table : CM Audit Report for the XYZ Project Sequence Number Observation Responsible Complete By 1 Mails to be logged in to the Messages/User folder PL, DVs 06 Aug 2000 2 Reviewed sequence diagrams to be moved under VSS PL 06 Aug 2000 3 CM plan to be updated with the changed directory structure CC 05 Aug 2000 4 Completed sequence diagrams to be moved from users' area to the review area PL 06 Aug 2000 5 Update VSS to reflect the modifications in the storage structure CC 06 Aug 2000 6 ProjectDocs subfolder in Users folder to be cleaned up All 06 Aug 2000

The project's configuration controller generally conducts the CM audits. After a CM audit, a

report is usually issued that lists what needs to be done to keep the CM activities consistent with

the CM plan.

Controlled Environment

 Tools are used to manage the states and versions of items and

access to them.

 Many CM tools employ the check-in/check-out procedure for

controlling access and handling version control. The basic idea

behind this approach is as follows. A program is considered to be

in a controlled environment when it is in any state in which others

can use it. Once a program is in the controlled environment, it

cannot be modified, even by the original author, without proper

authorization , because others may be using it. To make an approved

change, the developer must check the program out of the

controlled environment.

Terminology: SCM Directories

 Programmer’s Directory (IEEE: Dynamic Library)

 Library for holding newly created or modified software entities.

 The programmer’s workspace is controlled by the programmer

only.

 Master Directory (IEEE: Controlled Library)

 Manages the current baseline(s) and for controlling changes

made to them.

 Entry is controlled, usually after verification.

 Changes must be authorized.

 Software Repository (IEEE: Static Library)

 Archive for the various baselines released for general use.

 Copies of these baselines may be made available to requesting

organizations.