Bug 1558424 - switch more references of 'mozilla-inbound' to 'autoland' (#5055)

* Bug 1558424 - Perfherder alerts for mozilla-beta shall use autoland as branch instead of mozilla-inbound

* Bug 1558424 - Update SETA job priority table to use 'autoland'
This commit is contained in:
Sebastian Hengst 2019-06-19 21:49:42 +02:00 коммит произвёл Cameron Dawson
Родитель 2e7c500128
Коммит fa32411a40
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -1,10 +1,10 @@
'''This module is used to add new jobs to the job priority table. '''This module is used to add new jobs to the job priority table.
This will query the Treeherder runnable api based on the latest task ID from This will query the Treeherder runnable api based on the latest task ID from
mozilla-inbound's TaskCluster index. autoland's TaskCluster index.
Known bug: Known bug:
* Only considering mozilla-inbound makes SETA act similarly in all repositories where it is * Only considering autoland makes SETA act similarly in all repositories where it is
active. Right now, this works for integration repositories since they tend to have active. Right now, this works for integration repositories since they tend to have
the same set of jobs. Unfortunately, this is less than ideal if we want to make this the same set of jobs. Unfortunately, this is less than ideal if we want to make this
work for project repositories. work for project repositories.
@ -24,9 +24,9 @@ logger = logging.getLogger(__name__)
def update_job_priority_table(): def update_job_priority_table():
"""Use it to update the job priority table with data from the runnable api.""" """Use it to update the job priority table with data from the runnable api."""
# XXX: We are assuming that the jobs accross 'mozilla-inbound', 'autoland' and 'fx-team' # XXX: We are assuming that the jobs accross 'mozilla-inbound' and 'autoland'
# are equivalent. This could cause issues in the future # are equivalent. This could cause issues in the future
data = query_sanitized_data(repo_name='mozilla-inbound') data = query_sanitized_data(repo_name='autoland')
if data: if data:
return _update_table(data) return _update_table(data)
else: else:
@ -97,7 +97,7 @@ def _sanitize_data(runnable_jobs_data):
return sanitized_list return sanitized_list
def query_sanitized_data(repo_name='mozilla-inbound'): def query_sanitized_data(repo_name='autoland'):
"""Return sanitized jobs data based on runnable api. None if failed to obtain or no new data. """Return sanitized jobs data based on runnable api. None if failed to obtain or no new data.
We need to find the latest gecko decision task ID (by querying the index [1][2]). We need to find the latest gecko decision task ID (by querying the index [1][2]).
@ -105,7 +105,7 @@ def query_sanitized_data(repo_name='mozilla-inbound'):
[1] https://index.taskcluster.net/v1/task/gecko.v2.%s.latest.taskgraph.decision/ [1] https://index.taskcluster.net/v1/task/gecko.v2.%s.latest.taskgraph.decision/
[2] Index's data structure: [2] Index's data structure:
{ {
"namespace": "gecko.v2.mozilla-inbound.latest.taskgraph.decision", "namespace": "gecko.v2.autoland.latest.taskgraph.decision",
"taskId": "Dh9ZvFk5QCSprJ877cgUmw", "taskId": "Dh9ZvFk5QCSprJ877cgUmw",
"rank": 0, "rank": 0,
"data": {}, "data": {},

Просмотреть файл

@ -384,7 +384,7 @@ export const getGraphsURL = (
if (phFrameworksWithRelatedBranches.includes(performanceFrameworkId)) { if (phFrameworksWithRelatedBranches.includes(performanceFrameworkId)) {
const branches = const branches =
alertRepository === 'mozilla-beta' alertRepository === 'mozilla-beta'
? ['mozilla-inbound'] ? ['autoland']
: thPerformanceBranches.filter(branch => branch !== alertRepository); : thPerformanceBranches.filter(branch => branch !== alertRepository);
url += branches url += branches
.map( .map(