implement moz.yaml parsing and validation

RESOLVED FIXED in Firefox 62


11 months ago
3 months ago


(Reporter: glob, Assigned: glob)


(Blocks: 2 bugs)

3 Branch
Dependency tree / graph

Firefox Tracking Flags

(firefox62 fixed)




(1 attachment)



11 months ago
implement base library and mach command for verifying moz.yaml files.

mach vendor-manifest --verify <file>[..]


11 months ago
Blocks: 1454869

Comment 1

11 months ago
this needs to validate against a schema with voluptuous, as well as ensuring that "straight yaml" is in use.

when we need to update the yaml file, we'd need to preserve comments.  as the standard yaml libraries drop comments we could vendor in a different yaml file which preserves structure and comments, however as the file will have a strict schema we can use simple text processing to update it.

as yaml is quite flexible in what is valid (eg. json is valid yaml) part of the validation needs to ensure that the `release` and `vendoring:revision` fields can be updated (ie. structured as per the sample manifest).
Assignee: nobody → glob
Creates a standard library for working with moz.yaml files, and adds a `mach
vendor manifest --verify` command that loads and verifies manifest schema.

The list of permitted licenses is one I derived from about:license, pending an
authoritative list from legal.
Comment on attachment 8973928 [details]
Bug 1454868: create `mach vendor manifest --verify` r?gps

Gregory Szorc [:gps] has approved the revision.
Attachment #8973928 - Flags: review+

Comment 4

10 months ago
Pushed by
create `mach vendor manifest --verify` r=gps

Comment 5

10 months ago
Last Resolved: 10 months ago
status-firefox62: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Version: Version 3 → 3 Branch
You need to log in before you can comment on or make changes to this bug.