-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
koverHtmlReport fails randomly with "Stream closed" or "zip file closed" #436
Comments
I see this, and it is random, sometimes it fails, and other times it works, without any change in the code, as rerunning the action usually passes. |
I just got the same issue. Using kover
|
May or may not be related to #446 |
Fixed in |
Still experiencing this randomly in |
@shanshin can you share the commit where this was fixed? |
@technoir42 JetBrains/coverage-report@11feee6 This bug appears when running code of FreeMarker inside Gradle Workers, and for most cases it resolves by re-reading resources (report template) from the jar. The root cause was not found, because it was not possible to create a stable producer, perhaps this is due to the peculiarity of the work of the Gradle classloaders themselves, since full isolation mode is used for Gradle workers. |
@shanshin I still get this from time to time with FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':[removed]:koverHtmlReport'.
> A failure occurred while executing kotlinx.kover.gradle.plugin.tools.kover.HtmlReportAction
> Failed to generate file: /builds/[removed]/build/reports/kover/html/ns-7/index_SORT_BY_BLOCK.html. zip file closed |
@JavierSegoviaCordoba, same issue already opened #510 |
Describe the bug
koverHtmlReport
tasks fail randomly in a multi-project build with JVM and Android modules.Errors
Expected behavior
No random failures.
Reproducer
The only configuration we changed is exclude some classes.
Reports
If applicable, report files or screenshots.
Environment
The text was updated successfully, but these errors were encountered: