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

Broken link on Tap Results

    XMLWordPrintable

Details

    Description

      Tap results generate broken links. I don't know exactly de content is expected to be on those links

      Related code is here:

      https://github.com/jenkinsci/tap-plugin/blob/master/src/main/resources/org/tap4j/plugin/model/TapStreamResult/body.jelly#L66
      https://github.com/jenkinsci/tap-plugin/blob/65b57b2cbbea64c033cd07511ad71f46a370bcee/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java#L171

      e.g.

      Task for https://github.com/albfan/git-ignore

      test stream are generated with

      $ git clone https://github.com/albfan/git-ignore
      $ cd t/
      $ make DEFAULT_TEST_TARGET=jenkins

      test stream outputs on tapout/ dir.

      Here they are:

      t/tapout/t0001-exclude.sh

      ok 1 - exclude a single file
      ok 2 - exclude a bunch of files

      1. passed all 2 test(s)
        1..2

      t/tapout/t0002-ignore.sh

      ok 1 - Ignoring a single file
      ok 2 - Ignoring a bunch of files

      1. passed all 2 test(s)
        1..2

      Here is a generated link for one of these 4 test

      <jenkins-url>/job/git-ignore/10/tapTestReport/t%2Ftapout%2Ft0001-exclude.sh-1/

      Attachments

        Activity

          albfan Alberto Fanjul Alonso created issue -
          albfan Alberto Fanjul Alonso made changes -
          Field Original Value New Value
          Description Tap results generate broken links. I don't know exactly de content is expected to be on those links

          !tap results.jpg|thumbnail!

          Related code is here:

          https://github.com/jenkinsci/tap-plugin/blob/master/src/main/resources/org/tap4j/plugin/model/TapStreamResult/body.jelly#L66

          e.g.

          Task for https://github.com/albfan/git-ignore

          test stream are generated with

          $ git clone https://github.com/albfan/git-ignore
          $ cd t/
          $ make DEFAULT_TEST_TARGET=jenkins

          test are on tapout/ dir.

          This is it's output

          t/tapout/t0001-exclude.sh

          ok 1 - exclude a single file
          ok 2 - exclude a bunch of files
          # passed all 2 test(s)
          1..2

          t/tapout/t0002-ignore.sh

          ok 1 - Ignoring a single file
          ok 2 - Ignoring a bunch of files
          # passed all 2 test(s)
          1..2

          Here is a generated link for one of these 4 test

          <jenkins-url>/job/git-ignore/10/tapTestReport/t%2Ftapout%2Ft0001-exclude.sh-1/
          Tap results generate broken links. I don't know exactly de content is expected to be on those links

          !tap results.jpg|thumbnail!

          Related code is here:

          https://github.com/jenkinsci/tap-plugin/blob/master/src/main/resources/org/tap4j/plugin/model/TapStreamResult/body.jelly#L66
          https://github.com/jenkinsci/tap-plugin/blob/65b57b2cbbea64c033cd07511ad71f46a370bcee/src/main/java/org/tap4j/plugin/model/TapTestResultResult.java#L171

          e.g.

          Task for https://github.com/albfan/git-ignore

          test stream are generated with

          $ git clone https://github.com/albfan/git-ignore
          $ cd t/
          $ make DEFAULT_TEST_TARGET=jenkins

          test stream outputs on tapout/ dir.

          Here they are:

          t/tapout/t0001-exclude.sh

          ok 1 - exclude a single file
          ok 2 - exclude a bunch of files
          # passed all 2 test(s)
          1..2

          t/tapout/t0002-ignore.sh

          ok 1 - Ignoring a single file
          ok 2 - Ignoring a bunch of files
          # passed all 2 test(s)
          1..2

          Here is a generated link for one of these 4 test

          <jenkins-url>/job/git-ignore/10/tapTestReport/t%2Ftapout%2Ft0001-exclude.sh-1/
          kinow Bruno P. Kinoshita made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 163349 ] JNJira + In-Review [ 208801 ]

          People

            kinow Bruno P. Kinoshita
            albfan Alberto Fanjul Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: