Is the remote cache supposed to cache test results?

656 views
Skip to first unread message

s...@improbable.io

unread,
Sep 21, 2017, 12:17:49 PM9/21/17
to bazel-discuss
I've been trying out the remote cache functionality described at https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/remote/README.md which seems to work extremely well for caching build results.

However, it doesn't seem to cache _test_ results on 0.5.3. If I run bazel clean and then build, I get everything immediately from the cache, but if I test the tests are always run again.

Is this supposed to work? From https://github.com/bazelbuild/bazel/issues/1413 it seems like it's intended. Do I have to do something extra?

Damien Martin-Guillerez

unread,
Sep 21, 2017, 12:22:39 PM9/21/17
to s...@improbable.io, bazel-discuss

Hello,

That sounds like a bug to me, passing test should be cached...


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f0bc8f08-aa8b-4aa0-ad59-bd1ac0d3f460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

s...@improbable.io

unread,
Sep 22, 2017, 6:32:31 AM9/22/17
to bazel-discuss
I figured out my test having the "exclusive" tag is what's causing it to ignore cached passes. Not sure if this is intentional, I will file an issue.

Damien Martin-Guillerez

unread,
Sep 22, 2017, 6:55:08 AM9/22/17
to s...@improbable.io, bazel-discuss

Exclusive implies local, this is a known issue yes...


Reply all
Reply to author
Forward
0 new messages