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

[cft] Exit 1 if purge error #137733

Merged
merged 2 commits into from
Aug 2, 2022
Merged

[cft] Exit 1 if purge error #137733

merged 2 commits into from
Aug 2, 2022

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Aug 1, 2022

This triggers a job failure if the purge-cloud-deployments script
encounters an error. I'm attempting to debug why an instance was stuck
online and hoping this will make future issues easier to spot.

This triggers a job failure if the purge-cloud-deployments script
encounters an error.  I'm attempting to debug why an instance was stuck
online and hoping this will make future issues easier to spot.
@jbudz jbudz added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes ci:skip-when-possible (Deprecated) no-op, managed automatically labels Aug 1, 2022
@jbudz jbudz marked this pull request as ready for review August 1, 2022 15:47
@jbudz jbudz requested a review from a team as a code owner August 1, 2022 15:47
@elasticmachine
Copy link
Contributor

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

@@ -45,6 +45,7 @@ for (const deployment of prDeployments) {
} catch (ex) {
console.error(ex.toString());
// deploymentsToPurge.push(deployment); // TODO should we delete on error?
process.exit(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

You should probably keep track of whether or not an error occurred, and then exit at the very end of the script, right? Otherwise, an error on the first deployment would keep all of the other ones from getting purged?

Copy link
Member Author

Choose a reason for hiding this comment

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

Pushed 6b801d5

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jbudz jbudz merged commit 943cde8 into elastic:main Aug 2, 2022
@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Aug 2, 2022
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 ci:skip-when-possible (Deprecated) no-op, managed automatically release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants