DevOps.com

Where the world meets DevOps

  • Latest
    • This Week in DevOps
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
  • Chat
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • MediaOps Virtual Events
    • Digital Anarchist Coverage
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • How AI is Transforming Testing Today

      How AI is Transforming Testing Today

      Self-Service Machine Learning Models AI Integration

      Are Self-Service Machine Learning Models the Future of AI Integration?

      We Are Devo, With Walter Scott

      DevOps Chat: We Are Devo, With Walter Scott

      Technology: Isolation in the Age of Automation

      Technology: Isolation in the Age of Automation

      Nutanix Eases Development of IoT Apps

      Nutanix Eases Development of IoT Apps

  • Cloud
    • Portable Security Policies: A DevSecOps Primer

      Portable Security Policies: A DevSecOps Primer

      How Not to Sabotage Your Multi-Cloud Strategy

      How Not to Sabotage Your Multi-Cloud Strategy

      VMware Avi Networks

      VMware to Acquire Avi Networks for NetOps Capability

      RDX Eases Oracle Database Migration to PostgreSQL on AWS

      RDX Eases Oracle Database Migration to PostgreSQL on AWS

      Akamai Extends Reach to IoT Edge

      Akamai Extends Reach to the IoT Edge

  • Continuous Delivery
    • CloudBees' Acquisition of Rollout: The CEOs' View

      CloudBees’ Acquisition of Rollout: The CEOs’ View

      CloudBees Acquires Rollout for Feature Flagging

      CloudBees Acquires Rollout for Feature Flagging

      GitLab Updates Advance Its CI/CD Platform

      GitLab Updates Advance Its CI/CD Platform

      Get Testing Bottlenecks Out of Your Pipelines

      Get Testing Bottlenecks Out of Your Pipelines

      CircleCI Adds Integration With Atlassian Jira

      CircleCI Adds Integration With Atlassian Jira

  • Continuous Testing
    • CloudBees' Acquisition of Rollout: The CEOs' View

      CloudBees’ Acquisition of Rollout: The CEOs’ View

      The Human Value in Automation-Driven DevOps Testing

      The Human Value in Automation-Driven DevOps Testing

      How to Create Bug-Free Blockchain Apps

      How to Create Bug-Free Blockchain Apps

      How AI is Transforming Testing Today

      How AI is Transforming Testing Today

      Get Testing Bottlenecks Out of Your Pipelines

      Get Testing Bottlenecks Out of Your Pipelines

  • DevSecOps
    • Portable Security Policies: A DevSecOps Primer

      Portable Security Policies: A DevSecOps Primer

      The DevOps Security Stack

      The DevOps Security Stack

      Shift Left Role Security Enabling DevOps

      Shift Left Without Fear: The Role of Security in Enabling DevOps

      Data: the New Currency That Accelerates Business

      Data: the New Currency That Accelerates Business

      DevOps Security Champion

      DevOps Security Champion: Who, What and Why?

  • Leadership Suite
    • CloudBees' Acquisition of Rollout: The CEOs' View

      CloudBees’ Acquisition of Rollout: The CEOs’ View

      True Digital Adoption Empowers Humans

      True Digital Adoption Empowers Humans

      Successful Digital Transformation Starts With Developers

      Successful Digital Transformation Starts With Developers

      Getting the Enterprise Digital Core in Shape

      Getting the Enterprise Digital Core in Shape

      Value Stream Optimization

      Value Stream Optimization: Putting Business in the Driver’s Seat

  • Practices
    • Portable Security Policies: A DevSecOps Primer

      Portable Security Policies: A DevSecOps Primer

      How Not to Sabotage Your Multi-Cloud Strategy

      How Not to Sabotage Your Multi-Cloud Strategy

      Automate an API Security Program

      How to Automate an API Security Program Without Adding Staff

      The DevOps Security Stack

      The DevOps Security Stack

      The Human Value in Automation-Driven DevOps Testing

      The Human Value in Automation-Driven DevOps Testing

  • ROELBOB
    • benefits-that-matter

      Benefits That Matter

      service-components

      Service Components

      a-considered-response

      A Considered Response

      7-layers-of-osi

      The 7 Layers of OSI

      declarative-humor

      Declarative Humor

  • Toolbox
    • Pulumi Advanced DevOps on AWS

      Pulumi Advances DevOps on AWS

      Acquisitions to Fuel Programmable Analytics

      Acquisitions to Fuel Programmable Analytics

      CloudBees Acquires Rollout for Feature Flagging

      CloudBees Acquires Rollout for Feature Flagging

      Pre-Commit Job Workflow in Azure DevOps

      Pre-Commit Job Workflow in Azure DevOps

      GitLab Updates Advance Its CI/CD Platform

      GitLab Updates Advance Its CI/CD Platform

  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » Continuous Testing » Get Testing Bottlenecks Out of Your Pipelines

