Skip to content

Commit

Permalink
Quality Gates - Allow manual skipping of the bake time (#174877)
Browse files Browse the repository at this point in the history
## Summary

This PR modifies the serverless quality gate production pipeline to
allow a manual skipping of the bake time step.

### Details

A manual step cancelling produces a status code 255 and this PR modifies
the step to be soft failing for that case. Every other failure should
produce a different status code and thus still fail the pipeline.

---------

Co-authored-by: Thomas Watson <[email protected]>
  • Loading branch information
pheyos and watson authored Jan 16, 2024
1 parent 131ef3e commit 9b901b2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ steps:
- label: ":cookie: 24h bake time before continuing promotion"
if: build.env("ENVIRONMENT") == "production-canary"
command: "sleep 86400"
soft_fail:
# A manual cancel of that step produces return code 255.
# We're treating this case as a soft fail to allow manual bake time skipping.
# To stop the promotion entirely, instead click the "Cancel" button at the top of the page
- exit_status: 255
agents:
# How long can this agent live for in minutes - 25 hours
instanceMaxAge: 1500

0 comments on commit 9b901b2

Please sign in to comment.