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
Remove --add-opens for test workers #20999
Remove --add-opens for test workers #20999
Conversation
1d880b2
to
1501de2
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.
I think we should add a more general note about upgrading to the upgrade guide that's not specific to TestNG.
IIUC, some projects may have code that was relying on these --add-opens
to make their tests pass. We should provide some guidance about how to deal with that.
subprojects/base-services/src/main/java/org/gradle/internal/classloader/ClassLoaderUtils.java
Show resolved
Hide resolved
...Test/groovy/org/gradle/workers/internal/JdkIllegalReflectionTestWorkerIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/workers/internal/JdkIllegalReflectionTestWorkerIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/workers/internal/JdkIllegalReflectionTestWorkerIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
...Test/groovy/org/gradle/workers/internal/JdkIllegalReflectionTestWorkerIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/fixture/TestNGCoverage.groovy
Outdated
Show resolved
Hide resolved
89cefd1
to
61b16fc
Compare
...Test/groovy/org/gradle/workers/internal/JdkIllegalReflectionTestWorkerIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
subprojects/testing-jvm/src/integTest/groovy/org/gradle/testing/fixture/TestNGCoverage.groovy
Outdated
Show resolved
Hide resolved
subprojects/core/src/main/java/org/gradle/process/internal/worker/WorkerProcessBuilder.java
Outdated
Show resolved
Hide resolved
subprojects/base-services/src/main/java/org/gradle/internal/classloader/ClassLoaderUtils.java
Show resolved
Hide resolved
subprojects/core/src/main/java/org/gradle/process/internal/worker/WorkerProcessBuilder.java
Outdated
Show resolved
Hide resolved
61b16fc
to
f1ab865
Compare
f1ab865
to
be65210
Compare
be65210
to
342474d
Compare
342474d
to
f31cc1e
Compare
f31cc1e
to
5bf400d
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.
Mostly some language suggestions and a test fix
...plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java
Outdated
Show resolved
Hide resolved
.../integTest/groovy/org/gradle/testing/testng/TestNGLoggingOutputCaptureIntegrationTest.groovy
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/migration/upgrading_version_7.adoc
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/migration/upgrading_version_7.adoc
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/migration/upgrading_version_7.adoc
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/migration/upgrading_version_7.adoc
Outdated
Show resolved
Hide resolved
subprojects/docs/src/docs/userguide/migration/upgrading_version_7.adoc
Outdated
Show resolved
Hide resolved
* Update ClassLoaderUtils to use public JDK APIs when listing a ClassLoader's package * Disable adding any --add-opens flags to test worker processes * Add tests to verify production code and test code behavior is equivilent * Verify users can opt back into previous behavior by adding --add-opens flags manually to test jvm args * Improved multi-jdk support for TestNG Tests * Add release notes and upgrade guide Addressed action items
f8b07a7
to
4b1028e
Compare
OK, I've already triggered a build for you. |
Pre-tested commit build failed. |
@jvandort I'm fixing this. @bot-gradle test and merge |
Your PR is queued. See the queue page for details. |
OK, I've already triggered a build for you. |
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Prior to version 7.5, Gradle added some `--add-opens` flags, that hid potential issues with tests, for Java 16+. gradle/gradle#20999
Fixes: #19771
TODO: