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

org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.

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

       

      My tap passed the validation at: http://instanttap.appspot.com/

      But the parsing by the plugin failed.

      The tap was generated by npm tap version 14.8.2

      https://www.npmjs.com/package/tap

       

      Looking for TAP results report in workspace using pattern: */.tap
      Saving reports...
      org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
      at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:257)
      at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:231)
      at org.tap4j.plugin.TapParser.parse(TapParser.java:173)
      at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:572)
      at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:444)
      at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:403)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1840)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found.
      at org.tap4j.parser.Tap13Parser.parseLine(Tap13Parser.java:354)
      at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:252)
      ... 15 more
      TAP parse errors found in the build. Marking build as UNSTABLE
      TAP Reports Processing: FINISH

       

          [JENKINS-59881] org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.

          Emmanuel Andre created issue -
          Emmanuel Andre made changes -
          Description Original:  

          My tap passed the validation at: [http://instanttap.appspot.com/ |http://instanttap.appspot.com/]

          But the parsing by the plugin failed.

          The tap was generated by npm tap version 14.8.0 

          [https://www.npmjs.com/package/tap]

          !image-2019-10-22-19-25-00-514.png!

           

          Looking for TAP results report in workspace using pattern: **/*.tap
          Saving reports...
          org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
           at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:257)
           at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:231)
           at org.tap4j.plugin.TapParser.parse(TapParser.java:173)
           at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:572)
           at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:444)
           at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:403)
           at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.post2(Build.java:186)
           at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
           at hudson.model.Run.execute(Run.java:1840)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
          Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found.
           at org.tap4j.parser.Tap13Parser.parseLine(Tap13Parser.java:354)
           at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:252)
           ... 15 more
          TAP parse errors found in the build. Marking build as UNSTABLE
          TAP Reports Processing: FINISH

           
          New:  

          My tap passed the validation at: [http://instanttap.appspot.com/ |http://instanttap.appspot.com/]

          But the parsing by the plugin failed.

          The tap was generated by npm tap version 14.8.2

          [https://www.npmjs.com/package/tap]

          !image-2019-10-22-19-25-00-514.png!

           

          Looking for TAP results report in workspace using pattern: **/*.tap
           Saving reports...
           org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
           at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:257)
           at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:231)
           at org.tap4j.plugin.TapParser.parse(TapParser.java:173)
           at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:572)
           at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:444)
           at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:403)
           at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
           at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
           at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
           at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
           at hudson.model.Build$BuildExecution.post2(Build.java:186)
           at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
           at hudson.model.Run.execute(Run.java:1840)
           at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
           at hudson.model.ResourceController.execute(ResourceController.java:97)
           at hudson.model.Executor.run(Executor.java:429)
           Caused by: org.tap4j.parser.ParserException: Duplicated TAP Plan found.
           at org.tap4j.parser.Tap13Parser.parseLine(Tap13Parser.java:354)
           at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:252)
           ... 15 more
           TAP parse errors found in the build. Marking build as UNSTABLE
           TAP Reports Processing: FINISH

           

          I downgraded to version 2.0.1 and this solved the issue. There seems to be a regression with plugin version 2.3

          Emmanuel Andre added a comment - I downgraded to version 2.0.1 and this solved the issue. There seems to be a regression with plugin version 2.3

          manuandre I haven't updated instanttap in a while, so it may be validating for an earlier version of tap4j. Unfortunately I don't have much bandwidth for tap-plugin at the moment. Will update the issue later once I have time to look into it with calm.

          Thanks for the good description and comment about which version you downgraded and fixed it. That will help troubleshooting it. If you have a pull request, feel free to ping me as it takes normally only a few minutes for me to review PR's, so I can find some spare time for that.

          Cheers
          Bruno

          Bruno P. Kinoshita added a comment - manuandre I haven't updated instanttap in a while, so it may be validating for an earlier version of tap4j. Unfortunately I don't have much bandwidth for tap-plugin at the moment. Will update the issue later once I have time to look into it with calm. Thanks for the good description and comment about which version you downgraded and fixed it. That will help troubleshooting it. If you have a pull request, feel free to ping me as it takes normally only a few minutes for me to review PR's, so I can find some spare time for that. Cheers Bruno

            kinow Bruno P. Kinoshita
            manuandre Emmanuel Andre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: