Html report creation hangs
ben-gooding-sky opened this issue · comments
Describe the bug
In a multi-module kotlin-only, kotlin-android project the coverage report job hangs forever
The tests all pass correctly, but once it gets to the kover
portion it hangs
Errors
> Task :kover:koverHtmlReport
Kover: HTML report for ':kover' file:///${path-to-project}/kover/build/reports/kover/html/index.html
[2023.11.20 11:53:34] (Coverage): Failed to check raw report file: java.io.FileNotFoundException: ${HOME}/.gradle/daemon/8.4 (Is a directory)
[2023.11.20 11:53:34] (Coverage): Failed to load coverage data from file: ${HOME}/.gradle/daemon/8.4: java.io.FileNotFoundException: ${HOME}/.gradle/daemon/8.4 (Is a directory)
... 30+ mins
Expected behavior
It should pass almost straight away after the file not found bug occurs
Reproducer
Can't reproduce this currently on a fresh project, but occurs with
./gradlew :kover:koverHtmlReport
Reports
If applicable, report files or screenshots.
Environment
- Kover Gradle Plugin version: 0.7.3
- Gradle version: 8.4
- Kotlin project type: Kotlin/JVM/Android
- Coverage Toolset (if customized in build script): Kover
- Other context important for this bug: MacOS apple chip + linux pipeline
Hi,
could you clarify, is this problem reproducing stably?
Yeah it happens consistently, both locally and in the pipeline
I've narrowed down the issue I was having, all works fine normally, but by including just this
implementation(libs.ktor)
Is causing the hanging, which is in a Kotlin JVM module
(note I've not added any code changes)