Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ option java_outer_classname = "LabInfoServiceProto";
service LabInfoService {
// Gets lab and device information.
rpc GetLabInfo(GetLabInfoRequest) returns (GetLabInfoResponse);

// Diagnoses job allocation failure.
rpc DiagnoseJob(DiagnoseJobRequest) returns (DiagnoseJobResponse) {}
}

message GetLabInfoRequest {
Expand All @@ -45,3 +48,21 @@ message GetLabInfoResponse {
// Required.
mobileharness.api.query.LabQueryResult lab_query_result = 1;
}

message DiagnoseJobRequest {
// Required. The ID of the job to diagnose.
string job_id = 1;
}

message DiagnoseJobResponse {
// Required. The human-readable diagnostic report.
string readable_report = 1;

enum ErrorType {
UNKNOWN = 0;
INFRA_ERROR = 1;
USER_CONFIG_ERROR = 2;
}
// Required. The error type of the allocation failure.
ErrorType error_type = 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ public enum InfraErrorId implements ErrorId {
MASTER_RPC_STUB_LAB_SYNC_REMOVE_MISSING_DEVICES_ERROR(49_291, ErrorType.INFRA_ISSUE),

MASTER_RPC_STUB_LAB_INFO_GET_LAB_INFO_ERROR(49_260, ErrorType.INFRA_ISSUE),

MASTER_RPC_STUB_LAB_INFO_GET_LAB_METADATAS_ERROR(49_261, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_LAB_OVERVIEWS_ERROR(49_262, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_LAB_SUMMARIES_ERROR(49_263, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_LAB_DETAIL_ERROR(49_264, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_DEVICE_DETAIL_ERROR(49_265, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_DEVICE_DIMENSIONS_ERROR(49_266, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_GET_COMPRESSED_DEVICE_METADATAS_ERROR(49_267, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_LAB_INFO_DIAGNOSE_JOB_ERROR(49_268, ErrorType.INFRA_ISSUE),

MASTER_RPC_STUB_JOB_INFO_GET_JOB_SUMMARY_LIST_ERROR(49_271, ErrorType.INFRA_ISSUE),
MASTER_RPC_STUB_JOB_INFO_GET_JOB_DETAIL_ERROR(49_272, ErrorType.INFRA_ISSUE),
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading