Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Release Faster
Search
David Cramer
September 14, 2013
Programming
12
1.3k
Release Faster
PyCon APAC 2013
David Cramer
September 14, 2013
Tweet
Share
More Decks by David Cramer
See All by David Cramer
Mastering Duct Tape (PyCon Balkan 2018)
zeeg
2
860
Open Source as a Business (PyCon SG 2014)
zeeg
0
320
Angular.js Workshop (PyCon SG 2014)
zeeg
0
220
Redis Hacks
zeeg
3
210
Architecting a Culture of Quality
zeeg
2
310
Open Source as a Business (EuroPython 2013)
zeeg
18
17k
Building to Scale (PyCon TW 2013)
zeeg
18
1.3k
Building to Scale
zeeg
28
24k
Lessons in Testing - DjangoCon 2012
zeeg
8
1.4k
Other Decks in Programming
See All in Programming
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Better Code Design in PHP
afilina
PRO
0
130
Ethereum_.pdf
nekomatu
0
470
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
200
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
ヤプリ新卒SREの オンボーディング
masaki12
0
130
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
200
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
150
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.3k
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Six Lessons from altMBA
skipperchong
27
3.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Raft: Consensus for Rubyists
vanstee
136
6.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Done Done
chrislema
181
16k
Happy Clients
brianwarren
98
6.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Being A Developer After 40
akosma
87
590k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Transcript
RELEASE FASTER David Cramer twitter.com/zeeg Sunday, September 15, 13
Sunday, September 15, 13
I work on "Developer Productivity" Sunday, September 15, 13
(No one knows what that means) Sunday, September 15, 13
I also build Sentry Sunday, September 15, 13
"How do we release faster?" Sunday, September 15, 13
Continuous Deployment (n) Shipping new code as soon as it's
ready Sunday, September 15, 13
# Update the site every 5 minutes */5 * *
* * cd /www/example.com \ && git pull \ && service apache restart Sunday, September 15, 13
Continuous Deployment (n) Shipping new code as soon as it's
ready Sunday, September 15, 13
Review Integration Deploy Failed Build Reporting Rollback Commit Sunday, September
15, 13
Better Testing Simplify Development Automate Releases Feature Gates Code Review
Sunday, September 15, 13
A Dropbox tale.. Sunday, September 15, 13
"Go through these [extremely manual] instructions to setup a development
VM" Sunday, September 15, 13
Sunday, September 15, 13
"Why don't we just use Vagrant?" Sunday, September 15, 13
Optimize the Bootstrap Sunday, September 15, 13
Bootstrap affects newly hired developers Sunday, September 15, 13
Bootstrap affects rebuilding environments Sunday, September 15, 13
Bootstrap affects time to run tests Sunday, September 15, 13
Bootstrap affects our sanity Sunday, September 15, 13
vagrant up ⇢ provision.sh Sunday, September 15, 13
Remove Dependencies Sunday, September 15, 13
You cannot reproduce your production environment Sunday, September 15, 13
Stop Trying Sunday, September 15, 13
Do you really need Apache? RTQDCDN[PQV Sunday, September 15, 13
Do you really need HAProxy? UGTKQWUN[! Sunday, September 15, 13
Do you really need RabbitMQ? JQYCDQWV4GFKU! Sunday, September 15, 13
Do you really need Zookeeper? PQRG Sunday, September 15, 13
Do you really need Hadoop? NQN Sunday, September 15, 13
Do you really need Anything? Sunday, September 15, 13
Utilize your build servers for complicated dependencies Sunday, September 15,
13
Find Your Bottlenecks [QWRTQDCDN[FQP VPGGFC8/KH[QWJCXGGPIKPGGTU Sunday, September 15, 13
Better Testing Simplify Development Automate Releases Feature Gates Code Review
Sunday, September 15, 13
Culture vs Tooling Sunday, September 15, 13
Make Testing Easier Ensure you want to write tests Sunday,
September 15, 13
"Oh look, a test I can copy/paste" Sunday, September 15,
13
Encourage building better testing tools and paradigms Sunday, September 15,
13
pip install pytest Sunday, September 15, 13
pip install flake8 Sunday, September 15, 13
pip install mock Sunday, September 15, 13
Your goal is to make testing accessible Sunday, September 15,
13
Automatically test individual commits to ensure every change is stable
Sunday, September 15, 13
Sunday, September 15, 13
Test Continuously Before code review (lint) Sunday, September 15, 13
Test Continuously During code review Sunday, September 15, 13
Test Continuously Post-code review (merge) Sunday, September 15, 13
Optimize test execution time to deliver feedback ASAP Sunday, September
15, 13
Sunday, September 15, 13
Keep a tight Feedback Loop PQQPGYCPVUVQHKPFQWVVJGPGZVFC[VJCVVJGKTEQFGYCUDTQMGP Sunday, September 15, 13
Prevent mistakes by blocking commits which fail the build cycle
Sunday, September 15, 13
Failed builds won't deploy Sunday, September 15, 13
Failed builds won't merge Sunday, September 15, 13
Better Testing Simplify Development Automate Releases Feature Gates Code Review
Sunday, September 15, 13
Mandatory Code Review Sunday, September 15, 13
Sunday, September 15, 13
Use Code Review to sanity check code Sunday, September 15,
13
Use Code Review to influence testing culture Sunday, September 15,
13
Use Code Review to educate developers Sunday, September 15, 13
Use Code Review to decrease cycle time Sunday, September 15,
13
"Does this change look sane?" Sunday, September 15, 13
"No, this will break X, Y, and Z" FKF[QWGXGPMPQY:YCUCVJKPI! Sunday,
September 15, 13
Aim for Quality Patches Sunday, September 15, 13
Changes happen outside of master causing master to be the
new stable CMCVKRQTVTWPM Sunday, September 15, 13
Better Testing Simplify Development Automate Releases Feature Gates Code Review
Sunday, September 15, 13
Choose your Audience Sunday, September 15, 13
Releasing a feature internally can be as effective as externally
Sunday, September 15, 13
Use feature gates to limit the audience your change affects
Sunday, September 15, 13
Gargoyle at Disqus Sunday, September 15, 13
from gargoyle import gargoyle def my_view(request): if gargoyle.is_active('awesome', request): return
'my new awesome feature' else: return 'boring old version' Sunday, September 15, 13
Better Testing Simplify Development Automate Releases Feature Gates Code Review
Sunday, September 15, 13
Look at Heroku Sunday, September 15, 13
$ heroku create sushi Creating sushi... done http://sushi.herokuapp.com/ |
[email protected]
:sushi.git
$ git push heroku master ----> Heroku receiving push ----> Rails app detected ----> Compiled slug size is 8.0MB http://sushi.herokuapp.com deployed to Heroku Sunday, September 15, 13
Continuous deployment is not deploying every commit Sunday, September 15,
13
Focus on the ability to release every commit, not actually
doing it Sunday, September 15, 13
Review Integration Deploy Failed Build Reporting Rollback Commit Sunday, September
15, 13
Stage Release TGNGCUGECPOGCPYJCVGXGTKVPGGFUVQYKVJKP[QWTQTICPK\CVKQP Sunday, September 15, 13
Closing Thoughts Sunday, September 15, 13
Quality over Quantity PQUGTKQWUN[ Sunday, September 15, 13
Scale culture through tooling Sunday, September 15, 13
Your problems are not unique Sunday, September 15, 13
Thank You! (p.s. Tokyo is amazing) twitter.com/zeeg Sunday, September 15,
13