Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2323

Apex Unittest ApexYarnLauncherTest Failed on Jenkins If Directory Contains Space

Details

    Description

      I'm using Jenkins to run postcommit test on different JDK versions. The directory that is used for project root contains space, like "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_JDK_Versions_Test/jdk/JDK 1.8 (latest)/..." and cause ApexYarnLauncherTest failed.

      Error log:

      java.lang.AssertionError: 
      Expected: a string containing "apex-common-"
           but: was "[/usr/local/asfpackages/java/jdk1.8.0_121/lib/tools.jar]"
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.junit.Assert.assertThat(Assert.java:956)
      	at org.junit.Assert.assertThat(Assert.java:923)
      	at org.apache.beam.runners.apex.ApexYarnLauncherTest.testGetYarnDeployDependencies(ApexYarnLauncherTest.java:60)
      

      Jenkins link:
      https://builds.apache.org/job/beam_PostCommit_Java_JDK_Versions_Test/12/jdk=JDK%201.8%20(latest),label=beam/

      It's probably more relative to Jenkins since running the test in my local machine under space-contained-directory is successful.

      +jasonkuster

      Attachments

        Activity

          People

            Unassigned Unassigned
            markflyhigh Mark Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: