Bug 1712953 - Add a frequency attribute to Updatebot tasks r=jewilde

Differential Revision: https://phabricator.services.mozilla.com/D116020
This commit is contained in:
Tom Ritter 2021-05-26 20:36:13 +00:00
Родитель cee0219fda
Коммит 8bcc518a54
2 изменённых файлов: 88 добавлений и 1 удалений

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

@ -208,13 +208,17 @@ updatebot:
"maintainer-phab": "tjr",
"maintainer-bz": "a@example.com",
"tasks": [
{"type": "commit-alert"},
{
"type": "commit-alert",
"frequency": "release",
},
{
"type": "vendoring",
"branch": "foo",
"enabled": False,
"cc": ["b@example.com"],
"needinfo": ["c@example.com"],
"frequency": "1 weeks",
},
],
},
@ -242,11 +246,13 @@ updatebot:
maintainer-bz: a@example.com
tasks:
- type: commit-alert
frequency: release
- type: vendoring
enabled: False
branch: foo
cc: ["b@example.com"]
needinfo: ["c@example.com"]
frequency: 1 weeks
""".strip(),
),
# -------------------------------------------------
@ -279,11 +285,13 @@ updatebot:
"enabled": False,
"cc": ["b@example.com", "c@example.com"],
"needinfo": ["d@example.com", "e@example.com"],
"frequency": "every",
},
{
"type": "commit-alert",
"filter": "none",
"source-extensions": [".c", ".cpp"],
"frequency": "2 weeks",
},
],
},
@ -319,8 +327,10 @@ updatebot:
needinfo:
- d@example.com
- e@example.com
frequency: every
- type: commit-alert
filter: none
frequency: 2 weeks
source-extensions:
- .c
- .cpp
@ -583,6 +593,80 @@ updatebot:
- b@example.com
- c@example.com
- type: vendoring
- type: commit-alert
filter: none
source-extensions:
- .c
- .cpp""".strip(),
),
(
"exception",
b"""
---
schema: 1
origin:
name: cairo
description: 2D Graphics Library
url: https://www.cairographics.org/
release: version 1.6.4
license:
- MPL-1.1
- LGPL-2.1
revision: AA001122334455
bugzilla:
product: Core
component: Graphics
vendoring:
url: https://example.com
source-hosting: gitlab
updatebot:
maintainer-phab: tjr
maintainer-bz: a@example.com
tasks:
- type: vendoring
enabled: False
branch: foo
cc:
- b@example.com
- c@example.com
- type: commit-alert
frequency: every-release
filter: none
source-extensions:
- .c
- .cpp""".strip(),
),
(
"exception",
b"""
---
schema: 1
origin:
name: cairo
description: 2D Graphics Library
url: https://www.cairographics.org/
release: version 1.6.4
license:
- MPL-1.1
- LGPL-2.1
revision: AA001122334455
bugzilla:
product: Core
component: Graphics
vendoring:
url: https://example.com
source-hosting: gitlab
updatebot:
maintainer-phab: tjr
maintainer-bz: a@example.com
tasks:
- type: vendoring
enabled: False
branch: foo
cc:
- b@example.com
- c@example.com
frequency: 2 months
- type: commit-alert
filter: none
source-extensions:

3
python/mozbuild/mozbuild/vendor/moz_yaml.py поставляемый
Просмотреть файл

@ -130,9 +130,11 @@ updatebot:
needinfo: ["bugzilla@email.address", "another@example.com"]
enabled: True
filter: security
frequency: every
- type: vendoring
branch: master
enabled: False
frequency: 2 weeks
# Configuration for the automated vendoring system.
# optional
@ -383,6 +385,7 @@ def _schema_1():
msg="Invalid filter value specified in tasks",
),
"source-extensions": Unique([str]),
"frequency": Match(r"^(every|release|[0-9]+ weeks?)$"),
}
],
),