You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/05/21 04:48:48 UTC

[GitHub] [maven-surefire] cowwoc opened a new pull request #299: Added integration test for surefire-1629

cowwoc opened a new pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-633306815


   @cowwoc 
   I have the result after running the test on our fix in #293 .
   The problem is that your package is named `java`. You should not create such of folder `module2/src/test/java/java/testcase` and create e.g. `module2/src/test/java/testcase`.
   This is the error found in the dump:
   ```
   Error occurred during initialization of boot layer
   java.lang.LayerInstantiationException: Class loader (instance of):
   'app' tried to define prohibited package name: java.testcase
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] cowwoc commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
cowwoc commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-633385625


   @Tibor17 This is intentional. I am expecting to get the same error message in forked-mode as in non-forked mode. Meaning, Surefire should not crash/dump. It should output the compiler error as it does in non-forked mode.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-636242346


   It is a little complicated.
   So, the latest commit in master is able to print the message `Error occurred during initialization of boot layer`.
   
   Normally the plugin is using the process pipes however you wont see these problems with tcp/ip channel used by the forked process.
   The only issue why this channel is not enabled by default is the reason that we introduced it in current version and the master branch and we want to prevent from using it by 100% of users. It's better to let it used by little percentage and fix some issue however we do not expect any. We will enabled tcp/ip channel in the last milestone version. This is how you can enable the tcp/ip:
   
   ```
   <configuration>
     <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
   </configuration>
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 edited a comment on pull request #299: [SUREFIRE-1629] Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 edited a comment on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-1019244699


   @cowwoc 
   We have several integration tests which are using `<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>`. For instance see the tests in `ConsoleOutputIT`. Truly it is hard to simulate native calls with standard output, for instance JVM and GC of JPMS uses native calls in order to print the JVM warning (regarding JVM warnings `Error occurred during initialization of boot layer`) on the standard output and error. One way would be `java.io.FileDescriptor.out` obviosly refers to the native calls, but I do not use to show it in the public audience. If you would try to use native calls in new integration test, then it would confirm the fix with `<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 commented on pull request #299: [SUREFIRE-1629] Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-1019244699


   @cowwoc 
   We have several integration tests which are using `<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>`. For instance see the tests in `ConsoleOutputIT`. Truly it is hard to simulate native calls with standard output, for instance JVM and GC uses native calls in order to print the messages on the standard output and error. One way would be `java.io.FileDescriptor.out` obviosly refers to the native calls, but I do not use to show it in the public audience. If you would try to use native calls in new integration test, then it would confirm the fix with `<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-633021818


   I am waiting for our build process to complete. Then i will cherry pick your last three commits and i will execute it localy. Let's see what will happen afterwards...


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] cowwoc commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
cowwoc commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-636256840


   @Tibor17 Sounds good. Can you please make the integration test pass with this configuration and leave a note to remove it when the implementation becomes default?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] cowwoc commented on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
cowwoc commented on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-631878071


   The interesting bit is if you remove module1, module2 from the testcase (convert it to a single-module project) then Surefire returns the compiler error to the console without crashing. The presence of modules causes it to crash for some reason.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-surefire] Tibor17 edited a comment on pull request #299: Added integration test for surefire-1629

Posted by GitBox <gi...@apache.org>.
Tibor17 edited a comment on pull request #299:
URL: https://github.com/apache/maven-surefire/pull/299#issuecomment-636242346


   It is a little complicated.
   So, the latest commit in master is able to print the message `Error occurred during initialization of boot layer`.
   
   Normally the plugin is using the process pipes however you wont see these problems with tcp/ip channel used by the forked process.
   The only issue why this channel is not enabled by default is the reason that we introduced it in current version and the master branch and we want to prevent from using it by 100% of users. It's better to let it used by little percentage and fix some issues however we do not expect any. We will enable the tcp/ip channel in the last milestone version. This is how you can enable the tcp/ip:
   
   ```
   <configuration>
     <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
   </configuration>
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org