Describe the bug
I run OverheadTests in windows OS.
But the test failed: java.nio.file.NoSuchFileException: .\k6_out_none.json.
Steps to reproduce
Just start simply run OverheadTests in windows OS.
Expected behavior
Test passed
Actual behavior
Test failed: java.nio.file.NoSuchFileException: .\k6_out_none.json
Javaagent or library instrumentation version
main branch
Environment
JDK: openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment Temurin-11.0.21+9 (build 11.0.21+9)
OpenJDK 64-Bit Server VM Temurin-11.0.21+9 (build 11.0.21+9, mixed mode)
OS: Win11
docker
Additional context
public GenericContainer<?> build() {
Path k6OutputFile = namingConventions.container.k6Results(agent);
return new GenericContainer<>(DockerImageName.parse("loadimpact/k6"))
.withNetwork(network)
.withNetworkAliases("k6")
.withLogConsumer(new Slf4jLogConsumer(logger))
.withCopyFileToContainer(MountableFile.forHostPath("./k6"), "/app")
/ / \results\k6_out_none.json and /results
.withFileSystemBind(namingConventions.localResults(), namingConventions.containerResults())
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root"))
.withCommand(
"run",
"-u",
String.valueOf(config.getConcurrentConnections()),
"-i",
String.valueOf(config.getTotalIterations()),
"--rps",
String.valueOf(config.getMaxRequestRate()),
"--summary-export",
// The result is `\results\k6_out_none.json`. It is a wrong path in docker, so it won't be mounted.
// That's why the `ResultsCollector` can't find the file
k6OutputFile.toString(),
"/app/basic.js")
.withStartupCheckStrategy(
new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(15)));
}
The same problem in K6Container
public GenericContainer<?> build() {
Path k6OutputFile = namingConventions.container.k6Results(agent);
return new GenericContainer<>(DockerImageName.parse("loadimpact/k6"))
.withNetwork(network)
.withNetworkAliases("k6")
.withLogConsumer(new Slf4jLogConsumer(logger))
.withCopyFileToContainer(MountableFile.forHostPath("./k6"), "/app")
.withFileSystemBind(namingConventions.localResults(), namingConventions.containerResults())
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root"))
.withCommand(
"run",
"-u",
String.valueOf(config.getConcurrentConnections()),
"-i",
String.valueOf(config.getTotalIterations()),
"--rps",
String.valueOf(config.getMaxRequestRate()),
"--summary-export",
//"/results/k6_out_none.json", the file will not be mounted too
k6OutputFile.toString(),
"/app/basic.js")
.withStartupCheckStrategy(
new OneShotStartupCheckStrategy().withTimeout(Duration.ofMinutes(15)));
}
Describe the bug
I run
OverheadTestsin windows OS.But the test failed:
java.nio.file.NoSuchFileException: .\k6_out_none.json.Steps to reproduce
Just start simply run
OverheadTestsin windows OS.Expected behavior
Test passed
Actual behavior
Test failed:
java.nio.file.NoSuchFileException: .\k6_out_none.jsonJavaagent or library instrumentation version
main branch
Environment
JDK: openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment Temurin-11.0.21+9 (build 11.0.21+9)
OpenJDK 64-Bit Server VM Temurin-11.0.21+9 (build 11.0.21+9, mixed mode)
OS: Win11
docker
Additional context
The same problem in
K6Container