<p>There is no "Deploy-once-a-day" rule in devops philosophy. It's more of: Deploy as soon as possible and as often as possible. Also it calls for decoupling architecture so different parts of it may be released separately and also for decoupling deploys from release.</p>

<p>The Deveops Handbook by Gene Kim et al.calls for modifying Definition of Done to include running in production-like environments. That is follow the devops principles all the time during the sprint.</p>

<p>What you want to avoid is ending a sprint with all the developers handing over their code that is tested, is working but is not integrated and is handed to other team to be deployed, somehow.</p>

<p>I'd argue that definition of done is : it's not done until it's ready to run in production. Once it's ready you may or may not release it depending on your specific business needs and the sprint goal but if it's not ready to be released right now it's not done.</p>

CC BY-SA 3.0
2017-07-25T23:13:08.743Z
2017-07-25T23:13:08.743Z
Jakub Kania
<p>In a sense your question exactly underlines the problem faced by teams trying to be agile but without having the benefits of a good DevOps culture in place: there is practically no guarantee that at the end of each sprint they'll be able to deliver to their customers.</p>

<p>In some cases teams may end up using more relaxed definitions of done (like passed QA in my workspace/branch) or may account the additional steps for making the code shippable as tasks.</p>

<p>But with DevOps being <code>able to deploy on demand or as needed</code> shipping at the end of the sprint should simply be normal. Agile and DevOps really work very well together.</p>

<p>Side note: personally I find the <code>able to deploy on demand or as needed</code> a stretch - that only happens if the CI/CD processing passes all necessary QA checks. Very few CI/CD tools out there are able to actually guarantee it.</p>

CC BY-SA 3.0
2017-07-26T18:09:37.857Z
2017-07-26T18:09:37.857Z
Dan Cornilescu
<p>The Agile software development method</p>

<blockquote>
  <p>describes a set of values and principles for software development under which requirements and solutions evolve through the collaborative effort of self-organizing cross-functional teams. It advocates adaptive planning, evolutionary development, early delivery, and continuous improvement, and it encourages rapid and flexible response to change.</p>
  
  <p>The term agile (sometimes written Agile) was popularized by the Agile Manifesto, which defines those values and principles. <strong><em>Agile software development frameworks continue to evolve, two of the most widely used being Scrum and Kanban.</em></strong></p>
</blockquote>

<p>While there is no rule prohibiting using DevOps at the end of a <a href="https://en.wikipedia.org/wiki/Scrum_(software_development)#Workflow" rel="nofollow noreferrer">Scrum Sprint</a> to deploy the Sprint's results (in fact, it's encouraged - you are less likely to have mistakes and more likely to have production deployed identical to dev and test) DevOps is really better suited to <a href="https://en.wikipedia.org/wiki/Kanban_(development)" rel="nofollow noreferrer">Kanban</a> than Scrum.</p>

<p>This is because the DevOps philosophy of rapid testing and release targeting <a href="https://blog.newrelic.com/2014/05/16/devops-name/" rel="nofollow noreferrer">10+ deploys a day</a> is better suited to releasing every time a work item is completed, which more closely aligns with the rapid feedback and response model outlined in the <a href="https://devops.stackexchange.com/a/821/2845">Second Way</a> of DevOps.</p>

<p>However, even during a sprint, DevOps may be helpful to deploy code to testing, QA and staging and have pre-canned automated testing run through the testing units and report results or set up a new sandbox environment. This can allow developers still get the rapid, amplified feedback that DevOps can provide and increase the time spent coding instead of wasting that time prepping development environments - even if you do not deploy all the way to production.  </p>

CC BY-SA 3.0
2017-07-26T18:24:20.817Z
2017-07-26T18:41:15.470Z
2017-07-26T18:41:15.470Z
James Shewey
<p>Some great answers here, but I thought I'd chime in with an example of how we deliver features. "shipping" to production is not the goal, the goal is to deliver value. Shipping code to production is a means to an ends and we usually deploy many times to enable a feature. Here's a contrived example using a 1 week sprint for succinctness.</p>

<p>During planning on Monday the team discusses the new feature they want to implement and decide some refactoring work needs to be done before it can be implemented. Not doing the refactoring would introduce extra technical debt and potential performance issues. They spend the rest of Monday and most of Tuesday refactoring and ship this change Tuesday afternoon. This change is not visible to users.</p>

<p>Wednesday and Thursday they spend implementing the feature and deploy it to production at lunchtime Thursday, but only to a subset of users (using feature flags or a/b testing). Friday morning they find a bug in their code or maybe an undesirable outcome from the testing and ship an update at lunch time. Later they enable the feature for everybody.</p>

<p>This contrived example involved three deployments before the feature was considered "done". Most importantly it makes use of fast feedback to drive feature delivery. Taking the approach of writing features and deploying them as the "end game" introduces longer feedback cycles and makes your team slow to react i.e. less Agile.</p>

CC BY-SA 3.0
2017-07-27T09:57:41.683Z
2017-07-27T09:57:41.683Z
Robo
<blockquote>
  <p>I'm not clear how a Sprint which is timed-box to a predetermined length (1/2/3 weeks) fits with a DevOps principle of being able to deploy on demand or as needed.</p>
</blockquote>

<p>As usual, there is no commonly agreed-upon definition of DevOps, or description of what it entails, so we're just spouting opinions here. But in mine, DevOps encourages operations engineers to do as much as they can to get out of the way of developers, which includes not being a blocker for deploys unless they actually need to be (provisioning, architecture review, etc.).</p>

<p>That's not really tied to the development cycle at all - no matter what the cycle is, your job is to not be a blocker in it.</p>

<blockquote>
  <p>How does the sprint process capture that code was deployed to production in the middle of a sprint rather than at the end where the goal is to have "potentially shippable product"?</p>
</blockquote>

<p>It depends of course on your company, but in my opinion a feature isn't done until users have it.</p>

CC BY-SA 3.0
2017-07-26T15:55:38.280Z
2017-07-26T15:55:38.280Z
Xiong Chiamiov
<p>I'm not clear how a Sprint which is timed-box to a predetermined length (1/2/3 weeks) fits with a DevOps principle of being able to deploy on demand or as needed.</p>

<p>Is deploying to production part of the definition of done rather than a post activity to the overall sprint?</p>

<p>How does the sprint process capture that code was deployed to production in the middle of a sprint rather than at the end where the goal is to have "potentially shippable product"?</p>

<culture><release><process><agile>
How to correlate Devops deploy on demand with Agile Sprint Process
Beaux
# How to correlate Devops deploy on demand with Agile Sprint Process

(Asked by: username_0 on 2017-07-25)

I'm not clear how a Sprint which is timed-box to a predetermined length (1/2/3 weeks) fits with a DevOps principle of being able to deploy on demand or as needed.

Is deploying to production part of the definition of done rather than a post activity to the overall sprint?

How does the sprint process capture that code was deployed to production in the middle of a sprint rather than at the end where the goal is to have "potentially shippable product"?

**Tags:** culture, release, process, agile


---

## 5 answers

### Answer by username_1 on 2017-07-25. Score: 6

There is no "Deploy-once-a-day" rule in devops philosophy. It's more of: Deploy as soon as possible and as often as possible. Also it calls for decoupling architecture so different parts of it may be released separately and also for decoupling deploys from release.

The Deveops Handbook by Gene Kim et al.calls for modifying Definition of Done to include running in production-like environments. That is follow the devops principles all the time during the sprint.

What you want to avoid is ending a sprint with all the developers handing over their code that is tested, is working but is not integrated and is handed to other team to be deployed, somehow.

I'd argue that definition of done is : it's not done until it's ready to run in production. Once it's ready you may or may not release it depending on your specific business needs and the sprint goal but if it's not ready to be released right now it's not done.


---

### Answer by username_2 on 2017-07-26. Score: 2

In a sense your question exactly underlines the problem faced by teams trying to be agile but without having the benefits of a good DevOps culture in place: there is practically no guarantee that at the end of each sprint they'll be able to deliver to their customers.

