Leanpub Header

Skip to main content

CI/CD Anti-Patterns

Lessons from Real-World CI/CD Failures

CI/CD is everywhere in modern software engineering—but most teams still struggle to make it deliver real results. CI/CD: Anti-Patterns exposes 62 common pitfalls and shows how to turn slow, error-prone pipelines into fast, reliable delivery loops that actually work.

Minimum price

$20.00

$30.00

You pay

$30.00

Author earns

$24.00
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
About

About

About the Book

Nearly every software company claims to be “doing CI/CD,” yet many still struggle with slow releases, fragile pipelines, late discovery of defects, and a general lack of confidence in the software packages produced by the CI/CD pipeline, let alone deploying them to production.


Many of these failures can be traced to one or more of the 62 anti-patterns detailed in this book, organized into the

following categories:


  • Lacking real delivery
  • Non-Testing CI Steps
  • Test Automation is the Core of CI/CD
  • E2E Test Automation
  • CT Features Missing in Most CI/CD Servers
  • Mindset and Opinions
  • General Practices
  • Non-Functional Testing in CI/CD
  • CI/CD Hosting
  • Team Involvement
  • Leadership


This book will help you recognize and avoid these pitfalls, paving the way for achieving true Continuous Delivery.

Share this book

Author

About the Author

Zhimin Zhan

Zhimin Zhan is the founder and principal agile testing coach of AgileWay Pty Ltd, Australia. As an advisor and coach, he helps organisations implement test automation using Continuous Testing with open technologies, such as Selenium WebDriver / Appium. Zhimin is the creator of TestWise, the next-generation functional testing tool that supports functional test refactorings, and BuildWise, an international award-winning Continuous Testing Server. Zhimin is a frequent speaker and author of 14 books on software testing and programming. He shares his test automation and CI experience on Substack and Medium.

Contents

Table of Contents

Preface

  1. Purpose of the book
  2. What is unique about this book?
  3. Who the book is for?
  4. Send me feedback

Introduction

  1. Continuous Integration (CI)
  2. Continuous Delivery and CI/CD
  3. Who does “CI/CD”?
  4. 80+% of CI/CD effort is about Test Automation
  5. Continuous Testing

No Real Delivery

  1. Anti-Pattern: Unclear on delivery destination
  2. Anti-Pattern: Fear to deploy to a test-ready environment
  3. Anti-Pattern: Auto production deployment
  4. Anti-Pattern: CI/CD is disconnected from production releases
  5. Wrap-up

Non-Testing CI Steps

  1. Anti-Pattern: Not fully-automated CI steps
  2. Anti-Pattern: Manual database schema migration
  3. Anti-Pattern: CI Engineers lack automation skills
  4. Anti-Pattern: Slow compile/build/package
  5. Anti-Pattern: Fixated with code coverage
  6. Anti-Pattern: No auto-deployment to internal server environments
  7. Anti-Pattern: Lack of notification to the team about CI/CD build results

Test Automation is the Core of CI/CD

  1. Anti-Pattern: No Automated Testing in CI
  2. Anti-Pattern: Automated Test Execution Not Enabled in CI
  3. Anti-Pattern: Remove failed automated tests to pass the run
  4. Anti-Pattern: Long-Running Unit Tests in CI
  5. Anti-Pattern: Frequent Unit Test Failures in CI
  6. Anti-Pattern: Long-Running Integration Tests in CI
  7. Anti-Pattern: Automated Tests Not Run Often in CI
  8. Anti-Pattern: No Regression Testing in CI/CD
  9. Wrap-up

E2E Test Automation

  1. Anti-Pattern: No Automated Acceptance Testing in CI/CD
  2. Anti-Pattern: Sequential Executing E2E Tests in CI/CD
  3. Anti-Pattern: Avoid Running the Entire Suite—Split It into Smaller Suites
  4. Anti-Pattern: Prioritizing Tests in Execution
  5. Anti-Pattern: Fake Automated Acceptance Testing
  6. Anti-Pattern: E2E Test Scripts are Not in an Independent Git Repository
  7. Anti-Pattern: Headless Browser Testing
  8. Anti-Pattern: Long execution time > 1 hour
  9. Anti-Pattern: Parallel Execution on one machine
  10. Wrap-up

