-
Notifications
You must be signed in to change notification settings - Fork 21
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
Exclude Non-Loadable Packages from ClassLoader. Fixes #issue 1385 #1384
Conversation
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 for the contribution! I left some review comments. This also needs a test before we can merge it.
sdk/java/pulumi/src/main/java/com/pulumi/serialization/internal/ResourcePackages.java
Outdated
Show resolved
Hide resolved
sdk/java/pulumi/src/main/java/com/pulumi/serialization/internal/ResourcePackages.java
Outdated
Show resolved
Hide resolved
Thanks for the review @justinvp I have corrected it now and made a test for a the exclusion of packages. |
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.
Looks good to me. Thanks!
@andreaspartisia, looks like there's a conflict with the pulumi
submodule. Can you revert that change?
Yes @justinvp it has been updated now. |
@justinvp |
/run-acceptance-tests |
@andreaspartisia, thanks for your patience! I opened a temp PR to run the tests in CI and the new test is failing: https://github.com/pulumi/pulumi-java/actions/runs/10464711824/job/28978759154?pr=1412#step:12:376
|
… environment of other tests.
Thanks for the reminder @justinvp |
@justinvp do you have time to look at it again or do one of your colleagues have time for it? |
/run-acceptance-tests |
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! I'll get it merged after reviewing the test run.
Note: we were running into some unrelated lint issues in CI in this repo yesterday that we may need to fix separately, so it may be another day or so. Thanks for your patience and thanks again for addressing this!
Description
We encountered an issue with the package loader that loads every package indiscriminately, instead of using the Maven class loader's smart loading. This is a known problem, and while some packages have already been excluded, the process requires a merge request for each exclusion. Therefore, we identified the need for a faster and more dynamic exclusion mechanism.
This fix introduces a system property string containing a comma-separated list of packages to exclude. By setting this property, the specified packages will be excluded from the loaded packages.
Fixes #1385
Checklist