Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Adding function trigger_all_talos_jobs to mozci #304

Merged
merged 1 commit into from
Jul 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion mozci/mozci.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

import logging

from mozci.platforms import determine_upstream_builder, is_downstream, filter_buildernames
from mozci.platforms import determine_upstream_builder, is_downstream, filter_buildernames,\
build_talos_buildernames_for_repo
from mozci.sources import allthethings, buildapi, buildjson, pushlog
from mozci.query_jobs import PENDING, RUNNING, SUCCESS, UNKNOWN,\
COALESCED, BuildApi, TreeherderApi
Expand Down Expand Up @@ -469,6 +470,24 @@ def trigger_missing_jobs_for_revision(repo_name, revision, dry_run=False):
})


def trigger_all_talos_jobs(repo_name, revision, times, dry_run=False):
"""
Trigger talos jobs (excluding 'pgo') for a given revision.
"""
pgo = False
if repo_name in ['mozilla-central', 'mozilla-aurora', 'mozilla-beta']:
pgo = True
buildernames = build_talos_buildernames_for_repo(repo_name, pgo)
for buildername in buildernames:
trigger_range(buildername=buildername,
revisions=[revision],
times=times,
dry_run=dry_run,
extra_properties={'mozci_request': {
'type': 'trigger_all_talos_jobs'}
})


def manual_backfill(revision, buildername, max_revisions, dry_run=False):
"""
This function is used to trigger jobs for a range of revisions
Expand Down