Kotlin / kotlinx-kover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

It seems that this is due to #478 (problem with file names), for sure we will be able to verify after the release of this change.

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)