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

Performance plugin 2.2 breaks glob file finding

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • performance-plugin
    • None
    • Jenkins 2.46 LTS on RHEL

      Since updating from 2.1 to 2.2, glob lookups are failing for me.

      For example, in the "Publish performance test result report" box, in the JMeter "Report files" field, I have it configured to include "*/results/.jtl"

      This has worked for years

      However, as of the 2.2 update, I'm now getting this:

       

      ERROR: Step ‘Publish Performance test result report’ aborted due to exception:
      
      [java.io.FileNotFoundException|http://stacktrace.jenkins-ci.org/search?query=java.io.FileNotFoundException]
      
      : /var/lib/jenkins/workspace/job-name/HOST/[redacted]/**/results/*.jtl (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) 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)
      

      If I downgrade the plugin, it starts working as expected

      FWIW, this is on a Matrix style job.

      If I set the "Report files" field to include a specific file name, rather than glob-style, it works.

      So it looks like something in the latest release broke glob lookups, at least on Matrix jobs (I have not tested a non-matrix job)

        1. save result config.png
          save result config.png
          75 kB
        2. res.csv
          0.6 kB
        3. default1.jmx
          5 kB
        4. jmeter_test_results.jtl
          15 kB

          [JENKINS-43503] Performance plugin 2.2 breaks glob file finding

          Marc Esher created issue -
          Andrey Pokhilko made changes -
          Assignee Original: Andrey Pokhilko [ undera ] New: Artem Fedorov [ artem_fedorov ]

          For me too. The file (jtl) exist but I have this message :

          c:\Jenkins\workspace\PerformanceTestError>exit 0 ERROR: Step ‘Publish Performance test result report’ aborted due to exception:

          java.io.FileNotFoundException

          : c:\Jenkins\workspace\PerformanceTestError\Output\results\results.jtl (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) 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:81) 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:1758) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405)

          Yannick FRINDEL added a comment - For me too. The file (jtl) exist but I have this message : c:\Jenkins\workspace\PerformanceTestError>exit 0 ERROR: Step ‘Publish Performance test result report’ aborted due to exception: java.io.FileNotFoundException : c:\Jenkins\workspace\PerformanceTestError\Output\results\results.jtl (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) 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:81) 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:1758) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405)

          Andrey Pokhilko added a comment - Fixed with https://github.com/jenkinsci/performance-plugin/pull/96
          Andrey Pokhilko made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Andrey Pokhilko
          Path:
          src/main/java/hudson/plugins/performance/PerformancePublisher.java
          src/main/java/hudson/plugins/performance/parsers/ParserFactory.java
          src/test/java/hudson/plugins/performance/parsers/ParserFactoryTest.java
          http://jenkins-ci.org/commit/performance-plugin/606994517f91f65977072b47ebac4f987b4fe24d
          Log:
          Merge pull request #96 from artem-fedorov/fix-43503

          Fix JENKINS-43503

          Compare: https://github.com/jenkinsci/performance-plugin/compare/10c66d9af907...606994517f91

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrey Pokhilko Path: src/main/java/hudson/plugins/performance/PerformancePublisher.java src/main/java/hudson/plugins/performance/parsers/ParserFactory.java src/test/java/hudson/plugins/performance/parsers/ParserFactoryTest.java http://jenkins-ci.org/commit/performance-plugin/606994517f91f65977072b47ebac4f987b4fe24d Log: Merge pull request #96 from artem-fedorov/fix-43503 Fix JENKINS-43503 Compare: https://github.com/jenkinsci/performance-plugin/compare/10c66d9af907...606994517f91
          Andrey Pokhilko made changes -
          Link New: This issue is duplicated by JENKINS-43505 [ JENKINS-43505 ]

          Yannick FRINDEL added a comment - - edited

          So if I understand well, we need to update the performance plugin for solving the problem, right ?

          Yannick FRINDEL added a comment - - edited So if I understand well, we need to update the performance plugin for solving the problem, right ?

          Marc Esher added a comment -

          Wow. Thanks for the fast fix!

          Marc Esher added a comment - Wow. Thanks for the fast fix!

          yes, appreciate

          Yannick FRINDEL added a comment - yes, appreciate

            artem_fedorov Artem Fedorov
            marcesher Marc Esher
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: