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

ParserDetector in 2.2 with a wildcard junit report causes java.io.FileNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • performance-plugin
    • None
    • Jenkins 2.46.1
      Performance plugin 2.2

      I have a matrix job using the performance plugin. It generates junit XML files under a folder log/junit. The performance plugin is set to grab log/junit/*.xml . When running the artifact archiver find a xml file but the performance plugin ends up failing with:

      ERROR: Step ‘Publish Performance test result report’ aborted due to exception: 
      java.io.FileNotFoundException: /srv/jenkins-workspace/workspace/selenium-GettingStarted/BROWSER/firefox/MEDIAWIKI_ENVIRONMENT/beta/PLATFORM/Linux/label/BrowserTests/log/junit/*.xml (No such file or directory)
      	at java.io.FileInputStream.open(Native Method)
      	at java.io.FileInputStream.<init>(FileInputStream.java:146)
      	at java.io.FileReader.<init>(FileReader.java:72)
      	at hudson.plugins.performance.parsers.ParserDetector.detect(ParserDetector.java:21)
      	at hudson.plugins.performance.parsers.ParserFactory.getParser(ParserFactory.java:26)
      	at hudson.plugins.performance.PerformancePublisher.getParsers(PerformancePublisher.java:439)
      	at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:481)
      	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:186)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      	at hudson.model.Run.execute(Run.java:1753)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
       at hudson.model.Executor.run(Executor.java:405)
      

      Full console log https://phabricator.wikimedia.org/P5360

      Rolling back to Performance plugin 2.0 fix the issue. That seems to be related to the parserdetector included in 2.2 which apparently tries to use the *.xml literally instead of expanding it first to get a list of files?

      Downstream bug: https://phabricator.wikimedia.org/T164296

            undera Andrey Pokhilko
            hashar Antoine Musso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: