Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70781

hudson.util.ProcessTreeTest#processProperlyKilledUnix fails on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Building core with maven 3.9.0 on eclipse temurin 19.0.2 on macOS 13.2.1

      Building core via mvn clean verify -Dtest=hudson.util.ProcessTreeTest#processProperlyKilledUnix emits the following error:

      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.286 s <<< FAILURE! - in hudson.util.ProcessTreeTest
      [ERROR] hudson.util.ProcessTreeTest.processProperlyKilledUnix  Time elapsed: 8.261 s  <<< FAILURE!
      java.lang.AssertionError: 
      
      Expected: not a string containing "sleep 100000"
           but: was "Legacy code started this job.  No cause information is available\nRunning as SYSTEM\nBuilding in workspace /Users/alex/github/jenkins/test/target/j h16377702109887518028/workspace/test1\n[test1] $ /bin/sh -xe /Users/alex/github/jenkins/test/target/jenkins991816571209404711.sh\n+ ps -ef\n+ grep sleep\n  501   864   756   0 Sat09AM ??         0:00.00 sleep 31536000\n  501 48340     1   0 11:53PM ??         0:00.01 sleep 100000\n  501 61234     1   0 10:33AM ??         0:00.01 sleep 100000\n  501 61240 61238   0 10:33AM ??         0:00.00 grep sleep\nFinished: SUCCESS\n"
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
      	at org.jvnet.hudson.test.JenkinsRule.assertLogNotContains(JenkinsRule.java:1513)
      	at hudson.util.ProcessTreeTest.processProperlyKilledUnix(ProcessTreeTest.java:90)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:608)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
      	at java.base/java.lang.Thread.run(Thread.java:1589)
      

            Unassigned Unassigned
            notmyfault Alexander Brandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: