-
Notifications
You must be signed in to change notification settings - Fork 822
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
Fix commit validation jdk16+ #3862
Fix commit validation jdk16+ #3862
Conversation
3ea4980
to
870636c
Compare
@matthiasblaesing have you tested this on older JDKs? Since JDKs pre SM deprecation don't know what 'allow' means.
(thats why i had to set it conditional on the gh actions pipeline PR) |
@mbien yes and no. I tested on Linux, but it fails on mac OS. I'm currently testing to add security manager disabling dynamically based on the target JDK. |
870636c
to
48501ce
Compare
@jlahoda could you please have a look at this: https://app.travis-ci.com/github/apache/netbeans/jobs/564742204#L11668-L11694
The marked lines is part of the output of the Locally I can reproduce the problem sometimes. Using this branch on JDK 11 I get the error after a clean build (with JDK 11 on the PATH): git clean -f -x -d
ant
ant commit-validation Maybe you have an idea how we could stabilize this. This might be a real problem in the infrastructure, as the test was not run on 9+ before this PR (see the removed filter in |
@matthiasblaesing Hi Matthias, the new CI pipeline has two setup steps at the moment as temp workaround netbeans/.github/workflows/main.yml Lines 99 to 105 in 3625461
If this PR is integrated the steps would be redundant (and could cause trouble) - feel free to rebase and remove those two steps, this would also automatically provide a test setup for your update since the new workflow tests on more JDKs as you know. |
48501ce
to
ec1cce8
Compare
…ySimpleTemplatesTest is actually ran
ec1cce8
to
6e91633
Compare
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.
excellent job
@mbien thanks for checking! |
The intention of this PR is to enable running commit-validation on JDK 18. The first commit just enables running NetBeans on JDK 18. The second commit contains the changes necessary to enable running tests on JDK 18:
java.security.manager
toallow
for unittest runsVerifySimpleTemplatesTest
so that the string template tests are actually runtest.run.args
where covered by common definitiontest.run.args
toide.kit
(adding modulejdk.jdi
and exportingcom.sun.jdi
) andjava.hints
(supressing the add-opens definitions from the default arguments)