Christie Wilson Forewords by Jez Humble and Eric Brewer Prototypical release pipeline Build Publish Deploy grokking continuous delivery grokking continuous delivery Christie Wilson Forewords by Jez Humble and Eric Brewer MANNING S I helter Sland For online information and ordering of this and other Manning books, please visit www .manning .com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road, PO Box 761 Shelter Island, NY 11964 Email: [email protected] ©2022 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. The author and publisher have made every effort to ensure that the information in this book was correct at press time. The author and publisher do not assume and hereby disclaim any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from negligence, accident, or any other cause, or from any usage of the information herein. Manning Publications Co. Development editor: Ian Hough 20 Baldwin Road Technical development editor: Mark Elston Shelter Island, NY 11964 Review editor: Aleksandar Dragosavljević Production editor: Kathleen Rossland Copy editor: Sharon Wilkey Proofreader: Keri Hales Technical proofreader: Ninoslav Cerkez Typesetter: Dennis Dalinnik Cover designer: Leslie Haimes ISBN: 9781617298257 Printed in the United States of America To my daughter, Alexandra, my most important delivery to date! brief contents P 1 I 1 art ntroducIng contInuous delIvery 1 Welcome to Grokking Continuous Delivery 3 2 A basic pipeline 15 P 2 K art eePIng software In a delIverable 35 state at all tImes 3 Version control is the only way to roll 37 4 Use linting effectively 67 5 Dealing with noisy tests 87 6 Speeding up slow test suites 109 7 Give the right signals at the right times 143 P 3 m 175 art aKIng delIvery easy 8 Easy delivery starts with version control 177 9 Building securely and reliably 203 10 Deploying confidently 233 vii viii brief contents P 4 cd 267 art desIgn 11 Starter packs: From zero to CD 269 12 Scripts are code, too 305 13 Pipeline design 331