Open Bug 1462410 Opened 7 years ago Updated 2 years ago

validate buildhub.json against schema

Categories

(Firefox Build System :: General, enhancement)

3 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: ted, Unassigned)

References

Details

I punted on this in bug 1442306, but we should validate the resulting file against the JSON schema.
The schema is embedded in initialization.yml in the buildhub repository: https://github.com/mozilla-services/buildhub/blob/master/jobs/buildhub/initialization.yml#L71-L198 I punted on this mostly because we don't currently have a json schema Python module vendored in m-c, but it's not hard to fix that.
We have two copies of voluptuous in tree, surely that ought to count for something.
(In reply to Nathan Froyd [:froydnj] from comment #2) > We have two copies of voluptuous in tree, surely that ought to count for > something. I looked into this and AFAICT there's no way to use voluptuous with a JSON schema. :-/
For what it's worth, we already use jsonschema to validate perfherder blobs before we log them. Surely we can reuse that? https://searchfox.org/mozilla-central/search?q=jsonschema&case=false&regexp=false&path=py
Version: Version 3 → 3 Branch
Severity: normal → S3
See Also: → 1815281
You need to log in before you can comment on or make changes to this bug.