-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
new: Support Bazel Remote APIs. #1651
base: master
Are you sure you want to change the base?
Conversation
4d62cd9
to
f44f5d0
Compare
Hey, I have seen that this feature was not introduced into the 1.29 release. Maybe I can support here. |
@harlequin The requests from moon to bazel-remote fail with cryptic http2 errors that I've been unable to figure out. |
As far as I remember HTTP2 implies that you have SSL enabled. Will try to setup an environment for testing. |
Yeah I think the problem has to do with the bazel/tonic libraries being http2, while bazel-remote is http1, and the communication between the 2 just isn't working. This area isn't an expertise of mine. |
I have played around with the remote service ... What I have found so far 1. TLS has to be activated and the endpoint has to include https://docs.rs/tonic/latest/tonic/transport/channel/struct.ClientTlsConfig.html#method.assume_http2 endpoint = endpoint
.tls_config(
ClientTlsConfig::new()
.with_enabled_roots()
.assume_http2(true)
)
.unwrap(); With this setting I can connect to the remote service 2. GZIP, ZSTD compression So with the enabled connection moon tries to upload the cache into the remote service bazel-remote-service shows
But on moon side I am receiving
So what I have seen bazel-remote supports My best guess by today, that something has to change additional to the compression ... Hope this helps |
Hey @milesj I have looked into the complete topic of bazel-remote-api and the specifications. So this is what I have found out:
SummaryI would go the way to split this tasks into, at least, 2 seperate
All other services from the bazel specification can introduced over time in the |
Awesome work. I wasn't even aware that the bazel APIs had 2 separate protocols. But that definitely makes sense for the issues I've been having. I also agree with splitting this up into 2 separate features. I'm going to try and focus on this for 1.30. It would be nice to land this and python support in the next release. |
Will start with caching.