Get Testing Bottlenecks Out of Your Pipelines

Get Testing Bottlenecks Out of Your Pipelines

Lisa CrispinBy Lisa Crispin on May 24, 2019 1 Comment

I first learned the term “deployment pipeline” when I read “Continuous Delivery: Reliable Software Releases through Build, Test and Deployment Automation,” by Jez Humble and David Farley back in 2009. End-to-end automation of the build, deploy, test and release processes kick in each time a team member commits a change to the source code repository.

Related Posts
  • Continuous Delivery snapshot: a universe of fragmented tools
  • Attaining Continuous Testing in DevOps through a Templated Approach
  • The Continuous Delivery Pipeline — What it is and Why it’s so Important in Developing Software
    Related Categories
  • Blogs
  • Continuous Delivery
  • Continuous Testing
  • DevOps Practice
  • Enterprise DevOps
  • Leadership Suite
    Related Topics
  • CD pipeline
  • continuous delivery
  • continuous deployment
  • devops
  • Exploratory Testing
  • manual testing
Show more
Show less

Chapter 5 of the book notes that the forms of testing common to all projects include manual test stages which “… assert that the system is usable and fulfills its requirements, detect any defects not caught by automated tests, and verify that it provides value to its users. These stages might typically include exploratory testing environments, integration environments, and UAT (user acceptance testing).”

Humble and Farley include these manual stages in the deployment pipeline, also known as a continuous integration (CI) pipeline, build pipeline or delivery pipeline. However, from what I observe, I think a lot of times people forget about these important manual stages.

Though we can do more and more with test automation, thanks to improving technology, manual testing activities are here to stay in most business domains. My own previous team realized this as we started to move toward continuous delivery (CD) a couple of years back, with twice-weekly deploys to production. Smaller changes and more frequent deploys means lower risk of regression failures. Yet, we still struggled with how to fit in important manual testing activities.

Whenever my cross-functional delivery team has a problem, I look for a way to make it visible, to help us talk about it and brainstorm ideas to solve it. My “aha” moment around manual stages came when I learned techniques to visualize our pipeline from Abby Bangser and Ashley Hunsberger. My team knew we had these manual testing activities and that we wouldn’t feel confident about releasing changes without them, but we weren’t really thinking about them as stages in the pipeline.

Visualizing Your Pipeline – Including the Manual Stages

Continuous Delivery Pipeline
Figure 1: A Continuous Delivery Pipeline (my diagrams are inspired by Katrina Clokie’s pipeline diagrams in “A Practical Guide to Testing in DevOps”)

Getting your team together to visualize your pipeline is a great method to find ways to improve it. Gather around a table with cards or sticky notes, or draw on a whiteboard—what are all the steps in your pipeline, including the manual ones? In Figure 1, the manual stages in a team’s CD pipeline are shown in yellow. All the automated and manual things need to happen before the business decides to push the button and deploy to production. It’s easy to see that these manual stages can become a bottleneck. Manual exploratory testing is likely to take longer than the automated test suites. If user acceptance testing needs to be done by certain business stakeholders and they aren’t available at the right time, that holds up the release. If the team is looking to move to continuous deployment, where every change to the product goes out to production as soon as all stages complete successfully, these manual stages will be in the way.

When you get your whole team including developers, database experts, operations specialists and product owners involved in solving these problems, you may discover innovative ways to approach them. In my team’s case, we decided everyone on the team needed to help with exploratory testing so we could do it in a timely manner. Testers helped the developers learn exploratory testing skills with hands-on workshops and by pairing with them. Then, each developer pair working on a story was tasked with doing the exploratory testing at the story level before declaring the story finished. We wrote exploratory testing charters at the epic or feature level as stories in our backlog. When enough stories were complete, anyone on the team, including testers and product owners, could pick up those charters.

If we couldn’t complete all the necessary exploratory testing before the next production deploy, we used feature flags to hide the changes from customers until we could complete the testing. We could go ahead and deploy the changes and wait to release them once we felt confident they would not cause any customer pain.

Asynchronous Testing Stages

Using feature flags or toggles is a good way to allow the team to approach some manual testing activities asynchronously, so they don’t hold up the deployment pipeline. If some required manual accessibility, testing takes an extra day to complete or the UAT has to be postponed for a week, the deploy still happens. A change could be toggled on for a small percentage of users and observed in production to see if any unexpected behavior occurs. Whatever activities are needed to safely release a particular change don’t have to hold up other changes that are ready for customer use.

Asynchronous stages in a deployment pipeline
Figure 2: Asynchronous stages in a deployment pipeline

Figure 2 is an example of a continuous deployment pipeline, but this asynchronous approach to the manual stages works for continuous delivery as well. Each time a team member commits a change, if all the automated stages in the pipeline pass, the release candidate build will be deployed to production. The manual testing activities are not inline with the other steps and don’t hold back the deployment.

If we’re ready to deploy a feature but need to finish those manual testing stages before we release it, developers can put in a feature flag set to “off” to prevent it from being exposed to customers. When the asynchronous manual stages are all complete and successful, the feature flag can be flipped on in production. This is the actual release, customers can now use the feature. The feature flag should be removed as soon as possible, as too many feature flags at once has serious risks.

Using feature flags or toggles to permit deploying changes to production before all testing stages are finished is one way to avoid bottlenecks and succeed with continuous delivery or deployment. Continuous delivery and deployment success depend on doing frequent small changes, not big-bang releases. A lean approach to feature flags, keeping the inventory low, is advisable.

Visualize It With Your Team

We’ve looked at one way to keep manual pipeline stages from holding up deploys, but there may be other solutions for your team. And there are lots of other key success factors for CD, such as keeping changes small and frequent. There’s lots to discuss and brainstorm about as your team, or a representational cross-section of it, gets together and experiments with a visual model of your pipeline. Talk about what you need to learn from each pipeline stage, who needs to know it and whether the pipeline is providing actionable feedback.

As a tester, I’ve sometimes questioned aspects of the pipeline that nobody else had thought about. Having team members with development, operations, database and other skills present means more potential for creative solutions. Our pipeline provides a major feedback loop and we want that feedback as fast as we can get it. Writing each stage on a card and arranging them on a table or wall often triggers ideas for parallelizing more stages or realizing a particular stage isn’t necessary or can be done locally by developers.

Automate all the things where it’s feasible. Use the time you save to optimize the way you accomplish manual testing activities and possibly automate more of them. Master techniques such as feature flagging so that you can take the time needed to feel confident about every new feature you release.

References

“Continuous Delivery: Reliable Software Releases through Build, Test and Deployment Automation,” Jez Humble and David Farley, https://continuousdelivery.com

“A Practical Guide to Testing in DevOps,” Katrina Clokie, https://leanpub.com/testingindevops

“Feature Toggles, AKA Feature Flags,” Pete Hodsgon, https://martinfowler.com/articles/feature-toggles.html

Filed Under: Blogs, Continuous Delivery, Continuous Testing, DevOps Practice, Enterprise DevOps, Leadership Suite Tagged With: CD pipeline, continuous delivery, continuous deployment, devops, Exploratory Testing, manual testing

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
Speed and Scale: How Machine Identity Protection is Crucial for Digital Transformation and DevOps

Speed and Scale: How Machine Identity Protection is Crucial for Digital Transformation and DevOps

Digital transformation requires new approaches to security, demanding the protection of machine identities that enable authentication and encryption required for secure machine-to-machine communication. Solving machine identity protection challenges within DevOps environments, requires a fundamentally new approach. Information Security teams must deliver a frictionless, automated solution that allows DevOps engineers to ... Read More
« Growing Pains for Containers, Data Centers Call for Better Management
CloudBees Increases Size of DevOps War Chest »

Top Stories of the Week

  • View DevOps.com Privacy Policy

Latest from DevOps.com

Portable Security Policies: A DevSecOps Primer
June 14, 2019 | Tom Hickman
How Not to Sabotage Your Multi-Cloud Strategy
June 14, 2019 | Brian J. Kelly
VMware to Acquire Avi Networks for NetOps Capability
June 13, 2019 | Mike Vizard
How to Automate an API Security Program Without Adding Staff
June 13, 2019 | Doug Dooley
RDX Eases Oracle Database Migration to PostgreSQL on AWS
June 13, 2019 | Mike Vizard

Most Read on DevOps.com

5 Tips for Launching New App Features
June 10, 2019 | Adam Zimman
Successful Digital Transformation Starts With Developers
June 10, 2019 | Jeff Fried
A Considered Response
June 10, 2019 | ROELBOB
Acquisitions to Fuel Programmable Analytics
June 11, 2019 | Mike Vizard
Service Components
June 11, 2019 | ROELBOB

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays

From Our Sponsor

New Call-to-action

Download Free eBook