Skip to content

Conversation

donoghuc
Copy link
Member

@donoghuc donoghuc commented Aug 8, 2025

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

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

Downgrade java version in versions.yml and run ./gradlew updateJdkVersion to update it back to latest.

Related issues

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.
@donoghuc donoghuc requested review from a team as code owners August 8, 2025 20:30
@donoghuc donoghuc added the backport-active-all Automated backport with mergify to all the active branches label Aug 8, 2025
Copy link
Contributor

github-actions bot commented Aug 8, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Copy link
Contributor

@dliappis dliappis left a 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'
Copy link
Contributor

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

Copy link
Member Author

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!

Copy link
Member Author

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.

Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-active-all Automated backport with mergify to all the active branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants