Functions | Variables
run_tests_matrix Namespace Reference

Functions

def _allowed_labels ()
 
def _create_portability_test_jobs (extra_args=[], inner_jobs=_DEFAULT_INNER_JOBS)
 
def _create_test_jobs (extra_args=[], inner_jobs=_DEFAULT_INNER_JOBS)
 
def _docker_jobspec (name, runtests_args=[], runtests_envs={}, inner_jobs=_DEFAULT_INNER_JOBS, timeout_seconds=None)
 
def _generate_jobs (languages, configs, platforms, iomgr_platforms=['native'], arch=None, compiler=None, labels=[], extra_args=[], extra_envs={}, inner_jobs=_DEFAULT_INNER_JOBS, timeout_seconds=None)
 
def _matrix_job_logfilename (shortname_for_multi_target)
 
def _report_filename (name)
 
def _runs_per_test_type (arg_str)
 
def _safe_report_name (name)
 
def _workspace_jobspec (name, runtests_args=[], workspace_name=None, runtests_envs={}, inner_jobs=_DEFAULT_INNER_JOBS, timeout_seconds=None)
 

Variables

int _CPP_RUNTESTS_TIMEOUT = 4 * 60 * 60
 
int _DEFAULT_INNER_JOBS = 2
 
int _DEFAULT_RUNTESTS_TIMEOUT = 1 * 60 * 60
 
string _MATRIX_REPORT_NAME = 'toplevel_run_tests_invocations'
 
int _OBJC_RUNTESTS_TIMEOUT = 2 * 60 * 60
 
 _ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..'))
 
 action
 
def all_jobs = _create_test_jobs(extra_args=extra_args, inner_jobs=args.inner_jobs) + \
 
 argp
 
 args = argp.parse_args()
 
 choices
 
 const
 
 default
 
 do_newline
 
list extra_args = []
 
 help
 
 ignored_num_skipped_failures
 
 inner_jobs
 
list jobs = []
 
 key
 
 maxjobs
 
 multi_target
 
 nargs
 
 newline_on_success
 
 num_failures
 
 relevant_jobs = filter_tests(jobs, args.base_branch)
 
 resultset
 
 skip_jobs
 
list skipped_jobs = []
 
 skipped_results
 
 suite_name
 
 travis
 
 type
 

Function Documentation

◆ _allowed_labels()

def run_tests_matrix._allowed_labels ( )
private
Returns a list of existing job labels.

Definition at line 383 of file run_tests_matrix.py.

◆ _create_portability_test_jobs()

def run_tests_matrix._create_portability_test_jobs (   extra_args = [],
  inner_jobs = _DEFAULT_INNER_JOBS 
)
private

Definition at line 288 of file run_tests_matrix.py.

◆ _create_test_jobs()

def run_tests_matrix._create_test_jobs (   extra_args = [],
  inner_jobs = _DEFAULT_INNER_JOBS 
)
private

Definition at line 182 of file run_tests_matrix.py.

◆ _docker_jobspec()

def run_tests_matrix._docker_jobspec (   name,
  runtests_args = [],
  runtests_envs = {},
  inner_jobs = _DEFAULT_INNER_JOBS,
  timeout_seconds = None 
)
private
Run a single instance of run_tests.py in a docker container

Definition at line 75 of file run_tests_matrix.py.

◆ _generate_jobs()

def run_tests_matrix._generate_jobs (   languages,
  configs,
  platforms,
  iomgr_platforms = ['native'],
  arch = None,
  compiler = None,
  labels = [],
  extra_args = [],
  extra_envs = {},
  inner_jobs = _DEFAULT_INNER_JOBS,
  timeout_seconds = None 
)
private

Definition at line 129 of file run_tests_matrix.py.

◆ _matrix_job_logfilename()

def run_tests_matrix._matrix_job_logfilename (   shortname_for_multi_target)
private
Generate location for log file that will match the sponge_log.xml from the top-level matrix report.

Definition at line 59 of file run_tests_matrix.py.

◆ _report_filename()

def run_tests_matrix._report_filename (   name)
private
Generates report file name with directory structure that leads to better presentation by internal CI

Definition at line 53 of file run_tests_matrix.py.

◆ _runs_per_test_type()

def run_tests_matrix._runs_per_test_type (   arg_str)
private
Auxiliary function to parse the "runs_per_test" flag.

Definition at line 392 of file run_tests_matrix.py.

◆ _safe_report_name()

def run_tests_matrix._safe_report_name (   name)
private
Reports with '+' in target name won't show correctly in ResultStore

Definition at line 48 of file run_tests_matrix.py.

◆ _workspace_jobspec()

