Bug 1581194 - Change SETA to run all tasks every 10th push or two hours, r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D55020

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Halberstadt 2019-11-28 14:56:54 +00:00
parent be2730c33a
commit b3b9a988c5
3 changed files with 10 additions and 10 deletions

View File

@ -22,13 +22,13 @@ job-defaults:
mach: taskgraph optimized -p task-id=$DECISION_TASK_ID --output-file /builds/worker/optimized_tasks.list
sparse-profile: taskgraph
seta_10_120:
description: Runs the seta_10_120 experimental optimization strategy
seta_15_180:
description: Runs the seta_15_180 experimental optimization strategy
treeherder:
symbol: SS(seta_10_120)
symbol: SS(seta_15_180)
index:
product: source
job-name: shadow-scheduler-seta_10_120
job-name: shadow-scheduler-seta_15_180
worker:
env:
TASKGRAPH_OPTIMIZE_STRATEGIES: taskgraph.optimize:seta_10_120
TASKGRAPH_OPTIMIZE_STRATEGIES: taskgraph.optimize:seta_15_180

View File

@ -314,7 +314,7 @@ register_strategy('test-try', args=('skip-unless-schedules',))(Alias)
# Experimental strategy that replaces the default SETA with a version that runs
# all tasks every 10th push or 2 hours.
seta_10_120 = {
'seta': Alias('seta_10_120'),
'test': Either('skip-unless-schedules', 'seta_10_120'),
seta_15_180 = {
'seta': Alias('seta_15_180'),
'test': Either('skip-unless-schedules', 'seta_15_180'),
}

View File

@ -263,8 +263,8 @@ class SETA(object):
is_low_value_task = SETA().is_low_value_task
@register_strategy('seta', args=(5, 60))
@register_strategy('seta_10_120', args=(10, 120))
@register_strategy('seta', args=(10, 120))
@register_strategy('seta_15_180', args=(15, 180))
class SkipLowValue(OptimizationStrategy):
def __init__(self, push_interval, time_interval):