-
Notifications
You must be signed in to change notification settings - Fork 8.6k
CP-7781 - switching bk pipeline to gpctl promote after synthetics #193411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mduarte
merged 7 commits into
elastic:main
from
mduarte:CP-7781/gpctl-promote-synthetics
Sep 25, 2024
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
47ebb1b
CP-7781 - switching bk pipeline to gpctl promote after synthetics
mduarte e413e5a
Merge branch 'main' into CP-7781/gpctl-promote-synthetics
mduarte f150dea
Merge branch 'main' into CP-7781/gpctl-promote-synthetics
mduarte 580ccab
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine 31cce20
Add support for DRY_RUN
mduarte c71d908
Merge branch 'main' into CP-7781/gpctl-promote-synthetics
mduarte ff83b2e
Merge branch 'main' into CP-7781/gpctl-promote-synthetics
jbudz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this no longer available? It was previously helpful for us to run this pipeline without promoting artifacts in support of testing pipeline changes on our side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This functionality was also not available in the previous pipeline.
Out of curiosity, have you tried to call this recently with DRY_RUN=true?
We do have a separate pipeline that only does the testing and no promotion.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm mostly not involved with the Kibana release pipeline, not sure how this was used.
@pheyos @delanni can you take a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used this flag while testing the migrations to ensure we triggered the right downstream. I don't know if it's still in use, or would have future uses.
For more context, we added the Kibana triggers here: https://github.com/elastic/kibana/pull/178658/files
the corresponding escape hatch was added to
promote.shhere: https://github.com/elastic/gpctl/pull/261It's true, that the
gpctl-promote-with-e2e-testspipeline didn't have a reference toDRY_RUN, but I believe, it did work for our case using thegpctl-promotepipeline, as we directly triggered that (and thus the env section from the first linked PR was passed on). Throughgpctl-promote-with-e2e-teststhis is probably lost, unless we pass along the env to the trigger step.I don't think we're using the
DRY_RUNfor any other use cases right now. So we can either add env passing there, or allow this to be removed for now. I'd go for the first option, since the hatch exists inpromote.sh, we may as well expose it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added support for a more explicit env variable called
GPCTL_PROMOTE_DRY_RUNin https://github.com/elastic/serverless-gitops/pull/4202.