Functions | |
def | _get_api_key () |
def | _get_invocation_id () |
def | _get_resultstore_data (api_key, invocation_id) |
def | _parse_test_duration (duration_str) |
def | _upload_results_to_bq (rows) |
Variables | |
string | _DATASET_ID = 'jenkins_test_results' |
string | _DESCRIPTION = 'Test results from master RBE builds on Kokoro' |
int | _EXPIRATION_MS = 365 * 24 * 60 * 60 * 1000 |
string | _PARTITION_TYPE = 'DAY' |
string | _PROJECT_ID = 'grpc-testing' |
list | _RESULTS_SCHEMA |
string | _TABLE_ID = 'rbe_test_results' |
action | |
def | api_key = args.api_key or _get_api_key() |
argp | |
args = argp.parse_args() | |
list | bq_rows = [] |
const | |
default | |
f | |
gcp_utils_dir | |
help | |
indent | |
def | invocation_id = args.invocation_id or _get_invocation_id() |
int | MAX_ROWS = 1000 |
string | result = 'FAILED' |
def | resultstore_actions = _get_resultstore_data(api_key, invocation_id) |
sort_keys | |
list | test_cases |
type | |
|
private |
Returns string with API key to access ResultStore. Intended to be used in Kokoro environment.
Definition at line 52 of file upload_rbe_results.py.
|
private |
Returns String of Bazel invocation ID. Intended to be used in Kokoro environment.
Definition at line 63 of file upload_rbe_results.py.
|
private |
Returns dictionary of test results by querying ResultStore API. Args: api_key: String of ResultStore API key invocation_id: String of ResultStore invocation ID to results from
Definition at line 114 of file upload_rbe_results.py.
|
private |
Parse test duration string in '123.567s' format
Definition at line 74 of file upload_rbe_results.py.
|
private |
Upload test results to a BQ table. Args: rows: A list of dictionaries containing data for each row to insert
Definition at line 84 of file upload_rbe_results.py.
|
private |
Definition at line 32 of file upload_rbe_results.py.
|
private |
Definition at line 33 of file upload_rbe_results.py.
|
private |
Definition at line 35 of file upload_rbe_results.py.
|
private |
Definition at line 36 of file upload_rbe_results.py.
|
private |
Definition at line 37 of file upload_rbe_results.py.
|
private |
Definition at line 38 of file upload_rbe_results.py.
|
private |
Definition at line 49 of file upload_rbe_results.py.
python_utils.upload_rbe_results.action |
Definition at line 172 of file upload_rbe_results.py.
def python_utils.upload_rbe_results.api_key = args.api_key or _get_api_key() |
Definition at line 177 of file upload_rbe_results.py.
python_utils.upload_rbe_results.argp |
Definition at line 150 of file upload_rbe_results.py.
python_utils.upload_rbe_results.args = argp.parse_args() |
Definition at line 175 of file upload_rbe_results.py.
python_utils.upload_rbe_results.bq_rows = [] |
Definition at line 189 of file upload_rbe_results.py.
python_utils.upload_rbe_results.const |
Definition at line 173 of file upload_rbe_results.py.
python_utils.upload_rbe_results.default |
Definition at line 155 of file upload_rbe_results.py.
python_utils.upload_rbe_results.f |
Definition at line 183 of file upload_rbe_results.py.
python_utils.upload_rbe_results.gcp_utils_dir |
Definition at line 27 of file upload_rbe_results.py.
python_utils.upload_rbe_results.help |
Definition at line 157 of file upload_rbe_results.py.
python_utils.upload_rbe_results.indent |
Definition at line 183 of file upload_rbe_results.py.
def python_utils.upload_rbe_results.invocation_id = args.invocation_id or _get_invocation_id() |
Definition at line 178 of file upload_rbe_results.py.
int python_utils.upload_rbe_results.MAX_ROWS = 1000 |
Definition at line 303 of file upload_rbe_results.py.
string python_utils.upload_rbe_results.result = 'FAILED' |
Definition at line 238 of file upload_rbe_results.py.
python_utils.upload_rbe_results.resultstore_actions = _get_resultstore_data(api_key, invocation_id) |
Definition at line 179 of file upload_rbe_results.py.
python_utils.upload_rbe_results.sort_keys |
Definition at line 183 of file upload_rbe_results.py.
list python_utils.upload_rbe_results.test_cases |
Definition at line 197 of file upload_rbe_results.py.
python_utils.upload_rbe_results.type |
Definition at line 156 of file upload_rbe_results.py.