Bug 1529848 - increase maximum length for task identifiers to 38 r=tomprince

Changes:

- increase maximum length for task identifiers to 38 from 22
- update documentation to state the same

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edwin Gao 2019-02-22 06:09:26 +00:00
Родитель 000992e33e
Коммит e523ea3587
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1793,9 +1793,9 @@ def chain_of_trust(config, tasks):
@transforms.add @transforms.add
def check_task_identifiers(config, tasks): def check_task_identifiers(config, tasks):
"""Ensures that all tasks have well defined identifiers: """Ensures that all tasks have well defined identifiers:
^[a-zA-Z0-9_-]{1,22}$ ^[a-zA-Z0-9_-]{1,38}$
""" """
e = re.compile("^[a-zA-Z0-9_-]{1,22}$") e = re.compile("^[a-zA-Z0-9_-]{1,38}$")
for task in tasks: for task in tasks:
for attr in ('workerType', 'provisionerId'): for attr in ('workerType', 'provisionerId'):
if not e.match(task['task'][attr]): if not e.match(task['task'][attr]):