Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/gecko-test/libcubeb-path/moz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ updatebot:
- type: vendoring
enabled: True
blocking: 1234
options: ["one", "two"]
3 changes: 3 additions & 0 deletions components/libraryprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def __init__(self, dict):
self.frequency = dict['frequency']
self.platform = dict['platform']
self.blocking = dict['blocking']
# Each option named in the moz.yaml is stored as a key set to True.
self.options = {option: True for option in dict['options']}

if self.type == 'commit-alert':
self.filter = dict['filter']
Expand Down Expand Up @@ -298,6 +300,7 @@ def validate_task(task_dict, library_name):
validated_task['needinfo'] = get_key_or_default('needinfo', task_dict, [])
validated_task['frequency'] = get_key_or_default('frequency', task_dict, 'every')
validated_task['blocking'] = get_key_or_default('blocking', task_dict, None)
validated_task['options'] = get_key_or_default('options', task_dict, [])

if validated_task['platform'] not in ('windows', 'linux'):
raise AttributeError('library {0} task has an invalid value for a platform: {1}'.format(library_name, validated_task['platform']))
Expand Down
3 changes: 2 additions & 1 deletion tests/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
LibraryProvider.validate_task({
'type': "vendoring",
'enabled': True,
'blocking': '1234'
'blocking': '1234',
'options': ['one', 'two']
}, "n/a")
],
"yaml_path": ".github/gecko-test/libcubeb-path/moz.yaml".replace("/", os.path.sep)
Expand Down
Loading