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

TAP Stream results summary page contains links that fail

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • tap-plugin
    • None

      The "TAP Test Result" link in Jenkins for the TAP test result summary lists links to a page of links to all the individual TAP test results for. These result links all result in http 404 errors and not the details of the tests.

          [JENKINS-17855] TAP Stream results summary page contains links that fail

          Thanks for reporting Alex. Lots of bugs appearing after the last release. I'll try to start a new cycle for TAP plug-in and Jenkins within the next days.

          Bruno P. Kinoshita added a comment - Thanks for reporting Alex. Lots of bugs appearing after the last release. I'll try to start a new cycle for TAP plug-in and Jenkins within the next days.

          Hello Alex! I've fixed this issue while working on another issue few days ago. I was fixing the bug and spotted and included that fix in the same commit message.

          I can't recall which commit it was, but I believe it'll be fixed in the next release.

          Let me know if it doesn't work.

          All the best, and thanks again!
          /B

          Bruno P. Kinoshita added a comment - Hello Alex! I've fixed this issue while working on another issue few days ago. I was fixing the bug and spotted and included that fix in the same commit message. I can't recall which commit it was, but I believe it'll be fixed in the next release. Let me know if it doesn't work. All the best, and thanks again! /B

          Fixed in 1.11 (should be available through the update site in the next minute/hours)

          Bruno P. Kinoshita added a comment - Fixed in 1.11 (should be available through the update site in the next minute/hours)

          Alex Newnham added a comment -

          Reopening. We are now running 1.11 and are still seeing this issue with failed links.

          The Summary Page links to URLs such as http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-1145/

          jenkins.log is showing

          INFO: trying to get relative path, but it is not my ancestor, and we're not in a stapler request. Trying absolute hudson url...
          Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom
          INFO: Here's our relative path: http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-3/
          Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom
          INFO: trying to get relative path, but it is not my ancestor, and we're not in a stapler request. Trying absolute hudson url...
          Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom
          INFO: Here's our relative path: http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-1081/

          Alex Newnham added a comment - Reopening. We are now running 1.11 and are still seeing this issue with failed links. The Summary Page links to URLs such as http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-1145/ jenkins.log is showing INFO: trying to get relative path, but it is not my ancestor, and we're not in a stapler request. Trying absolute hudson url... Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom INFO: Here's our relative path: http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-3/ Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom INFO: trying to get relative path, but it is not my ancestor, and we're not in a stapler request. Trying absolute hudson url... Jul 23, 2013 10:35:45 AM hudson.tasks.test.TestObject getRelativePathFrom INFO: Here's our relative path: http://jenkinshost//view/play/job/Web-QA-Performance/988//tapTestReport//var/lib/jenkins/jobs/Web-QA-Performance/builds/2013-07-22_20-01-34/tap-master-files/test-reports/pageStatistics.tap-1081/

          Confirmed it after testing JENKINS-18885. It's due to the subdirectory. I'd copied the junit actions from jenkins core, but tap works slightly different, so I'll have to add extra code to handle subdirectories, adding them to the breadcrumb correctly too. My bad.

          Bruno P. Kinoshita added a comment - Confirmed it after testing JENKINS-18885 . It's due to the subdirectory. I'd copied the junit actions from jenkins core, but tap works slightly different, so I'll have to add extra code to handle subdirectories, adding them to the breadcrumb correctly too. My bad.

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/tap4j/plugin/TapBuildAction.java
          src/main/java/org/tap4j/plugin/model/TapStreamResult.java
          src/main/java/org/tap4j/plugin/model/TapTestResultResult.java
          http://jenkins-ci.org/commit/tap-plugin/21e7af07d5ae18327eb7a2626184970a6ff1d995
          Log:
          JENKINS-18885 and JENKINS-17855 fixing 404 URLs... round 2

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/tap4j/plugin/TapBuildAction.java src/main/java/org/tap4j/plugin/model/TapStreamResult.java src/main/java/org/tap4j/plugin/model/TapTestResultResult.java http://jenkins-ci.org/commit/tap-plugin/21e7af07d5ae18327eb7a2626184970a6ff1d995 Log: JENKINS-18885 and JENKINS-17855 fixing 404 URLs... round 2

          Sub directories were causing this issue. Hopefully fixed now. Will cut a fix-release tonight, but we have another release on Friday/Saturday, so if the issue still occurs we can try to tackle it down again.

          Thanks!

          Bruno P. Kinoshita added a comment - Sub directories were causing this issue. Hopefully fixed now. Will cut a fix-release tonight, but we have another release on Friday/Saturday, so if the issue still occurs we can try to tackle it down again. Thanks!

          Fixed in 1.12

          Bruno P. Kinoshita added a comment - Fixed in 1.12

            kinow Bruno P. Kinoshita
            alex_n Alex Newnham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: