tracing remote execution API requests

40 views
Skip to first unread message

Robert Brown

unread,
Jan 19, 2021, 5:24:03 PM1/19/21
to Remote Execution APIs Working Group
What is the easiest way to trace all the requests that Bazel makes to a remote execution service as it performs a build or test?  I'm interested in learning how Bazel uses the remote APIs.  I have bazel-buildfarm running, so I could add some logging code to it.

I'd also like to play with the remote APIs using a small Python client.  Does one already exist somewhere?

Thanks!

Eric Burnett

unread,
Jan 19, 2021, 6:08:26 PM1/19/21
to Robert Brown, Remote Execution APIs Working Group
I haven't tried it myself recently, but in theory you should be able to get a log of all gRPC calls made via --experimental_remote_grpc_log, and there is a tool to unpack them: https://github.com/bazelbuild/tools_remote#printing-grpc-log-files

--
You received this message because you are subscribed to the Google Groups "Remote Execution APIs Working Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to remote-execution...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/remote-execution-apis/d2be6a13-d7c0-48d4-a063-74218cf09ac8n%40googlegroups.com.

Robert Brown

unread,
Jan 20, 2021, 6:06:50 PM1/20/21
to Remote Execution APIs Working Group
Thanks very much.  The tools_remote code is working well for me.
Reply all
Reply to author
Forward
0 new messages