Closed
Bug 703040
Opened 13 years ago
Closed 9 years ago
improve blob validation on balrog server
Categories
(Release Engineering Graveyard :: Applications: Balrog (backend), defect, P3)
Release Engineering Graveyard
Applications: Balrog (backend)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: bhearsum)
References
Details
(Whiteboard: [updates])
Attachments
(4 files)
(deleted),
text/x-github-pull-request
|
rail
:
review+
bhearsum
:
checked-in+
|
Details |
(deleted),
text/x-github-pull-request
|
rail
:
review+
bhearsum
:
checked-in+
|
Details |
(deleted),
text/x-github-pull-request
|
rail
:
review+
bhearsum
:
checked-in+
|
Details |
(deleted),
text/x-github-pull-request
|
rail
:
review+
bhearsum
:
checked-in+
|
Details |
bug 693593 implements basic validation of blobs by checking that only valid keys exist. We should do better than that and check that required keys exist, and maybe some value checking, too. Sprung out of https://bugzilla.mozilla.org/show_bug.cgi?id=693593#c6.
Updated•13 years ago
|
Priority: -- → P3
Updated•13 years ago
|
Priority: P3 → --
Assignee | ||
Comment 1•12 years ago
|
||
This seems pretty low priority in the face of the other Balrog tasks I could be working on.
Priority: -- → P3
Assignee | ||
Comment 2•12 years ago
|
||
This seems pretty low priority in the face of the other Balrog tasks I could be working on.
Assignee: bhearsum → nobody
Updated•12 years ago
|
Component: Release Engineering → Release Engineering: Automation (General)
QA Contact: release → catlee
Whiteboard: [updates]
Assignee | ||
Comment 3•11 years ago
|
||
https://github.com/halst/schema could be really useful for this
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Assignee | ||
Comment 4•11 years ago
|
||
mass component change
Component: General Automation → Balrog: Backend
Assignee | ||
Comment 5•10 years ago
|
||
bug 1022649 might get us this for free
Assignee | ||
Comment 6•10 years ago
|
||
A related thing is that it would be good to warn or stop a user from pointing a rule at a blob that isn't fully formed.
Assignee | ||
Comment 8•9 years ago
|
||
A couple of other potential ways to do this, from bug 1022649:
https://pypi.python.org/pypi/jsonschema
https://github.com/podio/valideer
Assignee | ||
Comment 9•9 years ago
|
||
Thinking about this a bit more...we really need to decide how far down this rabbit hole we want to go. Some things are pretty obvious, eg: name is always required, but it gets more complex when you get into the AppRelease blobs, which have 2 ways of specifying fileUrls. If we want to be sure those blobs are always in a state where they can be safely pointed at by a rule, our validation would have to include looking for one (at least one? only one?) of those ways. Such a thing could cause issues with the way we submit release data right now, too (we stream in the build-specific information, and submit the release-wide stuff later).
Assignee | ||
Comment 10•9 years ago
|
||
I'm actively working on an initial version of this in https://github.com/mozilla/balrog/pull/42/files
Assignee: nobody → bhearsum
Assignee | ||
Comment 11•9 years ago
|
||
PR has more details. I'm not planning on landing this until bug 1238944 is ready because both it and this need a config update, and I'd rather batch those together.
Attachment #8707904 -
Flags: review?(rail)
Comment 12•9 years ago
|
||
Comment on attachment 8707904 [details]
implement blob validation with jsonschemas
The PR looks straight forward to me: a lot of code deletions (\o/) and a lot of new schemas. I went through the code changes and skimmed/randomly checked schemas. All look good to me. SOO MUCH BETTER NOW!
Attachment #8707904 -
Flags: review?(rail) → review+
Comment 13•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/98b963f067c094b622bd7a671554a2456b9aa2c6
Merge pull request #42 from bhearsum/jsonschema
bug 703040: improve blob validation on balrog server. r=rail
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8707904 [details]
implement blob validation with jsonschemas
I merged this, but I'll be doing some more testing in dev before heading to production. Will also be waiting for https://bugzilla.mozilla.org/show_bug.cgi?id=1238944, because it also requires a config update.
Attachment #8707904 -
Flags: checked-in+
Comment 15•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/0e7f95ec857540953df416f1f5ca08e2f079378b
Import jsonschema into the vendor library for bug 703040.
Assignee | ||
Comment 16•9 years ago
|
||
Had to push https://github.com/mozilla/balrog/commit/0e7f95ec857540953df416f1f5ca08e2f079378b to import jsonschema into the vendor lib. Didn't catch this locally because local testing in now Docker-based.
Assignee | ||
Comment 17•9 years ago
|
||
Attachment #8710672 -
Flags: review?(rail)
Comment 18•9 years ago
|
||
Comment on attachment 8710672 [details]
jsonschema for desupport blobs
lgtm
Attachment #8710672 -
Flags: review?(rail) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8710672 -
Flags: checked-in+
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8711736 -
Flags: review?(rail)
Assignee | ||
Comment 20•9 years ago
|
||
Attachment #8711737 -
Flags: review?(rail)
Updated•9 years ago
|
Attachment #8711737 -
Flags: review?(rail) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8711737 -
Flags: checked-in+
Updated•9 years ago
|
Attachment #8711736 -
Flags: review?(rail) → review+
Comment 21•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/20b0421a136ff3dd8a7bd8e80dcb46befdb0c1e9
Merge pull request #49 from bhearsum/validation-error
bug 703040: Improve blob validation errors. r=rail
Assignee | ||
Updated•9 years ago
|
Attachment #8711736 -
Flags: checked-in+
Assignee | ||
Comment 22•9 years ago
|
||
This went to production today, and I re-verified it there.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 23•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/balrog
https://github.com/mozilla/balrog/commit/e2b212c510f174319c3d6855d4b5ebd07fc8ed51
[balrog-ui] Merge pull request #16 from bhearsum/improved-blob-error
bug 703040: Show a list of blob validation errors rather than a single string
Updated•5 years ago
|
Product: Release Engineering → Release Engineering Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•