зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
2e7c500128
Коммит
fa32411a40
|
@ -1,10 +1,10 @@
|
|||
'''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
|
||||
mozilla-inbound's TaskCluster index.
|
||||
autoland's TaskCluster index.
|
||||
|
||||
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
|
||||
the same set of jobs. Unfortunately, this is less than ideal if we want to make this
|
||||
work for project repositories.
|
||||
|
@ -24,9 +24,9 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
def update_job_priority_table():
|
||||
"""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
|
||||
data = query_sanitized_data(repo_name='mozilla-inbound')
|
||||
data = query_sanitized_data(repo_name='autoland')
|
||||
if data:
|
||||
return _update_table(data)
|
||||
else:
|
||||
|
@ -97,7 +97,7 @@ def _sanitize_data(runnable_jobs_data):
|
|||
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.
|
||||
|
||||
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/
|
||||
[2] Index's data structure:
|
||||
{
|
||||
"namespace": "gecko.v2.mozilla-inbound.latest.taskgraph.decision",
|
||||
"namespace": "gecko.v2.autoland.latest.taskgraph.decision",
|
||||
"taskId": "Dh9ZvFk5QCSprJ877cgUmw",
|
||||
"rank": 0,
|
||||
"data": {},
|
||||
|
|
|
@ -384,7 +384,7 @@ export const getGraphsURL = (
|
|||
if (phFrameworksWithRelatedBranches.includes(performanceFrameworkId)) {
|
||||
const branches =
|
||||
alertRepository === 'mozilla-beta'
|
||||
? ['mozilla-inbound']
|
||||
? ['autoland']
|
||||
: thPerformanceBranches.filter(branch => branch !== alertRepository);
|
||||
url += branches
|
||||
.map(
|
||||
|
|
Загрузка…
Ссылка в новой задаче