intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Poor cacheability of `test` task

Open jhonnen opened this issue 1 year ago • 0 comments

What happened?

When executing the test task on an IntelliJ plugin on two different machines with the same source code, the task inputs are often different, causing Build Cache misses: Screenshot 2024-03-08 112309

The following task inputs differ:

  • build/tmp/initializeIntelliJPlugin/coroutines-javaagent.jar
    • the jar has the same content but its entries have different timestamps (i.e. jar is not build reproducibly)
  • ideaIC-2023.2-2-withKotlin.xml
    • this ivy module is generated with a current timestamp: https://github.com/JetBrains/gradle-intellij-plugin/blob/cc828c20fb7b4aba9cb6c190148581efabb10bda/src/main/kotlin/org/jetbrains/intellij/IntelliJIvyDescriptorFileGenerator.kt#L118
  • classpath.index
    • in one build this file was not generated, I don't know why

Relevant log output or stack trace

No response

Steps to reproduce

Execute test on different machines with same sources (requires Gradle Enterprise for Build Cache).

Gradle IntelliJ Plugin version

1.17.1

Gradle version

8.6

Operating System

Windows

Link to build, i.e. failing GitHub Action job

No response

jhonnen avatar Mar 08 '24 10:03 jhonnen