def run_tests_matrix._workspace_jobspec (   name,
  runtests_args = [],
  workspace_name = None,
  runtests_envs = {},
  inner_jobs = _DEFAULT_INNER_JOBS,
  timeout_seconds = None 
)
private
Run a single instance of run_tests.py in a separate workspace

Definition at line 97 of file run_tests_matrix.py.

Variable Documentation

◆ _CPP_RUNTESTS_TIMEOUT

int run_tests_matrix._CPP_RUNTESTS_TIMEOUT = 4 * 60 * 60
private

Definition at line 34 of file run_tests_matrix.py.

◆ _DEFAULT_INNER_JOBS

int run_tests_matrix._DEFAULT_INNER_JOBS = 2
private

Definition at line 40 of file run_tests_matrix.py.

◆ _DEFAULT_RUNTESTS_TIMEOUT

int run_tests_matrix._DEFAULT_RUNTESTS_TIMEOUT = 1 * 60 * 60
private

Definition at line 31 of file run_tests_matrix.py.

◆ _MATRIX_REPORT_NAME

string run_tests_matrix._MATRIX_REPORT_NAME = 'toplevel_run_tests_invocations'
private

Definition at line 45 of file run_tests_matrix.py.

◆ _OBJC_RUNTESTS_TIMEOUT

int run_tests_matrix._OBJC_RUNTESTS_TIMEOUT = 2 * 60 * 60
private

Definition at line 37 of file run_tests_matrix.py.

◆ _ROOT

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

Definition at line 28 of file run_tests_matrix.py.

◆ action

run_tests_matrix.action

Definition at line 425 of file run_tests_matrix.py.

◆ all_jobs

def run_tests_matrix.all_jobs = _create_test_jobs(extra_args=extra_args, inner_jobs=args.inner_jobs) + \

Definition at line 504 of file run_tests_matrix.py.

◆ argp

run_tests_matrix.argp
Initial value:
1 = argparse.ArgumentParser(
2  description='Run a matrix of run_tests.py tests.')

Definition at line 405 of file run_tests_matrix.py.

◆ args

run_tests_matrix.args = argp.parse_args()

Definition at line 484 of file run_tests_matrix.py.

◆ choices

run_tests_matrix.choices

Definition at line 414 of file run_tests_matrix.py.

◆ const

run_tests_matrix.const

Definition at line 426 of file run_tests_matrix.py.

◆ default

run_tests_matrix.default

Definition at line 409 of file run_tests_matrix.py.

◆ do_newline

run_tests_matrix.do_newline

Definition at line 518 of file run_tests_matrix.py.

◆ extra_args

run_tests_matrix.extra_args = []

Definition at line 486 of file run_tests_matrix.py.

◆ help

run_tests_matrix.help

Definition at line 411 of file run_tests_matrix.py.

◆ ignored_num_skipped_failures

run_tests_matrix.ignored_num_skipped_failures

Definition at line 557 of file run_tests_matrix.py.

◆ inner_jobs

run_tests_matrix.inner_jobs

Definition at line 505 of file run_tests_matrix.py.

◆ jobs

run_tests_matrix.jobs = []

Definition at line 507 of file run_tests_matrix.py.

◆ key

run_tests_matrix.key

Definition at line 536 of file run_tests_matrix.py.

◆ maxjobs

run_tests_matrix.maxjobs

Definition at line 554 of file run_tests_matrix.py.

◆ multi_target

run_tests_matrix.multi_target

Definition at line 563 of file run_tests_matrix.py.

◆ nargs

run_tests_matrix.nargs

Definition at line 415 of file run_tests_matrix.py.

◆ newline_on_success

run_tests_matrix.newline_on_success

Definition at line 552 of file run_tests_matrix.py.

◆ num_failures

run_tests_matrix.num_failures

Definition at line 551 of file run_tests_matrix.py.

◆ relevant_jobs

run_tests_matrix.relevant_jobs = filter_tests(jobs, args.base_branch)

Definition at line 529 of file run_tests_matrix.py.

◆ resultset

run_tests_matrix.resultset

Definition at line 551 of file run_tests_matrix.py.

◆ skip_jobs

run_tests_matrix.skip_jobs

Definition at line 558 of file run_tests_matrix.py.

◆ skipped_jobs

run_tests_matrix.skipped_jobs = []

Definition at line 525 of file run_tests_matrix.py.

◆ skipped_results

run_tests_matrix.skipped_results

Definition at line 557 of file run_tests_matrix.py.

◆ suite_name

run_tests_matrix.suite_name

Definition at line 562 of file run_tests_matrix.py.

◆ travis

run_tests_matrix.travis

Definition at line 553 of file run_tests_matrix.py.

◆ type

run_tests_matrix.type

Definition at line 410 of file run_tests_matrix.py.



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