Voluptuous gives confusing error messages for Any(...) schemas
Categories
(Firefox Build System :: Task Configuration, task)
Tracking
(Not tracked)
People
(Reporter: dustin, Unassigned, Mentored)
References
Details
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
| Reporter | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
I'll note that I fixed the major use of Any in-tree that was causing this error to impact us in Bug 1502253.
Comment 9•7 years ago
|
||
coop: I made a PR here - https://github.com/alecthomas/voluptuous/pull/368
Still awaiting response from @alecthomas
| Reporter | ||
Comment 10•7 years ago
|
||
yd, it looks like alec made a comment and is looking for a more complete PR.
Comment 11•6 years ago
|
||
| Reporter | ||
Comment 12•6 years ago
|
||
You're the best! Do you want to make those changes in the Firefox source tree?
Comment 13•6 years ago
|
||
Yeah sure :)
Comment 14•6 years ago
|
||
Just to be sure, this is the type you want to be identified.
If it's not, can you tell me which keys in the schema you want voluptous to identify.
| Reporter | ||
Comment 15•6 years ago
|
||
Look at that! It seems like we've worked around this issue with @payload_builder
https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/taskgraph/transforms/task.py#l340
However, it looks like it could be useful in taskcluster/taskgraph/transforms/fetch.py!
Comment 16•6 years ago
|
||
I made the change in fetch.py, but I am unable to figure how to run tests in taskgraph only.
Also, do we have a substitute for IRC yet?
Comment 17•6 years ago
|
||
(In reply to Yashvardhan Didwania [:ydidwania] from comment #16)
I made the change in fetch.py, but I am unable to figure how to run tests in taskgraph only.
./mach python-test --subsuite taskgraph
Also, do we have a substitute for IRC yet?
Not yet, but until we do we expect #taskcluster or #ci to be good for taskgraph related questions
Comment 18•6 years ago
|
||
Another good test is to run ./mach taskgraph full as well, to ensure nothing broke. And you can adjust stuff in-gecko at taskcluster/ci/** to make some invalid fetches things to see how voluptuous would error out.
Comment 19•6 years ago
|
||
Thank you Justin. I was able to run these tests. It turns out there hasn't been a release after I added the discriminant argument in voluptuous so we'll have to wait till that is done
Comment 20•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Updated•3 years ago
|
Comment 21•3 years ago
|
||
We probably want to replace voluptuous rather than improve it. Bug 1652123 and https://github.com/taskcluster/taskgraph/issues/8.
Description
•