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

[INFRA] Add command to stop running Buildkite jobs #7006

Merged

Conversation

1Copenut
Copy link
Contributor

@1Copenut 1Copenut commented Jul 27, 2023

Summary

This job adds a cancel_intermediate_jobs: true boolean to catalog-info.yml to stop old jobs on PR update. I added the command to the combined PR test and deploy docs, as well as individual jobs so we get good coverage.

I discussed this with @markjhoy as he's working on a same PR for Enterprise Search: https://github.com/elastic/ent-search/pull/7653

QA

I added the cancel_intermediate_jobs boolean to all three jobs. Catalog changes have to be in main to get picked up by the Terraform task.

I'll rapidly test this by updating the PR, after the fix is merged into main by changing things rapidly and changing them back to see if it cancels jobs correctly. Will make the PR history a little dirtier, but eh, squash and merge.

* Adding a cancel_intermediate_jobs boolean to stop old jobs on PR update
@cee-chen
Copy link
Member

@1Copenut can you push up a random commit to this PR and then revert it a minute later so we can see the cancel behavior working?

@1Copenut
Copy link
Contributor Author

@1Copenut can you push up a random commit to this PR and then revert it a minute later so we can see the cancel behavior working?

Not this one, will have to try it after merging. Catalog changes are only scooped up by Terraform on the quarter hour in main.

@cee-chen
Copy link
Member

Ah whoops, gotcha. I guess YOLO in that case if we can't test it in the PR 😅 also hi @markjhoy, long time no see!

@1Copenut 1Copenut marked this pull request as ready for review July 27, 2023 21:59
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_7006_buildkite/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_7006/

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @1Copenut

@1Copenut 1Copenut enabled auto-merge (squash) July 27, 2023 22:32
@1Copenut 1Copenut merged commit 6fc0fe2 into elastic:main Jul 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants