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

Standardize build/test github actions and java versions #623

Merged
merged 7 commits into from
Sep 17, 2024

Conversation

finnegancarroll
Copy link
Collaborator

@finnegancarroll finnegancarroll commented Sep 11, 2024

Description

Remove hard coded java versions - use java.matrix instead so we can easily add and remove java versions for each workflow. Build/publish/release with all supported versions - 11/17/21. Test only with java 21.

Standardize version of github actions:
actions/setup-java to v4
actions/checkout to v4

For containerized workflows the image published by opensearch-build does not have a high enough version of glibc to support these v4 actions. Here we downgrade to v3 which only needs node 16 and set `ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true.

Related Issues

Should fix publish failure with java upgrade for that workflow: 11 -> 21.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@finnegancarroll finnegancarroll changed the title Setup-java action to v4 Standardize build/test github actions and java versions Sep 13, 2024
@mch2
Copy link
Member

mch2 commented Sep 17, 2024

@finnegancarroll This largely looks right to me, but i am not sure why this PR did not run the test & build workflows? Is this related to your update?

.github/workflows/build.yml Outdated Show resolved Hide resolved
Signed-off-by: Finn Carroll <[email protected]>
Signed-off-by: Finn Carroll <[email protected]>
…p actions to @V3. Workflows run directly on runners already have up to date glibc.

Signed-off-by: Finn Carroll <[email protected]>
Signed-off-by: Finn Carroll <[email protected]>
@finnegancarroll
Copy link
Collaborator Author

Moved all workflows to java 21 only. Per https://github.com/opensearch-project/asynchronous-search/blob/main/build.gradle#L84 java 21 is the minimal compatible version on main.

@mch2 mch2 merged commit d1c801f into opensearch-project:main Sep 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants