trino: Flaky tests in trino-main & others: surefire sometimes fails: Cannot invoke "java.io.File.getAbsolutePath()" because the return value of "org.apache.maven.artifact.Artifact.getFile()"
eg https://github.com/trinodb/trino/actions/runs/3237106331/jobs/5306229110
[INFO] Results:
[INFO]
[INFO] Tests run: 682, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/testng/testng/5.10/testng-5.10.pom
[INFO] Failure detected.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:44 min
[INFO] Finished at: 2022-10-12T23:08:40Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project trino-main: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed: Cannot invoke "java.io.File.getAbsolutePath()" because the return value of "org.apache.maven.artifact.Artifact.getFile()" is null -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Error: Process completed with exit code 1.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 37 (37 by maintainers)
I think this helped: 527abc5fb89b69e002c8e4f2b4e993aa04f07e84. We also did improve how we cache the local Maven repository a few months ago, like making sure even a slightly stale cache is restored, hoping that most artifacts will be reused: #14882
If you’re wondering if this issue can be closed, I think yes. We can reopen if necessary.