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

Bogus Scala Compiler warning about missing files after test failure in sbt

XMLWordPrintable

      wsbt test run fails in Jenkins build, producing a line such as:

      [error] Total time: 127 s, completed Oct 7, 2019 9:11:30 AM
      

      Later, during

      post { always {  recordIssues enabledForFailure: true, tools: [scala()] } }
      

      the following output occurs in Jenkins log:

      [Scala Compiler] [-ERROR-] Can't resolve absolute paths for some files:
      [Scala Compiler] [-ERROR-] - Total time: 127 s, completed Oct 7, 2019 9
      [Scala Compiler] [-ERROR-] Can't create fingerprints for some files:
      [Scala Compiler] [-ERROR-] - 'Total time: 127 s, completed Oct 7, 2019 9', IO exception has been thrown: java.nio.file.NoSuchFileException: Total time: 127 s, completed Oct 7, 2019 9
      

      Looks like a false positive from [Sbt]ScalacParser regex capture at first glance:

      https://github.com/jenkinsci/analysis-model/blob/ddc3068166835508c4a5b1a8d30cec7d92109bfc/src/main/java/edu/hm/hafner/analysis/parser/SbtScalacParser.java#L19

      https://github.com/jenkinsci/analysis-model/blob/ddc3068166835508c4a5b1a8d30cec7d92109bfc/src/main/java/edu/hm/hafner/analysis/parser/ScalacParser.java#L20

      Not a big deal at all, but can be confusing (in particular since scalac ran green).

            jarredparrett Jarred Parrett
            proemer Patrick Roemer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: