remote cache question - I've setup <buildbarn remo...
# general
a
remote cache question - I've setup buildbarn remote cache and connected pants to it. It works mostly fine, however I've noticed that some of the bigger pants artifacts (like pexes with multiple requirements) fails to be cached. Did someone face the same issue?
b
I did (though with BuildBuddy and not BuildBarn) - and what I found out was that the call to the cache was timing out due to the artifact being large. Worth checking your logs to see if the same thing happens; if so, you can adjust the
remote_cache_rpc_timeout_millis
setting: https://www.pantsbuild.org/docs/reference-global#remote_cache_rpc_timeout_millis
a
thanks! Does not seem to help.. any more ideas?:)
b
Do you see any errors or warnings in the Pants logs? Otherwise, my only other idea is to check whether
remote_cache_write
is enabled: https://www.pantsbuild.org/docs/reference-global#remote_cache_write
a
unfortunately not:) I only see
remote_cache_write_errors: 1
when i add
--stats-log
b
I’m out of ideas then, sorry šŸ˜ž Hopefully someone who knows BuildBarn a bit better and has run into the issue before can chime in
šŸ™ 1
g
I'd try running
-ldebug
and scanning for warnings in there, that's the lowest level a warning will show up at for remote cache errors. Or
--remote_cache_warnings=backoff
will increase verbosity so error 1, 2, 4, 8 will show up at warn level. Funnily enough we don't have a
always
warn behavior. (Edit: https://github.com/pantsbuild/pants/pull/20268)
šŸ™ 1