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

5 views
Skip to first unread message

manuandre@gmail.com (JIRA)

unread,
Oct 22, 2019, 7:29:03 AM10/22/19
to jenkinsc...@googlegroups.com
Emmanuel Andre created an issue
 
Jenkins / Bug JENKINS-59881
org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Attachments: failedtap.tap, image-2019-10-22-19-25-00-514.png
Components: tap-plugin
Created: 2019-10-22 11:28
Priority: Major Major
Reporter: Emmanuel Andre

 

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.0 

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

manuandre@gmail.com (JIRA)

unread,
Oct 23, 2019, 4:09:02 AM10/23/19
to jenkinsc...@googlegroups.com
Emmanuel Andre updated an issue
Change By: Emmanuel Andre
 

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

manuandre@gmail.com (JIRA)

unread,
Oct 23, 2019, 6:28:03 AM10/23/19
to jenkinsc...@googlegroups.com
Emmanuel Andre commented on Bug JENKINS-59881
 
Re: org.tap4j.parser.ParserException: Error parsing TAP Stream: Duplicated TAP Plan found.

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

brunodepaulak@yahoo.com.br (JIRA)

unread,
Oct 25, 2019, 2:24:03 AM10/25/19
to jenkinsc...@googlegroups.com

Emmanuel Andre 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

Reply all
Reply to author
Forward
0 new messages