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.2k
Building to Scale
zeeg
28
24k
Lessons in Testing - DjangoCon 2012
zeeg
8
1.4k
Other Decks in Programming
See All in Programming
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
170
Outline View in SwiftUI
1024jp
1
220
外部システム連携先が10を超えるシステムでのアーキテクチャ設計・実装事例
kiwasaki
1
240
Vue SFCのtemplateでTypeScriptの型を活用しよう
tsukkee
3
1.6k
讓數據說話:用 Python、Prometheus 和 Grafana 講故事
eddie
0
370
Sidekiqで実現する 長時間非同期処理の中断と再開 / Pausing and Resuming Long-Running Asynchronous Jobs with Sidekiq
hypermkt
6
2.8k
役立つログに取り組もう
irof
27
8.9k
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
4
570
カスタムしながら理解するGraphQL Connection
yanagii
1
1.3k
qmuntal/stateless のススメ
sgash708
0
120
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
230
Why Spring Matters to Jakarta EE - and Vice Versa
ivargrimstad
0
1.1k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
Designing for Performance
lara
604
68k
Happy Clients
brianwarren
97
6.7k
Ruby is Unlike a Banana
tanoku
96
11k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
A Philosophy of Restraint
colly
203
16k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
Typedesign – Prime Four
hannesfritz
39
2.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
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