Skip to content

Maintenance: Build and test GraalVM native images in GH Workflows for v2 #1803

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

Open
1 of 2 tasks
phipag opened this issue Mar 13, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@phipag
Copy link
Contributor

phipag commented Mar 13, 2025

Summary

After introducing GraalVM support for the Core Utilities (#764), we need to add an additional step to the GitHub build workflows (on v2 branch) to build and test the native image in addition to JVM.

Why is this needed?

This is needed to avoid regressions in GraalVM compatibility in the future and detect unsupported or breaking changes regarding native compilation before merging / releasing them. There is a related issue for running end-to-end tests to test the native images at runtime #1805.

Which area does this relate to?

Governance, GraalVM

Solution

The expected behavior is that the workflow fails if either the GraalVM Reachability Metadata generation fails or if the unit tests against the native image fail. Otherwise, the workflow should succeed.

It should also be possible to skip enable/disable native compilation and testing for specific submodules. This can be done by using the -pl argument in Maven. For example, if I would like to generate GRM files and run unit tests against the native image for all modules except for powertools-common I can run this command to exclude powertools-idempotency:

mvn -Pgenerate-graalvm-files clean test -pl "-powertools-idempotency" && mvn -Pgraalvm-native clean test -pl "-powertools-idempotency"

Acknowledgment

@phipag phipag moved this from Triage to Backlog in Powertools for AWS Lambda (Java) Mar 13, 2025
@phipag phipag changed the title Maintenance: Build Native Images in GH Workflows for v2 Maintenance: Build and test GraalVM native images in GH Workflows for v2 Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant