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
CSC509 Lecture 12
javiergs
PRO
0
160
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
RubyLSPのマルチバイト文字対応
notfounds
0
120
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
役立つログに取り組もう
irof
28
9.6k
ヤプリ新卒SREの オンボーディング
masaki12
0
130
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.1k
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
910
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
Remix on Hono on Cloudflare Workers
yusukebe
1
280
Featured
See All Featured
Visualization
eitanlees
145
15k
Typedesign – Prime Four
hannesfritz
40
2.4k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
RailsConf 2023
tenderlove
29
900
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Why Our Code Smells
bkeepers
PRO
334
57k
4 Signs Your Business is Dying
shpigford
180
21k
Writing Fast Ruby
sferik
627
61k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
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