continuous delivery - scania connected services - nfi testforum 2014

Post on 10-May-2015

1.165 Views

Category:

Presentations & Public Speaking

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Presentation about Continuous Delivery at Scania Connected Services by Anders Lundsgård and Peter Sandberg. The presentation was held in Stockholm the 9th of April on NFI Testfourm 2014.

TRANSCRIPT

Continuous Delivery Daily releases to production

Anders LundsgårdPeter Sandberg

Engineers, Scania Connected Services

Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

from ”the agile manifesto”

Continuous DeliveryDeployment

ReleaseQuality

Do you have the guts to deploy to production 50 times a day!?

This is Agile!

© Bestoutcome Ltd 2014

This is Agile!

Weeks

Months!

ProdLast Mile

http://www.perforce.com/continuous-delivery-report

Why Continuous Delivery?

Major measure for Continuous Delivery

CYCLE TIME

”How long would it take your organization to deploy a change [to production] that involves just one single line of code? Do you do this on a repeatable, reliable basis?”

Mary and Tom PoppendieckImplementing Lean Software Development

Key koncepts for CD

• Test Driven Development• Deployment Pipeline• Continuous Integration• Configuration Management• Feature Toggles• A/B tests• Always On

• Tear the walls

Cultural changes

Technical patterns

Technical patterns

QA in Continuous Delivery

Test Driven Development

Design Code Test

CodeTest

Design

Deploy

Deploy

Code in to VCS Manual work

Prod

Prod

Test Pyramid

Unit Tests

Integration Tests

GUITests

Manual ”inspection”

Test Ice Cream?

Unit Tests

Integration Tests

GUI Tests

Manual Regression

Test movement

Communication via error reports Communication face to face

Tests executed in desktop environment Tests into the Deployment Pipeline

GUI-oriented tests Tests towards service layer

Test specific dev environment Same dev environment as developers

Separated test teams Embedded testers

Deployment Pipeline

Deployment Pipeline

Commit Stage Acceptance Stage Load Stage Deploy Stage

Compile Unit Test Analysis Packaging Acc. Deploy

Acc. Tests Exploraty Tests

Load Tests

Perf Tests

Staging Deploy

Prod Deploy

.....

…..

Deployment Pipeline

Commit Stage Acceptance Stage Load Stage Deploy Stage

Compile Unit Test Analysis Packaging Acc. Deploy

Acc. Tests Exploraty Tests

Load Tests

Perf Tests

Staging Deploy

Prod Deploy

.....

…..

NO IDE Build, Test or Deploy!!

Continuous Integration

• Maintain a Single Source Repository• Automate the Build• Make Your Build Self-Testing• Everyone Commits To the Mainline Every Day• Every Commit Should Build the Mainline on an Integration

Machine• Keep the Build Fast• Test in a Clone of the Production Environment• Make it Easy for Anyone to Get the Latest Executable• Everyone can see what's happening• Automate Deployment

Configuration Management

R&D IT

Config file here and there…

Click here and there …

First script #1 and then script

#2…

Failover this and that…

Register key here and there …

First alias #1 and then alias

#2…

Release plans

Single source of truthVCS

Feature Branch

Dev Branch #1

Main

Release Branch #1

Dev Branch #2

Feature Toggle

Main

GUI

Business Logic

Database

Feature Toggles

A/B tests

A/B tests

20%of users

Always On

DB

Web1 Web2

Load balancer

1. Add new schema2. Write to both schemas3. Backfill historical data4. Read from new schema5. Remove writes to old schema6. Remove old schema

Cultural change

1. Tear the walls2. Empower the engineers

DevOpsOperations people are rewarded for things

not going wrong.Developers are rewarded for getting

releases out.

And those two goals are in conflict.

Jez Humble: co-author of the book: Continuous Delivery

If I had an idea last night……I coded it up this morning…

…I got it on the site this afternoon…

and tomorrow I got data.

In a couple of weeks I’ve learned as much as I would

have in over a year in a regular system.

http://www.infoq.com/presentations/Facebook-Moving-Fast-at-Scale

At the end of the day it is the person who writes the code who is

responsible for whether or not it works.

Are we making Is Prod

doing well?

Code metrics

Implemented CD i 2 months!

The Software Revolution Behind LinkedIn’s Gushing Profits

- We wanted to be at the point where… as soon as they were checking in their code… it was qualified and releasable…

- We were able to scale the team to hundreds of developers.

- It was a pretty big risk the business took, to say to its engineering team, you’re going to run across a bridge and burn it behind you.

2011

Kevin Scott

Resources

ISBN-13:978-0321601919

www.continuousdelivery.eu

Contact

• Peter Sandberg– peter.sandberg@scania.com

• Anders Lundsgård– anders.lundsgard@scania.com

top related