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
330
Angular.js Workshop (PyCon SG 2014)
zeeg
0
220
Redis Hacks
zeeg
3
220
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
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
今年一番支援させていただいたのは認証系サービスでした
satoshi256kbyte
1
250
useSyncExternalStoreを使いまくる
ssssota
6
1k
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
770
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
110
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
nekko cloudにおけるProxmox VE利用事例
irumaru
3
420
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
130
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
300
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
良いユニットテストを書こう
mototakatsu
5
1.9k
Featured
See All Featured
Done Done
chrislema
181
16k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Embracing the Ebb and Flow
colly
84
4.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
4 Signs Your Business is Dying
shpigford
181
21k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Optimizing for Happiness
mojombo
376
70k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Become a Pro
speakerdeck
PRO
26
5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
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