Skip to content
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

Disable caching on kover artifact tasks #637

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

remcomokveld
Copy link
Contributor

Fixes #633

Alternative solution to #636

Caching should only be enabled for tasks that do heavy computations and this task does not do so.

Potentially it would be good to merge both PRs, even if caching is disabled, we should make sure that data that is used to produce an output is declared as an import.

@@ -19,7 +19,6 @@ import javax.inject.*
*
* This artifact that will be shared between projects through dependencies for creating merged reports.
*/
@CacheableTask
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's specify @DisableCachingByDefault instead of @CacheableTask

@@ -19,7 +19,6 @@ import javax.inject.*
*
* This artifact that will be shared between projects through dependencies for creating merged reports.
*/
@CacheableTask
Copy link
Collaborator

@shanshin shanshin Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please, rerun all tests after this change, e.g. BuildCacheRelocationTests must fall.

@remcomokveld remcomokveld force-pushed the artifact-cache-issue-disable-cache branch from 5911cf6 to 8ca086b Compare June 18, 2024 18:39
Copy link
Collaborator

@shanshin shanshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shanshin shanshin merged commit 224671b into Kotlin:main Jun 18, 2024
@remcomokveld remcomokveld deleted the artifact-cache-issue-disable-cache branch June 18, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

koverCachedVerify failure due to incorrect paths in the .artifact file
2 participants