Skip to content

Parse moz.yaml task 'options' into Task.options dict#417

Merged
tomrittervg merged 1 commit into
masterfrom
2026-06-26-options
Jun 27, 2026
Merged

Parse moz.yaml task 'options' into Task.options dict#417
tomrittervg merged 1 commit into
masterfrom
2026-06-26-options

Conversation

@tomrittervg

Copy link
Copy Markdown
Collaborator

The moz.yaml vendoring/commit-alert task schema now accepts an 'options' array of strings. Capture it in validate_task (defaulting to an empty list) and expose it on Task as an 'options' dict where every value listed in the moz.yaml maps to True (an unspecified/empty list yields {}).

Also cover this in the libraryprovider test: the cubeb-path moz.yaml fixture gains an 'options' array and the matching expected Library is updated, so testLibraryFindAndImport exercises options flowing through get_libraries() into the Task.options dict.

Goes along with https://bugzilla.mozilla.org/show_bug.cgi?id=2050952

The moz.yaml vendoring/commit-alert task schema now accepts an 'options'
array of strings. Capture it in validate_task (defaulting to an empty
list) and expose it on Task as an 'options' dict where every value listed
in the moz.yaml maps to True (an unspecified/empty list yields {}).

Also cover this in the libraryprovider test: the cubeb-path moz.yaml
fixture gains an 'options' array and the matching expected Library is
updated, so testLibraryFindAndImport exercises options flowing through
get_libraries() into the Task.options dict.
@tomrittervg tomrittervg requested a review from mozfreddyb June 26, 2026 20:31
@bayounetta bayounetta self-requested a review June 27, 2026 04:12

@bayounetta bayounetta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tomrittervg tomrittervg merged commit f8a5cdb into master Jun 27, 2026
16 checks passed
@tomrittervg tomrittervg deleted the 2026-06-26-options branch June 27, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants