-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Closed
Labels
:Delivery/BuildBuild or test infrastructureBuild or test infrastructure>test-failureTriaged test failures from CITriaged test failures from CITeam:DeliveryMeta label for Delivery teamMeta label for Delivery team
Description
This is probably fallout from the Forbidden APIs upgrade. This is only failing on Windows. Looks like the reason is perhaps some funkiness in the file path normalization. The tool is outputing a file path with a /
prefix and the assertion is expecting a relative path.
Reproduction line:
null
Applicable branches:
main
Reproduces locally?:
Didn't try
Failure excerpt:
org.spockframework.runtime.ConditionNotSatisfiedError: Condition not satisfied:
normalized(givenOutput).contains(normalized(expected))
| | | | |
| | false | Forbidden APIs output:
| | | DEBUG: Classpath: [file:./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| | | DEBUG: Detected Java 9 or later with module system.
| | | ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| | | ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| | | ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| | | ERROR: Check for forbidden API calls failed, see log.
| | | ==end of forbidden APIs==
| | | Classes with violations:
| | | * org.acme.TestingIO
| | Forbidden APIs output:
| | DEBUG: Classpath: [file:./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| | DEBUG: Detected Java 9 or later with module system.
| | ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| | ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| | ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| | ERROR: Check for forbidden API calls failed, see log.
| | ==end of forbidden APIs==
| | Classes with violations:
| | * org.acme.TestingIO
| Encryption of the configuration cache is enabled.
| Calculating task graph as no configuration cache is available for tasks: :thirdPartyAudit
| =======================================
| Elasticsearch Build Hamster says Hello!
| Gradle Version : 8.1.1
| OS Info : Windows Server 2012 R2 6.3 (amd64)
| JDK Version : 17.0.2+8-86 (Oracle)
| JAVA_HOME : C:/Users/jenkins/.java/openjdk17
| Random Testing Seed : 101AD76F54E76DD6
| In FIPS 140 mode : false
| =======================================
| > Task :thirdPartyAuditResources
|
| > Task :thirdPartyAudit FAILED
| Forbidden APIs output:
| DEBUG: Classpath: [file:/./build/precommit/thirdPartyAudit/thirdPartyAudit/]
| DEBUG: Detected Java 9 or later with module system.
| ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
| ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
| ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
| ERROR: Check for forbidden API calls failed, see log.
| ==end of forbidden APIs==
| Classes with violations:
| * org.acme.TestingIO
|
| 0 problems were found storing the configuration cache.
|
| See the complete report at file:///./build/reports/configuration-cache/2vznkekf0cy6s22bzerw46rc7/cn473lmturooeqioptkv4m91q/configuration-cache-report.html
|
| FAILURE: Build failed with an exception.
|
| * What went wrong:
| Execution failed for task ':thirdPartyAudit'.
| > Audit of third party dependencies failed
|
| * Try:
| > Run with --stacktrace option to get the stack trace.
| > Run with --info or --debug option to get more log output.
| > Run with --scan to get full insights.
|
| * Get more help at https://help.gradle.org
|
| BUILD FAILED in 3s
| 2 actionable tasks: 2 executed
| Configuration cache entry stored.
Encryption of the configuration cache is enabled.
Calculating task graph as no configuration cache is available for tasks: :thirdPartyAudit
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 8.1.1
OS Info : Windows Server 2012 R2 6.3 (amd64)
JDK Version : 17.0.2+8-86 (Oracle)
JAVA_HOME : C:/Users/jenkins/.java/openjdk17
Random Testing Seed : 101AD76F54E76DD6
In FIPS 140 mode : false
=======================================
> Task :thirdPartyAuditResources
> Task :thirdPartyAudit FAILED
Forbidden APIs output:
DEBUG: Classpath: [file:/./build/precommit/thirdPartyAudit/thirdPartyAudit/]
DEBUG: Detected Java 9 or later with module system.
ERROR: Forbidden class/interface use: java.io.File [non-public internal runtime class]
ERROR: in org.acme.TestingIO (method declaration of 'getFile()')
ERROR: Scanned 1 class file(s) for forbidden API invocations (in 0.00s), 1 error(s).
ERROR: Check for forbidden API calls failed, see log.
==end of forbidden APIs==
Classes with violations:
* org.acme.TestingIO
0 problems were found storing the configuration cache.
See the complete report at file:///./build/reports/configuration-cache/2vznkekf0cy6s22bzerw46rc7/cn473lmturooeqioptkv4m91q/configuration-cache-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':thirdPartyAudit'.
> Audit of third party dependencies failed
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
2 actionable tasks: 2 executed
Configuration cache entry stored.
at org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest.assertOutputContains(AbstractGradleFuncTest.groovy:96)
at org.elasticsearch.gradle.internal.precommit.ThirdPartyAuditTaskFuncTest.reports violations and ignores compile only(ThirdPartyAuditTaskFuncTest.groovy:109)
Metadata
Metadata
Assignees
Labels
:Delivery/BuildBuild or test infrastructureBuild or test infrastructure>test-failureTriaged test failures from CITriaged test failures from CITeam:DeliveryMeta label for Delivery teamMeta label for Delivery team