Functions | Variables
python_utils.bazel_report_helper Namespace Reference

Functions

None _append_to_kokoro_bazel_invocations (str invocation_id)
 
None _create_bazel_wrapper (str report_path, str report_suite_name, str invocation_id, bool upload_results)
 
None _generate_junit_report_string (str report_suite_name, str invocation_id, bool success)
 
def _platform_string ()
 

Variables

 _ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../../..'))
 
int _UPLOAD_RBE_RESULTS_DELAY_SECONDS = 60
 
 argp
 
 args = argp.parse_args()
 
 default
 
 help
 
 invocation_id = str(uuid.uuid4())
 
 report_path = args.report_path
 
 report_suite_name = args.report_suite_name
 
 required
 
 type
 
bool upload_results = True if os.getenv('UPLOAD_TEST_RESULTS') else False
 

Function Documentation

◆ _append_to_kokoro_bazel_invocations()

None python_utils.bazel_report_helper._append_to_kokoro_bazel_invocations ( str  invocation_id)
private
Kokoro can display "Bazel" result link on kokoro jobs if told so.

Definition at line 46 of file bazel_report_helper.py.

◆ _create_bazel_wrapper()

None python_utils.bazel_report_helper._create_bazel_wrapper ( str  report_path,
str  report_suite_name,
str  invocation_id,
bool  upload_results 
)
private
Create a "bazel wrapper" script that will execute bazel with extra settings and postprocessing.

Definition at line 97 of file bazel_report_helper.py.

◆ _generate_junit_report_string()

None python_utils.bazel_report_helper._generate_junit_report_string ( str  report_suite_name,
str  invocation_id,
bool  success 
)
private
Generate sponge_log.xml formatted report, that will make the bazel invocation reachable as a target in resultstore UI / sponge.

Definition at line 68 of file bazel_report_helper.py.

◆ _platform_string()

def python_utils.bazel_report_helper._platform_string ( )
private
Detect current platform

Definition at line 32 of file bazel_report_helper.py.

Variable Documentation

◆ _ROOT

python_utils.bazel_report_helper._ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../../..'))
private

Definition at line 23 of file bazel_report_helper.py.

◆ _UPLOAD_RBE_RESULTS_DELAY_SECONDS

int python_utils.bazel_report_helper._UPLOAD_RBE_RESULTS_DELAY_SECONDS = 60
private

Definition at line 29 of file bazel_report_helper.py.

◆ argp

python_utils.bazel_report_helper.argp
Initial value:
1 = argparse.ArgumentParser(
2  description=
3  'Generate bazel wrapper to help with bazel test reports in CI.')

Definition at line 233 of file bazel_report_helper.py.

◆ args

python_utils.bazel_report_helper.args = argp.parse_args()

Definition at line 247 of file bazel_report_helper.py.

◆ default

python_utils.bazel_report_helper.default

Definition at line 244 of file bazel_report_helper.py.

◆ help

python_utils.bazel_report_helper.help

Definition at line 240 of file bazel_report_helper.py.

◆ invocation_id

python_utils.bazel_report_helper.invocation_id = str(uuid.uuid4())

Definition at line 250 of file bazel_report_helper.py.

◆ report_path

python_utils.bazel_report_helper.report_path = args.report_path

Definition at line 252 of file bazel_report_helper.py.

◆ report_suite_name

python_utils.bazel_report_helper.report_suite_name = args.report_suite_name

Definition at line 253 of file bazel_report_helper.py.

◆ required

python_utils.bazel_report_helper.required

Definition at line 238 of file bazel_report_helper.py.

◆ type

python_utils.bazel_report_helper.type

Definition at line 239 of file bazel_report_helper.py.

◆ upload_results

bool python_utils.bazel_report_helper.upload_results = True if os.getenv('UPLOAD_TEST_RESULTS') else False

Definition at line 254 of file bazel_report_helper.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:42