You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running tests without ts.global.delete.folder.on.exit=false option I sometimes see a warning "Exception when reading file log" and after some debugging, it turns out, that this is due to attempt to read log file of Quarkus application after it was removed by our framework.
I noticed this behavior while working on Infinispan tests where Inifispan container was started by podman, probably this added some additional latency.
Reproducer:
git clone [email protected]:fedinskiy/quarkus-test-suite.git -b reproducer/infinispan && cd quarkus-test-suite
mvn clean verify -pl messaging/infinispan-grpc-kafka/ -Dit.test=InfinispanKafkaIT # there is a warning in logs . Debugging shows, that underlying issue is java.nio.file.NoSuchFileException: target/InfinispanKafkaIT/app/out.log
mvn clean verify -pl messaging/infinispan-grpc-kafka/ -Dit.test=InfinispanKafkaIT -Dts.global.delete.folder.on.exit=false # no warning
Warning originates from files quarkus-test-core/src/main/java/io/quarkus/test/logging/FileServiceLoggingHandler.java, but there is similar code in quarkus-test-core/src/main/java/io/quarkus/test/logging/FileLoggingHandler.java
I am not sure, whether this causes some tests to fail, but I cannot rule this possibility out either.
In addition, it would be nice to add information about file and exception to the warning.
The text was updated successfully, but these errors were encountered:
When running tests without
ts.global.delete.folder.on.exit=false
option I sometimes see a warning "Exception when reading file log" and after some debugging, it turns out, that this is due to attempt to read log file of Quarkus application after it was removed by our framework.I noticed this behavior while working on Infinispan tests where Inifispan container was started by podman, probably this added some additional latency.
Reproducer:
git clone [email protected]:fedinskiy/quarkus-test-suite.git -b reproducer/infinispan && cd quarkus-test-suite
mvn clean verify -pl messaging/infinispan-grpc-kafka/ -Dit.test=InfinispanKafkaIT # there is a warning in logs
. Debugging shows, that underlying issue isjava.nio.file.NoSuchFileException: target/InfinispanKafkaIT/app/out.log
mvn clean verify -pl messaging/infinispan-grpc-kafka/ -Dit.test=InfinispanKafkaIT -Dts.global.delete.folder.on.exit=false # no warning
Warning originates from files
quarkus-test-core/src/main/java/io/quarkus/test/logging/FileServiceLoggingHandler.java
, but there is similar code inquarkus-test-core/src/main/java/io/quarkus/test/logging/FileLoggingHandler.java
I am not sure, whether this causes some tests to fail, but I cannot rule this possibility out either.
In addition, it would be nice to add information about file and exception to the warning.
The text was updated successfully, but these errors were encountered: