Open
Bug 1462410
Opened 7 years ago
Updated 2 years ago
validate buildhub.json against schema
Categories
(Firefox Build System :: General, enhancement)
Tracking
(Not tracked)
NEW
People
(Reporter: ted, Unassigned)
References
Details
I punted on this in bug 1442306, but we should validate the resulting file against the JSON schema.
Reporter | ||
Comment 1•7 years ago
|
||
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.
Comment 2•7 years ago
|
||
We have two copies of voluptuous in tree, surely that ought to count for something.
Reporter | ||
Comment 3•7 years ago
|
||
(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. :-/
Comment 4•6 years ago
|
||
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®exp=false&path=py
Updated•6 years ago
|
Version: Version 3 → 3 Branch
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•