chore(ci): Add GraalVM E2E tests and GH workflows#1945
Merged
Conversation
…rics configuration be in parent pom.
Contributor
Author
|
I don't understand why the osv-scanner fails since this vulnerability was not introduced by this PR. According to the docs it should only scan the PR diff. https://google.github.io/osv-scanner/github-action/#scan-on-pull-request |
leandrodamascena
requested changes
Jul 21, 2025
Contributor
leandrodamascena
left a comment
There was a problem hiding this comment.
Hey @phipag great job! Some few comments to address before we merge it.
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/MetricsE2ET.java
Show resolved
Hide resolved
|
Contributor
Author
|
Thanks for your feedback @leandrodamascena, I addressed your comments. |
leandrodamascena
approved these changes
Jul 21, 2025
Contributor
leandrodamascena
left a comment
There was a problem hiding this comment.
Thanks for addressing all the comments @phipag! Ship it!
Approved!
2 tasks
2 tasks
2 tasks
2 tasks
This was
unlinked from
issues
Jul 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This PR introduces E2E tests for testing against native images deployed on
AL2023.providedruntime compiled using GraalVM.It is important to have these tests to cover regressions of future code changes. For example, if the GraalVM metadata files were not updated inline with new code changes. We want to protect customers from releasing changes that break GraalVM compatibility.
Tests pass ✅
Changes
The GraalVM E2E tests are triggered by a custom
e2e-graalmaven profile which sets a System Propertygraalvm.enabled = true. This will be read within the E2E infrastructure logic to decide whether to deploy a native image on the Lambda provided runtime or not. The E2E test assertions themselves stay untouched because we expect the exact same output for native images like for JVM based Lambda handlers. We can include more utilities in GraalVM E2E tests as we grow the GraalVM support across more Powertools utilities by updating this maven profile configuration.e2e-graaljob running the same Java matrix and same workflows likee2eDockerConfiguration.javato hold configuration for CDK Bundling within Docker. Required for x86 cross-compilation of native image.Issue number: #1803
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.