CT Features Missing in Most CI/CD Servers

  1. View Test Scripts in the CT Server Web Interface
  2. Capture Application Screenshots on E2E Test Failure
  3. Quick navigation to the failed test line
  4. Auto-Retry Failed E2E Test on Another Build Agent
  5. Manually Rerun Tests
  6. Dynamic Test Execution Ordering
  7. Distribution rules
  8. Delay completion
  9. Anti-Pattern: Being constrained by a vendor’s CI/CD server limitations and do nothing
  10. Wrap-up

Mindset

  1. Anti-Pattern: “Test Automation in CI Slows Down Development”
  2. Anti-Pattern: “Prefer expensive commercial CI/CD solutions over free open-source ones”
  3. Anti-Pattern: “API Testing as E2E Test Automation in CI/CD is Enough”
  4. Anti-Pattern: “E2E Test Automation Is Inherently Fragile, Keep Them To a Minimum”
  5. Anti-Pattern: “E2E Test Automation Is Too Expensive, So we don’t include in CI/CD”
  6. Anti-Pattern: Assuming Automated Tests Will Always Pass After Creation
  7. Anti-Pattern: “E2E Test Automation Scripts Must Use the Same Language as the Application Code”
  8. Anti-Pattern: “Set up a CI/CD Solution Takes a Long Time and Costly”
  9. Anti-Pattern: Drawn to flashy, smoke-and-mirror features like Test Replay
  10. Wrap-up

General Practices

  1. Anti-Pattern: Not the exact the same release package for different target environments.
  2. Anti-Pattern: Underinvesting in CI/CD Hardware
  3. Anti-Pattern: Automating the Tear Down and Setup of the CI Servers Daily
  4. Anti-Pattern: No Admin Access for Developers and Testers in CI/CD
  5. Anti-Pattern: Only limited to execute one specific type of automated tests in one language
  6. Anti-Pattern: A Single CI/CD Server Serving the Entire Company/Division
  7. Anti-Pattern: No Daily Builds
  8. Anti-Pattern: No incremental version or build number during internal testing
  9. Anti-Pattern: Commit-Driven CI/CD Triggers
  10. Anti-Pattern: Sending Real Emails Out During Test execution in CI/CD

Non-Functional Testing

  1. Anti-Pattern: No Continuous Performance Testing
  2. Anti-Pattern: No Continuous Load Testing
  3. Wrap-up

CI/CD Hosting

  1. Anti-Pattern: Neglecting the Needs of E2E Test Automation
  2. Anti-Pattern: Falling for flashy but useless features in cloud testing platforms but miss the big picture
  3. Anti-Pattern: Completely unaware of or blindly exlcuding on-premise Setup
  4. Wrap-up

Team Involvement

  1. Execute Individual Tests via the CT Server Web Interface
  2. Data Preparation for User Acceptance Testing
  3. Self-help Utilities that whole team can use on the CT Server
  4. Generate a Traceability Matrix
  5. Anti-Pattern: Non-Tech Team Members Not Using CI/CD Server
  6. Anti-Pattern: Only One Run Configuration
  7. Case Study: A bug-fixing cycle in a team with real CI/CD
  8. Real CI/CD Boots Customers’ Trust and Confidence in the team

Leadership

  1. Anti-Pattern: Failing to Recognize the Great Benefits of Real CI/CD
  2. Anti-Pattern: Lack Team-Wide Training on CI/CD Process
  3. Anti-Pattern: Developers delay fixing newly discovered defects by Continuous Testing
  4. Anti-Pattern: Stuck with One CI Vendor or One Person
  5. Anti-Pattern: Assuming Existing Staff Can Deliver Real CI/CD and E2E Automation with a New Product
  6. Anti-Pattern: Fixated with All-in-one CI/CD. Two Stage CI → CD Often Better

Afterword

  1. My CI/CD Formula
  2. How many E2E Tests in CI/CD are enough?
  3. My Continuous Testing Lab Setup

Appendix I: Anti-Patterns List

Appendix II: CI Steps

Resources

  1. Books
  2. Tools
  3. Blog

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub