Skip to content

pipelines: update deploy.go and add fail-on-active-runs flag - #3235

Merged
alyssa-db merged 4 commits into
mainfrom
fail-on-active-runs-0
Jul 15, 2025
Merged

pipelines: update deploy.go and add fail-on-active-runs flag#3235
alyssa-db merged 4 commits into
mainfrom
fail-on-active-runs-0

Conversation

@alyssa-db

@alyssa-dbalyssa-db commented Jul 11, 2025

Copy link
Copy Markdown
Contributor

Changes

Synchronize deploy.go to cmd/bundle/deploy.go and add new fail-on-active-runs flag

Why

New flag is for controlling that pipelines deploy fails when the pipeline is currently running

Tests

Added pipeline specific test that causes deploy to fail when pipeline is running and fail-on-active-runs is set

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 11, 2025

Copy link
Copy Markdown
Collaborator

Run: 16224341253

Env✅‌pass🙈‌skip
✅‌aws linux302416
✅‌aws windows303415
✅‌aws-ucws linux408316
✅‌aws-ucws windows409315
✅‌azure linux302415
✅‌azure windows303414
✅‌azure-ucws linux410313
✅‌azure-ucws windows411312
✅‌gcp linux301417
✅‌gcp windows302416

Comment threadcmd/pipelines/deploy.go
Comment threadcmd/pipelines/deploy.go Outdated

@jefferycheng1jefferycheng1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add tests for this, should be straightforward!

@kanterovkanterov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review with Andrew/Denis. Also what about acceptance tests?

Comment threadcmd/bundle/deploy.go
@@ -1,3 +1,5 @@
// Copied to cmd/pipelines/deploy.go and adapted for pipelines use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need the comment here though

@alyssa-dbalyssa-dbJul 11, 2025

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there another way you would suggest? @jefferycheng1 and I were discussing how to standardize these comments in the future, as we do want changes made to deploy.go to be considered for pipelines as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrewnester I thought to keep this in for posterity. tbh, I'm not sure how helpful this will be though, given how few people work on this, but it at least reminds PR authors to consider it. When we move pipelines out, we can remove this altogether. thoughts?

@jefferycheng1jefferycheng1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@alyssa-db
alyssa-db added this pull request to the merge queueJul 15, 2025
Merged via the queue into main with commit 9ec55d5Jul 15, 2025
13 checks passed
@alyssa-db
alyssa-db deleted the fail-on-active-runs-0 branch July 15, 2025 18:04
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
Synchronize deploy.go to cmd/bundle/deploy.go and add new
`fail-on-active-runs` flag
## Why
New flag is for controlling that pipelines deploy fails when the
pipeline is currently running
## Tests
Added pipeline specific test that causes deploy to fail when pipeline is
running and `fail-on-active-runs` is set
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@alyssa-db@eng-dev-ecosystem-bot@denik@kanterov@andrewnester@jefferycheng1