tools/perf/experimental/representative_perf_test_limit_adjuster/adjust_upper_limits.py
def FetchItemIds(tags, limit):
  """Fetches the item id of tasks described by the tags.

  Args:
    tags: The tags which describe the task such as OS, builder_group and buildername.
    limit: The number of runs to look at.

  Returns:
    A list containing the item Id of the tasks.
  """

  query = [
      SWARMING_PATH, 'tasks', '-S', 'chromium-swarm.appspot.com', '-limit',
      str(limit), '-state=COMPLETED', '-field', 'items(task_id)', '-tag',
      'builder_group:{builder_group}'.format(**tags), '-tag',
      'os:{os}'.format(**tags), '-tag',
      'name:rendering_representative_perf_tests', '-tag',
      'buildername:{buildername}'.format(**tags)
  ]
  return json.loads(subprocess.check_output(query))
Fetches the item id of tasks described by the tags.

  Args:
    tags: The tags which describe the task such as OS, builder_group and buildername.
    limit: The number of runs to look at.

  Returns:
    A list containing the item Id of the tasks.
  
Fetches the item id of tasks described by the tags.
Fetches the item id of tasks described by the tags .
def FetchItemIds(tags, limit):
  query = [
      SWARMING_PATH, 'tasks', '-S', 'chromium-swarm.appspot.com', '-limit',
      str(limit), '-state=COMPLETED', '-field', 'items(task_id)', '-tag',
      'builder_group:{builder_group}'.format(**tags), '-tag',
      'os:{os}'.format(**tags), '-tag',
      'name:rendering_representative_perf_tests', '-tag',
      'buildername:{buildername}'.format(**tags)
  ]
  return json.loads(subprocess.check_output(query))
def FetchItemIds ( tags , limit ) : query = [ SWARMING_PATH , 'tasks' , '-S' , 'chromium-swarm.appspot.com' , '-limit' , str ( limit ) , '-state=COMPLETED' , '-field' , 'items(task_id)' , '-tag' , 'builder_group:{builder_group}' . format ( ** tags ) , '-tag' , 'os:{os}' . format ( ** tags ) , '-tag' , 'name:rendering_representative_perf_tests' , '-tag' , 'buildername:{buildername}' . format ( ** tags ) ] return json . loads ( subprocess . check_output ( query ) )
Fetches the item id of tasks described by the tags.
Fetches the item id of tasks described by the tags .
"""Fetches the item id of tasks described by the tags.

  Args:
    tags: The tags which describe the task such as OS, builder_group and buildername.
    limit: The number of runs to look at.

  Returns:
    A list containing the item Id of the tasks.
  """
A list containing the item Id of the tasks.
A list containing the item Id of the tasks .
tags
The tags which describe the task such as OS, builder_group and buildername.
The tags which describe the task such as OS builder_group and buildername .
limit
The number of runs to look at.
The number of runs to look at .