Date post: | 16-Apr-2017 |
Category: |
Documents |
Upload: | ricardocribeiro |
View: | 1,551 times |
Download: | 1 times |
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Release Management
War Story
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
2
“Release Management can be a complex topic, so any attempt to cover it in a single article would be a mistake.”, by Mike Drupeau and Sudesh Oudi (“Release Management: Where to Start”, article)
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
SummaryWhat is Release ManagementMain Rules“On Job” examples
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
4
What is Release Management
PlanningBuildingTestingDeploying
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
5
Goals
Deployment method
Don’t mess stable environments
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
6
RM’s Life Cycle
ChangeRequest
/New
Feature Development
DeploymentQUA
Test &Quality
Assurance
Acceptance
DeploymentPRD
Support
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Main Rules
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
8
Developers
Do not work outside managed workspaces
Stay synchronized
Check in regularly
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
9
Release Manager
Developing/Branching policies
Have a mainline
Control/manage build process
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
10
Branching Guidelines
Branch only when necessary
Branch late
Branch instead of freeze
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
11
Building Guidelines
Common Build tool
Build regularly
Keep build logs and outputs
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
“On Job” Examples
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Microsoft Visual Source Safe (VSS)
Microsoft Visual Build
13
Tools
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
14
VSS
Exclusive checkouts
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009 15
Visual BuildRuns every night (status e-mail)
Build fails => responsible pays (increases check in responsability)
Build set to deployment folder (release manager gets the version to deploy)
Database not included
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
16
Database Deployment
Patches folder (includes pending scripts file [psf])
1 release => 1 SQL patch file
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
17
Database Deployment
Stored Procedure (SP) [developed & tested] => SP into psf
Table created/modified => generated SQL code into psf
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
18
Web DeploymentDev folder with all web projects
Deployment folder with all build projects
Developers only checkout projects/files in dev folder
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
19
Deployment CycleQUA
Deploy[NF1]
BF1
QUA Deploy[BF1]
…BF N
QUA Deploy[BFN]
PRD Deploy
[NF1,BF1, …, BFN]
NF1
NF – New Feature
BF – Bug Fix
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
20
Deployment Cycle
NF – New Feature
BF – Bug Fix
QUA Deploy[NF1]
BF1NF2
QUA Deploy
[BF1,NF2]
…BF N
QUA Deploy[BFN]
PRD Deploy
[NF1,BF1, …, BFN]
NF1
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
21
Deployment Cycle
NF – New Feature
BF – Bug Fix
QUA Deploy[NF1]
BF1NF2
QUA Deploy
[BF1,NF2]
…BF N
QUA Deploy[BFN]
PRD Deploy
[NF1,BF1, …, BFN]
NF1
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Problems (PRD Deploy)
SQL patches with commentse.g., new columns on table
1 release => 1 SQL patch
22
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Problems (PRD Deploy)Web projects with comments
e.g., methods with new parameters
Web projects (Back Office) with comments
e.g., new textbox
23
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
New Deploy Decisions
Release Management excel file
Database1 new feature/bug fix => 1 patch fileSP signature modification =>SP name change (to avoid unnecessary propagation)
24
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
New Deploy Decisions
Web projectNew feature => new branch (branch only when it’s necessary)
Method signature modification => method name change
25
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
New Deploy Decisions
Release ManagerOnly deploys in PRD accepted SQL patchesBranch deployed => merge with the dev folder version
MUCH MORE WORK TO DO, BUT LESS RISK
26
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Today’s Problems
Decide when to branch
Release Manager merging when deploying (too costly)
Still waiting to clean the code when the problems appeared
27
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
Your War Story
…
28
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
29
Q&A
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
ReferencesWikipedia
“7 Ways to Improve Your Software Release Management”
Release Management (Becta)
“Release Management: Where to Start?”
30
> TORRE DE MONSANTO > R. AFONSO PRAÇA, 30, 13º > MIRAFLORES > 1495-046 ALGÉS > T: +351210308900 > F: +351210308901 > E: [email protected] > WWW.SAFIRA.PT
Release Management 29.10.2009
31
The end