Search in sources :

Example 1 with ExecuteDetails

use of com.google.devtools.build.lib.remote.logging.RemoteExecutionLog.ExecuteDetails in project tools_remote by bazelbuild.

the class ActionGroupingTest method makeExecuteWithStatus.

private RpcCallDetails makeExecuteWithStatus(int status) {
    ExecuteResponse.Builder response = ExecuteResponse.newBuilder();
    response.getStatusBuilder().setCode(status);
    Operation operation = Operation.newBuilder().setResponse(Any.pack(response.build())).setDone(true).build();
    ExecuteDetails execute = ExecuteDetails.newBuilder().addResponses(operation).build();
    return RpcCallDetails.newBuilder().setExecute(execute).build();
}
Also used : ExecuteDetails(com.google.devtools.build.lib.remote.logging.RemoteExecutionLog.ExecuteDetails) ExecuteResponse(build.bazel.remote.execution.v2.ExecuteResponse) Operation(com.google.longrunning.Operation)

Example 2 with ExecuteDetails

use of com.google.devtools.build.lib.remote.logging.RemoteExecutionLog.ExecuteDetails in project tools_remote by bazelbuild.

the class ActionGroupingTest method makeExecute.

private RpcCallDetails makeExecute(ActionResult result) {
    ExecuteResponse response = ExecuteResponse.newBuilder().setResult(result).build();
    Operation operation = Operation.newBuilder().setResponse(Any.pack(response)).setDone(true).build();
    ExecuteDetails execute = ExecuteDetails.newBuilder().addResponses(operation).build();
    return RpcCallDetails.newBuilder().setExecute(execute).build();
}
Also used : ExecuteDetails(com.google.devtools.build.lib.remote.logging.RemoteExecutionLog.ExecuteDetails) ExecuteResponse(build.bazel.remote.execution.v2.ExecuteResponse) Operation(com.google.longrunning.Operation)

Aggregations

ExecuteResponse (build.bazel.remote.execution.v2.ExecuteResponse)2 ExecuteDetails (com.google.devtools.build.lib.remote.logging.RemoteExecutionLog.ExecuteDetails)2 Operation (com.google.longrunning.Operation)2