continuous delivery with focus on ci - scania connected services - talentum events 2014

27
August 26 2014, Talentum Events Continuous Delivery – Focus on Continuous Integration TESTING FORUM 2014

Upload: anders-lundsgard

Post on 20-Jun-2015

362 views

Category:

Presentations & Public Speaking


0 download

DESCRIPTION

Presentation about Continuous Delivery and Continuous Integration at Scania Connected Services by Anders Lundsgård and Peter Sandberg. The presentation was held in Stockholm the 26th of August on Talentum Events 2014. Video recording (in Swedish) on YouTube: http://youtu.be/CKkgxU_jhIs http://www.talentumevents.se/events/testing+forum14/a2239219

TRANSCRIPT

Page 1: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

August 26 2014, Talentum Events

Continuous Delivery – Focus on Continuous Integration TESTING FORUM 2014

Page 2: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Scania engineers

• Anders Lundsgård– 4 years as Consultant– 6 years at Scania

• Release Responsible• Integrator• Architect

• Peter Sandberg– 7 years at ABB & Ericsson– 3 years at Scania

• Test Leading• Test Automation• Scrum Master

Page 3: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Agile what?

Waterfall”Agile”

Continuous IntegrationContinuous Delivery

DevOps

Page 4: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

“Agile”

© Bestoutcome Ltd 2014

Project planning

Last mile

Page 5: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Agile what?

Waterfall”Agile”

Continuous IntegrationContinuous Delivery

DevOps

Agile teams within the Enterprise An Agile Enterprise

Page 6: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Continuous Delivery ReleaseQuality

Page 8: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Key concepts for Continuous Delivery

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

• Tear the walls

Cultural changes

Technical patterns

Page 9: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

QAQA in Continuous Delivery

Page 10: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Test Pyramid

Unit Tests

Integration Tests

GUITests

Manual ”inspection”

Page 11: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

What gives quality?

I’m Done!

Page 12: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Unit Tests

Integration Tests

GUI Tests

Manual Regression

Test ice-cream cone

Page 13: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Our 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

Page 14: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Deployment Pipeline

Page 15: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

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

.....

…..

Page 16: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

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

.....

…..

Page 17: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Claim culture

Page 18: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

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

Page 19: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Feature Branch

Dev Branch #1

Main

Release Branch #1

Dev Branch #2

Page 20: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Feature Toggle

Main

GUI

Business Logic

Database

Page 21: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014
Page 22: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014
Page 23: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014
Page 24: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Google Trends

DevOps

Continuous Delivery

The Lean Startup

Continuous Integration

Page 25: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Challenge – to you tester

Code your first test and see it execute in the CI environment

If there is no CI environment. Suggest to create one!

Page 26: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Resources

ISBN-13:978-0321601919

www.continuousdelivery.eu

Page 27: Continuous Delivery with focus on CI - Scania Connected Services - Talentum Events 2014

Contact

• Peter Sandberg– [email protected]

• Anders Lundsgård– [email protected]– @anderslundsgard