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

Flaky tests on com.cloudbees.jenkins.support.impl.FileDescriptorLimitTest#addContentsFiltered

XMLWordPrintable

    • support-core:1172.va_1fcf85806d0

      Review the test https://github.com/jenkinsci/support-core-plugin/blob/1158.v9189f64fec8c/src/test/java/com/cloudbees/jenkins/support/impl/FileDescriptorLimitTest.java#L53 that is flaky in Java 17. Sensitive to the SupportPlugin.REMOTE_OPERATION_TIMEOUT_MS

      java.lang.AssertionError: 
      
      Expected: a string containing "core file size"
           but: was "Jenkins
      ======
      
      N/A: Either no connection to node or no cached result
      "
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
      	at com.cloudbees.jenkins.support.impl.FileDescriptorLimitTest.addContentsFiltered(FileDescriptorLimitTest.java:66)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	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.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:606)
      	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:264)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      

      Reference

            allan_burdajewicz Allan BURDAJEWICZ
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: