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

Error parsing TAP Stream when using Yslow.js tool in Jenkins v 2.33

XMLWordPrintable

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

      I am using the Yslow.js file for PhantomJS to do some page monitoring. I have followed the set up rules listed on their page (http://yslow.org/phantomjs/). After building the job, I receive the following error message in console.

      {{org.tap4j.parser.ParserException: Error parsing TAP Stream: Error parsing YAML [ message: This page has 36 external Javascript scripts. Try combining them into one.
      This page has 5 external stylesheets. Try combining them into one.
      This page has 8 external background images. Try combining them with CSS sprites.
      ]: null; expected '<document start>', but found Scalar; in 'string', line 2, column 1:
      This page has 5 external stylesh ...
      ^
      at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:230)
      at org.tap4j.parser.Tap13Parser.parseFile(Tap13Parser.java:193)
      at org.tap4j.plugin.TapParser.parse(TapParser.java:167)
      at org.tap4j.plugin.TapPublisher.loadResults(TapPublisher.java:540)
      at org.tap4j.plugin.TapPublisher.performImpl(TapPublisher.java:412)
      at org.tap4j.plugin.TapPublisher.perform(TapPublisher.java:371)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1753)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      Caused by: org.tap4j.parser.ParserException: Error parsing YAML [ message: This page has 36 external Javascript scripts. Try combining them into one.
      This page has 5 external stylesheets. Try combining them into one.
      This page has 8 external background images. Try combining them with CSS sprites.
      ]: null; expected '<document start>', but found Scalar; in 'string', line 2, column 1:
      This page has 5 external stylesh ...
      ^
      at org.tap4j.parser.Tap13Parser.parseDiagnostics(Tap13Parser.java:429)
      at org.tap4j.parser.Tap13Parser.parseLine(Tap13Parser.java:262)
      at org.tap4j.parser.Tap13Parser.parseTapStream(Tap13Parser.java:224)
      ... 15 more
      Caused by: expected '<document start>', but found Scalar
      in 'string', line 2, column 1:
      This page has 5 external stylesh ...
      ^

      at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
      at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
      at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
      at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
      at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
      at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
      at org.yaml.snakeyaml.Yaml.load(Yaml.java:400)
      at org.tap4j.parser.Tap13Parser.parseDiagnostics(Tap13Parser.java:424)
      ... 17 more
      TAP parse errors found in the build. Marking build as UNSTABLE}}

      Please advise.

            kinow Bruno P. Kinoshita
            nak1 Nick Keene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: