Skip to content
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

[CI] Cloud purge: improve logging, add CLOUD_DELETE_ON_ERROR #208392

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

delanni
Copy link
Contributor

@delanni delanni commented Jan 27, 2025

Summary

When not run through the official way, cloud deployments can get weird names (e.g.: kibana-pr-false - from incorrect parameterization through testing: https://buildkite.com/elastic/kibana-migration-pipeline-staging/builds/192).

This throws a wrench in the gears for the purge script. Although the removals still work, the script exits with status code 1, which fails the pipeline.

This PR adds some more resilience to the script, better logging of problematic cases, and a flag to allow removal of problematic cases (if someone manually runs the pipeline with CLOUD_DELETE_ON_ERROR=1).

Tested:

@delanni delanni added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels Jan 27, 2025
@delanni delanni marked this pull request as ready for review January 27, 2025 17:37
@delanni delanni requested a review from a team as a code owner January 27, 2025 17:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@delanni delanni merged commit 163f7ea into main Jan 28, 2025
8 checks passed
@delanni delanni deleted the fix-purge-script branch January 28, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants