You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/01/21 13:50:43 UTC

[GitHub] [dolphinscheduler] QuakeWang opened a new issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

QuakeWang opened a new issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   When I run TenantE2ETest in Windows environment, which throw some exceptions:
   
   ```java
   java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
   
   	at org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$4(DockerClientProviderStrategy.java:156)
   	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
   	at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:148)
   	at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:146)
   	at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:188)
   	at org.testcontainers.containers.DockerComposeContainer.<init>(DockerComposeContainer.java:135)
   	at org.testcontainers.containers.DockerComposeContainer.<init>(DockerComposeContainer.java:119)
   	at org.apache.dolphinscheduler.e2e.core.DolphinSchedulerExtension.createDockerCompose(DolphinSchedulerExtension.java:192)
   	at org.apache.dolphinscheduler.e2e.core.DolphinSchedulerExtension.beforeAll(DolphinSchedulerExtension.java:83)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$8(ClassBasedTestDescriptor.java:368)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:368)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:192)
   	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:78)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:136)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
   	at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
   	Suppressed: java.lang.NullPointerException
   		at org.apache.dolphinscheduler.e2e.core.DolphinSchedulerExtension.afterAll(DolphinSchedulerExtension.java:159)
   		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$14(ClassBasedTestDescriptor.java:434)
   		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$15(ClassBasedTestDescriptor.java:434)
   		at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
   		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeAfterAllCallbacks(ClassBasedTestDescriptor.java:434)
   		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:216)
   		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:78)
   		at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:149)
   		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   		at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:149)
   		... 29 more
   
   ```
   
   ### What you expected to happen
   
   The docker-compose file may not be read properly due to different directory separators in the Windows environment. 
   
   ### How to reproduce
   
   run the code in a Windows environment.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] kezhenxu94 commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043762173


   Looks like you are using Java version >8, can you try using Java 8 and see what's the result @QuakeWang 


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1073381825


   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] QuakeWang edited a comment on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
QuakeWang edited a comment on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043791706


   > @QuakeWang how do you start Docker Daemon? Inside WSL?
   
   Yes, I have tried starting docker in Windows Desktop as well as in a virtual machine and both give the same error.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] QuakeWang commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
QuakeWang commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043791706


   > @QuakeWang how do you start Docker Daemon? Inside WSL?
   
   yes


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1073806398


   I will try to make E2E compatible with windows in the next few days. Hope it will work. @zhongjiajie @kezhenxu94 


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] QuakeWang commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
QuakeWang commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1073412119


   > Is our e2e still can not be run on windows?
   
   Yes


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] kezhenxu94 commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043771039


   @QuakeWang how do you start Docker Daemon? Inside WSL?


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1019068356


   It is recommended to run docker in Linux environment.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] QuakeWang commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
QuakeWang commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043767223


   > Looks like you are using Java version >8, can you try using Java 8 and see what's the result @QuakeWang
   
   I've tried jdk8 before and it still throws the same exception.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] zhongjiajie commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043752861


   > It is recommended to run docker in Linux environment.
   
   I think we better support E2E run unrelated to platform


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1018522074


   Hi:
   * Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
   * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
   * If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] SbloodyS commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1043761488


   > > It is recommended to run docker in Linux environment.
   > 
   > I think we better support E2E run unrelated to platform
   
   Currently we support both MacOS and Linux platform to run E2E Test. The compatibility of many images is poor on Windows platform. I haven't found a better way to achieve the same effect of docker on windows and Linux/MacOS platform.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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



[GitHub] [dolphinscheduler] zhongjiajie commented on issue #8157: [Bug] [E2E] The E2E Test cannot run in Windows local environment

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on issue #8157:
URL: https://github.com/apache/dolphinscheduler/issues/8157#issuecomment-1073411362


   Is our e2e still can not be run on windows? 


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

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