In some cases teams may end up using more relaxed definitions of done (like passed QA in my workspace/branch) or may account the additional steps for making the code shippable as tasks.

But with DevOps being `able to deploy on demand or as needed` shipping at the end of the sprint should simply be normal. Agile and DevOps really work very well together.

Side note: personally I find the `able to deploy on demand or as needed` a stretch - that only happens if the CI/CD processing passes all necessary QA checks. Very few CI/CD tools out there are able to actually guarantee it.


---

### Answer by username_3 on 2017-07-26. Score: 2

The Agile software development method

> describes a set of values and principles for software development under which requirements and solutions evolve through the collaborative effort of self-organizing cross-functional teams. It advocates adaptive planning, evolutionary development, early delivery, and continuous improvement, and it encourages rapid and flexible response to change.
>
> The term agile (sometimes written Agile) was popularized by the Agile Manifesto, which defines those values and principles. ***Agile software development frameworks continue to evolve, two of the most widely used being Scrum and Kanban.***

While there is no rule prohibiting using DevOps at the end of a [Scrum Sprint](https://en.wikipedia.org/wiki/Scrum_(software_development)#Workflow) to deploy the Sprint's results (in fact, it's encouraged - you are less likely to have mistakes and more likely to have production deployed identical to dev and test) DevOps is really better suited to [Kanban](https://en.wikipedia.org/wiki/Kanban_(development)) than Scrum.

This is because the DevOps philosophy of rapid testing and release targeting [10+ deploys a day](https://blog.newrelic.com/2014/05/16/devops-name/) is better suited to releasing every time a work item is completed, which more closely aligns with the rapid feedback and response model outlined in the [Second Way](https://devops.stackexchange.com/a/821/2845) of DevOps.

However, even during a sprint, DevOps may be helpful to deploy code to testing, QA and staging and have pre-canned automated testing run through the testing units and report results or set up a new sandbox environment. This can allow developers still get the rapid, amplified feedback that DevOps can provide and increase the time spent coding instead of wasting that time prepping development environments - even if you do not deploy all the way to production.


---

### Answer by username_4 on 2017-07-27. Score: 2

Some great answers here, but I thought I'd chime in with an example of how we deliver features. "shipping" to production is not the goal, the goal is to deliver value. Shipping code to production is a means to an ends and we usually deploy many times to enable a feature. Here's a contrived example using a 1 week sprint for succinctness.

During planning on Monday the team discusses the new feature they want to implement and decide some refactoring work needs to be done before it can be implemented. Not doing the refactoring would introduce extra technical debt and potential performance issues. They spend the rest of Monday and most of Tuesday refactoring and ship this change Tuesday afternoon. This change is not visible to users.

Wednesday and Thursday they spend implementing the feature and deploy it to production at lunchtime Thursday, but only to a subset of users (using feature flags or a/b testing). Friday morning they find a bug in their code or maybe an undesirable outcome from the testing and ship an update at lunch time. Later they enable the feature for everybody.

This contrived example involved three deployments before the feature was considered "done". Most importantly it makes use of fast feedback to drive feature delivery. Taking the approach of writing features and deploying them as the "end game" introduces longer feedback cycles and makes your team slow to react i.e. less Agile.


---

### Answer by username_5 on 2017-07-26. Score: 1

> I'm not clear how a Sprint which is timed-box to a predetermined length (1/2/3 weeks) fits with a DevOps principle of being able to deploy on demand or as needed.

As usual, there is no commonly agreed-upon definition of DevOps, or description of what it entails, so we're just spouting opinions here. But in mine, DevOps encourages operations engineers to do as much as they can to get out of the way of developers, which includes not being a blocker for deploys unless they actually need to be (provisioning, architecture review, etc.).

That's not really tied to the development cycle at all - no matter what the cycle is, your job is to not be a blocker in it.

> How does the sprint process capture that code was deployed to production in the middle of a sprint rather than at the end where the goal is to have "potentially shippable product"?

It depends of course on your company, but in my opinion a feature isn't done until users have it.


---

