tools/perf/cli_tools/pinpoint_cli/job_results.py
def IterTestOutputIsolates(job, only_differences=False):
  """Iterate over test execution results for all changes tested in the job.

  Args:
    job: A pinpoint job dict with state.

  Yields:
    (change_id, isolate_hash) pairs for each completed test execution found in
    the job.
  """
  quests = job['quests']
  for change_state in job['state']:
    if only_differences and not any(
        v == 'different' for v in change_state['comparisons'].values()):
      continue
    change_id = ChangeToStr(change_state['change'])
    for attempt in change_state['attempts']:
      executions = dict(zip(quests, attempt['executions']))
      if 'Test' not in executions:
        continue
      test_run = executions['Test']
      if not test_run['completed']:
        continue
      try:
        isolate_hash = next(
            d['value'] for d in test_run['details'] if d['key'] == 'isolate')
      except StopIteration:
        continue
      yield change_id, isolate_hash
Iterate over test execution results for all changes tested in the job.

  Args:
    job: A pinpoint job dict with state.

  Yields:
    (change_id, isolate_hash) pairs for each completed test execution found in
    the job.
  
Iterate over test execution results for all changes tested in the job.
Iterate over test execution results for all changes tested in the job .
def IterTestOutputIsolates(job, only_differences=False):
  quests = job['quests']
  for change_state in job['state']:
    if only_differences and not any(
        v == 'different' for v in change_state['comparisons'].values()):
      continue
    change_id = ChangeToStr(change_state['change'])
    for attempt in change_state['attempts']:
      executions = dict(zip(quests, attempt['executions']))
      if 'Test' not in executions:
        continue
      test_run = executions['Test']
      if not test_run['completed']:
        continue
      try:
        isolate_hash = next(
            d['value'] for d in test_run['details'] if d['key'] == 'isolate')
      except StopIteration:
        continue
      yield change_id, isolate_hash
def IterTestOutputIsolates ( job , only_differences = False ) : quests = job [ 'quests' ] for change_state in job [ 'state' ] : if only_differences and not any ( v == 'different' for v in change_state [ 'comparisons' ] . values ( ) ) : continue change_id = ChangeToStr ( change_state [ 'change' ] ) for attempt in change_state [ 'attempts' ] : executions = dict ( zip ( quests , attempt [ 'executions' ] ) ) if 'Test' not in executions : continue test_run = executions [ 'Test' ] if not test_run [ 'completed' ] : continue try : isolate_hash = next ( d [ 'value' ] for d in test_run [ 'details' ] if d [ 'key' ] == 'isolate' ) except StopIteration : continue yield change_id , isolate_hash
Iterate over test execution results for all changes tested in the job.
Iterate over test execution results for all changes tested in the job .
"""Iterate over test execution results for all changes tested in the job.

  Args:
    job: A pinpoint job dict with state.

  Yields:
    (change_id, isolate_hash) pairs for each completed test execution found in
    the job.
  """
(change_id, isolate_hash) pairs for each completed test execution found in
the job.
( change_id isolate_hash ) pairs for each completed test execution found in the job .
job
A pinpoint job dict with state.
A pinpoint job dict with state .
only_differences