CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 39 forks source link

"Auto-cancel redundant builds" should be smarter about conditional workflows #39

Open johnjensenish opened 4 years ago

johnjensenish commented 4 years ago

Hello, we are attempting to us conditional workflows and pipeline parameters so that we can easily deploy our website. So we have two workflows: 1) a full build and 2) just deploy the site.

Problem steps:

  1. Merge a change to to origin/production, which triggers a full build (default pipeline parameters)
  2. Soon after, make a change to the blog which uses the circleci API to trigger a pipeline build (i.e. parameters: { "build": false, "deploy-site": true })
  3. Observe on the circleci site that the first build has been canceled.

Since the selected workflows aren't the same, I don't think these builds should be considered "redundant".

johnjensenish commented 4 years ago

Note this issue won’t occur for the default branch...