Ryan Skraba created FLINK-33520: ----------------------------------- Summary: FileNotFoundException when running GPUDriverTest Key: FLINK-33520 URL: https://issues.apache.org/jira/browse/FLINK-33520 Project: Flink Issue Type: Technical Debt Components: Tests Affects Versions: 1.18.0 Reporter: Ryan Skraba
I'd been running into a mysterious error running the {{flink-external-resources}} module tests: {code} java.io.FileNotFoundException: The gpu discovery script does not exist in path /opt/asf/flink/src/test/resources/testing-gpu-discovery.sh. at org.apache.flink.externalresource.gpu.GPUDriver.<init>(GPUDriver.java:98) at org.apache.flink.externalresource.gpu.GPUDriverTest.testGPUDriverWithInvalidAmount(GPUDriverTest.java:64) at {code} >From the command line and IntelliJ, when it seems to works, it _always_ works, >and when it fails it _always_ fails. I finally took a moment to figure it out: >if the {{FLINK_HOME}} environment variable is set (to a valid Flink >distribution of any version), this test fails. This is a very minor irritation, but it's pretty easy to fix. The workaround is to launch the unit test in an environment where this environment variable is not set. -- This message was sent by Atlassian Jira (v8.20.10#820010)