We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
systemProperties
Hi 👋
Trying to enable remote build cache on apollo-kotlin, :intellij-plugin:test creates a cache misses (build scan).
:intellij-plugin:test
This is due to the systemProperties input containing absolute paths. For an example, dumping the value of systemProperties:
tasks.named("test") { doFirst { println(inputs.properties.get("systemProperties")) } }
Dumps this:
{idea.config.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/config-test, idea.force.use.core.classloader=true, idea.home.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/mockJDK, idea.log.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/system-test/log, idea.plugins.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/plugins-test, idea.system.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/system-test, idea.use.core.classloader.for=, idea.use.core.classloader.for.plugin.path=true, java.system.class.loader=com.intellij.util.lang.PathClassLoader, jdk.attach.allowAttachSelf=true, jdk.http.auth.tunneling.disabledSchemes="", jdk.module.illegalAccess.silent=true, kotlinx.coroutines.debug=off, plugin.path=/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/plugins- test/toml:,/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/plugins-test/js-graphql-intellij- plugin:,/Users/mbonnin/git/apollo-kotlin/intellij-plugin/build/idea-sandbox/plugins-test/apollo-intellij-plugin, sun.io.useCanonCaches=false, sun.java2d.metal=true}
Would it be possible to make those relative instead?
The text was updated successfully, but these errors were encountered:
Here is how you can change these paths to use relative path sensitivity: https://docs.gradle.org/current/userguide/caching_java_projects.html#dealing_with_file_paths
Sorry, something went wrong.
9765b12
Could you folks please verify the fix with 1.14.2-SNAPSHOT release?
1.14.2-SNAPSHOT
It's working 🎉 Build scan comparison: https://ge.apollographql.com/c/tio3mycqe52gw/hutlgsgajznwe/task-inputs
We're down from ~40s to ~3s with build cache.
@martinbonnin Thank you for the confirmation! @runningcode This link was super helpful, thanks!
hsz
No branches or pull requests
Hi 👋
Trying to enable remote build cache on apollo-kotlin,
:intellij-plugin:test
creates a cache misses (build scan).This is due to the
systemProperties
input containing absolute paths. For an example, dumping the value ofsystemProperties
:Dumps this:
Would it be possible to make those relative instead?
The text was updated successfully, but these errors were encountered: