-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Replace buildkite jdk version check w/GH action #17945
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
base: main
Are you sure you want to change the base?
Conversation
Previously a weekly buildkite job would check if there is a newer JDK available than the one vendored in logstash. This job would fail until someone manually updated the JDK version in the `versions.yml` file in logstash. This commit reduces manual intervention by moving the responsibility to a GH action where there are patterns for creating PRs back to logstash. The action should run weekly and also be available in the actions UI. It is locked down with the same permissions as the version bump action.
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
💚 Build Succeeded
|
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.
Thank you for this work!
Have you tested this workflow?
Normally the process is to create a stub workflow (with permissions to trigger from a PR from an upstream branch) and in iterate in a follow up PR
git push origin $BRANCH | ||
|
||
- name: Create Pull Request | ||
if: steps.verify-changed-files.outputs.changed == 'true' |
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.
Have you considered an updatecli workflow for this instead? See an example from beats in https://github.com/elastic/beats/tree/1df4889c66c43c71b7a795f7c735eeb79c48c569/.github/workflows/updatecli.d
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 had not heard of that tool before. That looks very helpful! I pinged you in slack to clarify your suggestion for doing testing for worfklows. Once i have that down i can experiment a bit with using updatecli. Thanks!
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.
Thanks @dliappis again for the review and suggestions. I opened a PR to add a stub action to test against #17993 and started exploring the updatecli tool with #18035
If you have a chance to look at those that would be great. I was thinking we can get the stub action merged which will inform this and the other proposed action.
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.
LGTM for the stub, thanks!
Release notes
[rn:skip]
What does this PR do?
Previously a weekly buildkite job would check if there is a newer JDK available than the one vendored in logstash. This job would fail until someone manually updated the JDK version in the
versions.yml
file in logstash. This commit reduces manual intervention by moving the responsibility to a GH action where there are patterns for creating PRs back to logstash. The action should run weekly and also be available in the actions UI. It is locked down with the same permissions as the version bump action.Why is it important/What is the impact to the user?
No user impact, quality of life improvement for logstash devs.
Checklist
How to test this PR locally
Downgrade java version in
versions.yml
and run./gradlew updateJdkVersion
to update it back to latest.Related issues