+ All Categories
Home > Documents > Release Management

Release Management

Date post: 16-Apr-2017
Category:
Upload: ricardocribeiro
View: 1,551 times
Download: 1 times
Share this document with a friend
31
> TO RRE DE M ONSANTO > R .A FO NSO PR A Ç A ,30,13º > M IRAFLO RES > 1495-046 A LG ÉS > T:+351210308900 > F:+351210308901 > E:INFO @ SAFIRA.PT > W W W .SAFIRA.PT Release Management 29.10.2009 Release Management War Story
Transcript
Page 1: Release Management

> 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

Page 2: Release Management

> 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)

Page 3: Release Management

> 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

Page 4: Release Management

> 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

Page 5: Release Management

> 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

Page 6: Release Management

> 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

Page 7: Release Management

> 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

Page 8: Release Management

> 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

Page 9: Release Management

> 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

Page 10: Release Management

> 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

Page 11: Release Management

> 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

Page 12: Release Management

> 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

Page 13: Release Management

> 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

Page 14: Release Management

> 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

Page 15: Release Management

> 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

Page 16: Release Management

> 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

Page 17: Release Management

> 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

Page 18: Release Management

> 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

Page 19: Release Management

> 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

Page 20: Release Management

> 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

Page 21: Release Management

> 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

Page 22: Release Management

> 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

Page 23: Release Management

> 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

Page 24: Release Management

> 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

Page 25: Release Management

> 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

Page 26: Release Management

> 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

Page 27: Release Management

> 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

Page 28: Release Management

> 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

Page 29: Release Management

> 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

Page 30: Release Management

> 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

Page 31: Release Management

> 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


Recommended