ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
1
Continuous Delivery in
SoLoMo / EC
@jaric
2
Continuous Delivery
http://puppetlabs.com/blog/continuous-delivery-vs-continuous-deployment-whats-diff
It means every change is proven to be
deployable at any time.
3
I am CD!
CD
Continuous
Integration
Deployment
4
!
HOW WE DO?
The goal of Continuous Delivery is to enable a constant flow of changes
into production via an automated software production line.
5
Unit test
Functional testing
? Minimum acceptable code coverage : 70%
? Full test in your business logic (Model Layer)
? Preparing one scenario to test all environments
? The strictly line before our code going live
"
Testing Testing Testing
no doubt
6
? unit test
? coding style check
? syntax check
? PHP Mess Detector
? Copy/Paste Detector
#
In development phase
everything is automatic
pull req
update result
trigger branch build
jr. ?³½?³½
Õ¼¾§ŽŸ
7
In review phase
Do the right thing!
merge pull
trigger master build
create a git tag
trigger a package build
? pull the latest git tag
? create a dpkg package
? distribute to the internal APT server
sr. ?³½?³½
8
12
? We use runscope to test v1 and v2 apis
? There are 870 assertions for v2 api testing
? There are 637 assertions for v1 api testing
? Api host is api.int.qbon.com.tw
? The test result will show in HipChat
01 02Deploy to int Trigger API test
? int env is used to do
the functional test
deploy and test in int env
a build a day keeps bugs away
9
Salt
minion
Salt Master
!
Deployment tool
Fast, scalable and flexible systems management software
$
Salt
minion
Salt
minion
10
%
Automated Testing
Uses Requests, Assertions and Variables
More Advanced assertions can be created by using script
Scheduling tests
Notifications
Runscope Radar
11
OUR Testing Flow
int gamma
sandbox
production
#
1500+ assertions
#
1500+
assertions
#
1500+ assertions
deploy
deploy
deploy
12
In deploy phase
just one click
QA
Devs.
Users
PM
Editor
13
Contribution
&
0
15
30
45
60
during one month
Before After
14
Comparing the number of release
Before : every 2 weeks
After : three times a day
0
7.5
15
22.5
30
Jul Aug Sep Oct Nov Dec
S1 issues
15
Number of S1 issues
16
Key factors
'
17
Thomas Yu Hippo Ho Cara Wang
Goalkeeper
key factors in adopting continuous delivery
18
Thank You
Do the RIGHT thing!
(

More Related Content

Continuous delivery in Qbon