mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1710148 - Modify backfill action to properly handle vismet tasks. r=jmaher
This patch makes it possible to properly backfill vismet tasks. Backfilling a vismet task will now trigger a test task along with the vismet task so it doesn't rerun on the same data. Differential Revision: https://phabricator.services.mozilla.com/D114645
This commit is contained in:
parent
de405c1e9c
commit
178f660b41
@ -22,6 +22,8 @@ from .util import (
|
||||
get_decision_task_id,
|
||||
get_pushes_from_params_input,
|
||||
trigger_action,
|
||||
get_tasks_with_downstream,
|
||||
rename_browsertime_vismet_task,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -260,6 +262,12 @@ def add_task_with_original_manifests(
|
||||
if label not in full_task_graph.tasks:
|
||||
label = new_label(label, full_task_graph.tasks)
|
||||
|
||||
to_run = [label]
|
||||
if "browsertime" in label:
|
||||
if "vismet" in label:
|
||||
label = rename_browsertime_vismet_task(label)
|
||||
to_run = get_tasks_with_downstream([label], full_task_graph, label_to_taskid)
|
||||
|
||||
modifier = do_not_modify
|
||||
test_manifests = input.get("test_manifests")
|
||||
# If the original task has defined test paths
|
||||
@ -277,7 +285,7 @@ def add_task_with_original_manifests(
|
||||
for i in range(times):
|
||||
create_tasks(
|
||||
graph_config,
|
||||
[label],
|
||||
to_run,
|
||||
full_task_graph,
|
||||
label_to_taskid,
|
||||
parameters,
|
||||
|
Loading…
Reference in New Issue
Block a user