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

Test results always show duration as "A few seconds"

    XMLWordPrintable

    Details

    • Sprint:
      Blue Ocean 1.4 - beta 1, Blue Ocean 1.4 - beta 2
    • Similar Issues:

      Description

      The classic Test Result view shows the correct test duration but in Blue Ocean, tests have always the "a few seconds" duration. And it's not because these tests took a few seconds.

       core.test1

       Error Details  Error DetailsAssertion: 'core_exited && exit_code == 0'h4.  Stack Trace  Stack Trace 

      1 min 26 sec 1
       core.test2
      Loading...
      43 sec 1
       core.test43
      Loading...
      1 min 25 sec 1
       core.test44
      Loading...
      2 min 53 sec 1
       core.test45
      Loading...
      37 sec 1
       core.test84
      Loading...
      36 sec 1
       core.test98
      Loading...
      46 sec 1
       core.test101
      Loading...
      47 sec 1
       core.test102
      Loading...
      46 sec 1  

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment - - edited

            There seems to be an issue with how we display them - the test data returns the number of seconds:

            {
                "_class": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult",
                "_links": {
                  "stdout": {
                    "_class": "io.jenkins.blueocean.rest.hal.Link",
                    "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/stdout/"
                  },
                  "self": {
                    "_class": "io.jenkins.blueocean.rest.hal.Link",
                    "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/"
                  },
                  "stderr": {
                    "_class": "io.jenkins.blueocean.rest.hal.Link",
                    "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/stderr/"
                  }
                },
                "age": 3,
                "duration": 2.991,
                "errorDetails": "expected:<[FAILURE]> but was:<[ABORTED]>",
                "errorStackTrace": "org.junit.ComparisonFailure: expected:<[FAILURE]> but was:<[ABORTED]>\n\tat org.junit.Assert.assertEquals(Assert.java:115)\n\tat org.junit.Assert.assertEquals(Assert.java:144)\n\tat io.jenkins.blueocean.rest.impl.pipeline.PipelineApiTest.getPipelineRunStopTest(PipelineApiTest.java:56)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\n\tat org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:542)\n\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)\n\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\n",
                "id": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult:junit%2Fio.jenkins.blueocean.rest.impl.pipeline%2FPipelineApiTest%2FgetPipelineRunStopTest",
                "name": "getPipelineRunStopTest – io.jenkins.blueocean.rest.impl.pipeline.PipelineApiTest",
                "state": "UNKNOWN",
                "status": "FAILED"
              }
              }
            
            Show
            jamesdumay James Dumay added a comment - - edited There seems to be an issue with how we display them - the test data returns the number of seconds: { "_class": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult", "_links": { "stdout": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/stdout/" }, "self": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/" }, "stderr": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/task%252FJENKINS-47378_jdk8/runs/4/tests/io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult%3Ajunit%252Fio.jenkins.blueocean.rest.impl.pipeline%252FPipelineApiTest%252FgetPipelineRunStopTest/stderr/" } }, "age": 3, "duration": 2.991, "errorDetails": "expected:<[FAILURE]> but was:<[ABORTED]>", "errorStackTrace": "org.junit.ComparisonFailure: expected:<[FAILURE]> but was:<[ABORTED]>\n\tat org.junit.Assert.assertEquals(Assert.java:115)\n\tat org.junit.Assert.assertEquals(Assert.java:144)\n\tat io.jenkins.blueocean.rest.impl.pipeline.PipelineApiTest.getPipelineRunStopTest(PipelineApiTest.java:56)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\n\tat org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:542)\n\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)\n\tat org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.lang.Thread.run(Thread.java:748)\n", "id": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult:junit%2Fio.jenkins.blueocean.rest.impl.pipeline%2FPipelineApiTest%2FgetPipelineRunStopTest", "name": "getPipelineRunStopTest – io.jenkins.blueocean.rest.impl.pipeline.PipelineApiTest", "state": "UNKNOWN", "status": "FAILED" } }
            Show
            nicu Nicolae Pascu added a comment - https://github.com/jenkinsci/blueocean-plugin/pull/1491
            Hide
            kshultz Karl Shultz added a comment - - edited

            Testing Notes:
            Test cases are provided here.

            Show
            kshultz Karl Shultz added a comment - - edited Testing Notes: Test cases are provided here .

              People

              • Assignee:
                nicu Nicolae Pascu
                Reporter:
                martin_filteau Martin Filteau
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: