5. scm

289
-1

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
289
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

5. scm

  1. 1. Software Configuration Management (SCM) Topics : Necessity Of SCM Baseline SCM Process SCI Version Control Change Control Configuration Audit Status Reporting SCCS
  2. 2. What is SCM ?  When you build a computer system, changes happen, And because it happens, you need to manage it effectively.  Deliverables of large s/w project consist of number of objects, e. g. source code, design document, SRS document, test document, user manual etc. These objects are referred & monitored by number of s/w engs. throughout the lifecycle of the system  The state of these objects at any point of time is called ‘configuration’ of s/w product.
  3. 3. SCM ….. (Continued)  Software Configuration Management is also called as a ‘Change Management’.  It is an umbrella activity that is applied throughout the s/w process.  Changes are dynamic, they can occur at any time to the system & therefore SCM activities are developed to : – Identify the change – Control the change – Ensure that the change is properly implemented – Report changes to others who may have an interest
  4. 4. SCM ….. (Continued)  It is a set of activities that are designed to manage changes by – Identifying work products that are likely to change. – Establishing relationship between them. – Defining mechanism for managing different. version of these work products. – Controlling the change imposed. – Auditing & Reporting on changes made.
  5. 5. SCM ….. (Continued)  SCM is different than s/w support – s/w support is a set of s/w engineering activities that occur after s/w has been delivered to the customer. – SCM is a set of tracking & control activities that begin when a s/w engineering project begins & terminates only when the s/w is taken out of operation.
  6. 6. SCM ….. (Continued)  SCM is viewed as a SQA activity that is applied throughout the s/w process.  The output of the s/w process is information that may be divided into 3 broad categories : 1. Computer Programs 2. Work products that describe the computer programs ( Documents) 3. Data ( contained within the program or external to it) – All these items collectively called as s/w configuration.
  7. 7. Elements of Configuration Management System 1. Component Elements  A set of tools coupled within a file management system (e.g. database) that enable access to & management of each s/w configuration item. 2. Process Elements  A collection of procedures & task that define an effective approach to change management.
  8. 8. Elements of Configuration Management System ….. (Continued) 3. Construction Elements  A set of tools that automate the construction of the s/w by ensuring that the proper set of validated components ( i.e. correct version) has been assembled. 3. Human Elements  To implement effective SCM, the s/w team uses a set of tools & process features.
  9. 9. Necessity Of SCM  The most important reason for configuration management is to control the different deliverable objects. If SCM is not used then the following problem may occur: 1. Inconsistency problem when objects are replicated. – Consider a scenario where all the s/w engineers are involved in coding phase. They have their own local copy of the source code. – If any engineer is making modifications to his local copy, he is expected to intimate the changes to other engineers so that such modification is reflected in his teammates copies also (to maintain consistency) – But many times an engineer makes modifications only to his copy & may forget to intimate the changes to his teammates. – Finally when the product is integrated, it does not work. – Therefore, when several team members work on developing an object, it is necessary for them to work on a single copy of the object, otherwise inconsistency may arise.
  10. 10. Necessity Of SCM …(Continued) 2. Problems associated with concurrent access. – If engineers are working on a single copy of the object at same time, then inconsistency can still occur. – For eg – if the engineers are concurrently accessing any object ( modifying the code), then while saving the work, one engineer’s work can be overwritten by other engineer’s work. ( Leading to inconsistency) 2. Providing a stable development environment. – When a project is under construction, the team members need a stable environment for progress. – For eg – suppose you want to integrate module A with B & C; you can’t make progress if the developer of module C keeps changing C; this can be frustrating if a change to module C forces you to recompile A. – This problem can be avoided by using configuration management, where the manager freezes the object to form a baseline.
  11. 11. Necessity Of SCM …(Continued) – When any user needs any of the object to be changed, he is provided with a copy of a baseline item. – The user then makes changes to his private copy. Only if the user is through with all modifications in his private copy, change is updated to form the new baseline. 4. System accounting & maintaining status information – System accounting keeps track of who made a particular change & when the change was made.
  12. 12. Baseline  A baseline is a SCM concept that helps us to control change without seriously impeding justifiable change.  The IEEE defines a baseline as : “A specification or product that has been formally reviewed & agreed upon, that thereafter serves as the basis for further development, and that can be changed only through formal change control procedures.”
  13. 13. Baseline …(Continued)  Before a software configuration item (SCI) becomes a baseline, changes may be made quickly & informally.  However, once the baseline is established, changes can be made, but a specific, formal procedure must be applied to evaluate & verify each change.
  14. 14. Baseline …(Continued)  In the context of S.E. – a baseline is a milestone in the development of the s/w.  A baseline is marked by the delivery of one or more SCI that have been approved as a consequence of formal technical review.  For e.g. – the elements of the design model have been documented & reviewed. Errors are found & corrected. Once all parts of the model have been reviewed, corrected & then approved, the design model becomes a baseline.
  15. 15. Baseline …(Continued)
  16. 16. Baseline …(Continued)  Explanation for above fig. – – S.E. task produces one or more SCI’s. – After SCI’s are reviewed & approved they are placed in project database. – When member of s/w team wants to make modification to a baselined SCI, it should be copied from the project database into the engineer’s private workspace. – These extracted SCI’s can be modified only if SCM controls are followed.
  17. 17. S/w Configuration Item (SCI)  SCI is information that is created as a part of the s/w engineering process.  It can be a document, a entire suit of test cases, a named program component like a C++ function or a java applet.  Not only the SCI’s which are derived from different work products are placed in configuration control, but also some of the imp. tools like compilers, linkers, browsers, editors, other automated tools are also a part of configuration control.
  18. 18. SCI …(Continued)  Why these tools are placed as a part of Configuration control? – Because, these tools are used to produce documentation, source code & data, they my be available when changes to the s/w configuration are to be made. – It is possible that a new version of tool (e.g., a compiler) might produce different results than the original version – For this reason, tools, like the s/w that they help to produce, can be baselined as a part of a comprehensive configuration management process.
  19. 19. SCI …(Continued)  In reality, all SCI’s are organized to form configuration objects & is placed in project database with a single name.  A configuration object has a name, attributes & is connected to other objects by a relationship.
  20. 20. SCI …(Continued)  The configuration objects, Design Specification, DataModel, ComponentN, SourceCode & TestSpecification are each defined seperately.  Each of the object is related to others as shown by arrows.  A curved arrow indicates a compositional relation. i.e. DataModel & ComponentN are part of DesignSpecification.  A double headed straight arrow indicates an interrelationship.  If a change were made to the source code object, the interrelationship enables a s/w engineer to determine what other objects might be affected?
  21. 21. SCM Process  The SCM Process Defines the series of tasks that have 4 primary objectives : 1. To identify all items that collectively define the s/w configuration 2. To manage changes to one or more these items 3. To facilitate the construction of different versions of an application 4. To ensure that s/w quality is maintained as the configuration evolves over time.
  22. 22. SCM Process …(Continued)  To ensure that s/w quality is maintained as the changes are accepted over time, SCM tasks can be viewed as concentric layers.  5 SCM Tasks: 1. Identification 2. Change Control 3. Version Control 4. Configuration Auditing 5. Reporting SCI’s Identification Change Control Version Control Configuration Auditing Reporting
  23. 23. SCM Process …(Continued)  The software configuration items (SCI’s) flow outward through these layers throughout their lifetime.  So, they become a part of s/w configuration of one or more versions of an application or system.  When SCI moves through different layers, the actions specified for each & every layer need not be applied (not a must) to them.  E.g. – When a new SCI is created, it must be identified. However, if no changes are requested for the SCI, the change control layer does not apply. – Each & every SCI created is also assigned to a specific version of the s/w – The record of all these SCI’s (i.e. it’s name, creation date, version etc.) is maintained for configuration auditing purpose.
  24. 24. SCM Process …(Continued)  Identification of object in s/w configuration – To control & manage s/w configuration items, each should be separately named & then organized using an object oriented approach. – 2 types of objects can be identified: 1. Basic Objects 2. Aggregate Objects – Basic Object – is a unit of information that has been created by a s/w engineer during analysis, design, code or test. e.g. It might be a section of a requirement specification, part of design model, source code for a component etc.
  25. 25. SCM Process …(Continued) – Aggregate Object – is a collection of basic objects & other aggregate objects – Each object has a set of distinct features that identify it uniquely (i.e. name, a description, a list of resources & a realization) – An object name is a character string that identifies the object uniquely. – The object description is a list of data items that identify the SCI type represented by the object, change or version information. – For e.g. – by using the simple notation Class diagram <part –of> analysis model; Analysis Model <part-of> requirement specification; We can create hierarchy of SCI.
  26. 26. Change Control  For a large s/w engineering projects, uncontrolled changes rapidly leads to chaos.  Change control includes both human procedures & automated tools.  The change control process is illustrated below:
  27. 27. Change Control …(Continued)
  28. 28. Change Control …(Continued)
  29. 29. Change Control …(Continued)  Explanation for change control process : – A request for a change is submitted & evaluated to assess the merits, side effects, overall impact on other configuration objects, cost incurred on these changes etc. – The result of such evaluation is presented as a Change Report. – This report is verified by CCA (change control authority – a person or a group) who makes the final decision for approval or disapproval of change report. – For each approved change, ECO (engineering change order) is generated. The ECO describes  the change to be made  The constraints that must be respected  & the criteria for review & audit.
  30. 30. Change Control …(Continued) – The object (s) to be changed can be “checked out” of the project database, change is made, & appropriate SQA activities are applied. – The object (s) is then “checked in” to the database & then appropriate version control mechanisms are used to create the next version of the s/w. – These version control mechanisms, implement 2 important elements of change management: 1. Access Control 2. Synchronization Control
  31. 31. Change Control …(Continued) – Once the object has undergone formal technical review & has been approved, a baseline can be created. – Once a SCI becomes a baseline, ‘Project Level Change Control’ is implemented. – Now, to make a change, the developer must gain approval from the project manager or from CCA. – Once approved by CCA, these changes can be promoted for inclusion in next release. – Then built the new version if needed & then distribute the new version.
  32. 32. Version Control  When item is baselined, it become frozen. The term frozen means that the item can only be changed by creating a new version.  Version control combines procedures & tools to manage different versions of configuration objects that are created during the s/w process  A version control system is integrated with following capabilities: 1. A project database (repository) that stores all relevant configuration objects 2. A version management capability that stores all versions of configuration objects 3. A make facility that enables the engineers to collect all the configuration objects & construct the specific version of a software
  33. 33. Version Control …(Continued)  A number of version control systems establish a change set – – A change set is a collection of all changes that are required to create a specific version of a s/w. – It captures all changes to all files in the configuration along with the reason for changes & details of who made the changes & when.  Hence, for any application a number of named change sets can be identified. These named change sets enable the engineers to construct the version of the s/w by specifying change to baseline configuration.
  34. 34. Version Control …(Continued)  One representation of the different versions of a system is the evolution graph which is shown in the following figure.  Here, each node is a complete version of the s/w.  Each version is the collection of SCI’s
  35. 35. Configuration Audit  To ensure that the changes has been properly implemented, 2 methods are used : 1. Formal Technical Reviews 2. Software configuration audit 1. Formal Technical Reviews  Focuses on the technical correctness of the configuration object that has been modified.  The reviewers assess the SCI to determine consistency with other SCI’s or potential side effects.  The formal technical review must be conducted for all but the most trivial changes.
  36. 36. Configuration Audit …(Continued) 2. Software Configuration Audit  SCA assess configuration object for characteristics that are not considered during Formal Technical Reviews.  The audit answers the following questions : 1. Has the change specified in the ECO been made? Have any additional modifications been incorporated? 2. Has a formal technical review been conducted to assess technical correctness? 3. Has the s/w process been followed & have s/w engineering standards been properly applied? 4. Has the changes been highlighted in SCI? Have the change date & change author been specified? 5. Have SCM process been followed? 6. Have all related SCI’s been properly updated?
  37. 37. Configuration Audit …(Continued)  In some cases, the audit questions are asked as part of formal technical review.  When SCM is a formal activity, the SCM audit is conducted separately by the quality assurance group.  Such formal configuration audits also ensure that the correct SCI’s have been incorporated into a specific build & all documents are up-to- date & consistent with the version that has been built.
  38. 38. Status Reporting  Also called as ‘status accounting’, is a SCM task that answers the following questions : 1. What happened? 2. Who did it? 3. When did it happen? 4. What else will be affected?  The Status Reporting entry is made in the following conditions – SCI is assigned a new or updated identification – a change is approved by CCA – Whenever the configuration audit is conducted, the results are reported.
  39. 39. Status Reporting …(Continued)  Output from status reporting may be placed in an on-line database or a website, so that s/w developers or maintainers can access change information.
  40. 40. Source Code Control System (SCCS)  SCCS is a system for controlling changes to files of text (typically, the source code& documentation of s/w system)  It is an integral part of a s/w development & maintenance system known as ‘Programmers Workbench’  It was the 1st Source code revision control system.  Originally developed at Bell Labs in 1972 for IBM system.  It was later rewritten for UNIX  It is used to store versions in compact manner by minimizing the amount of disc space
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×