Closed
Bug 708056
Opened 14 years ago
Closed 14 years ago
Show a readable validation error when it times out
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
6.3.6
People
(Reporter: kumar, Assigned: basta)
Details
When validation times out, a RuntimeError exception gets raised. We should catch this and return readable message to the user so they know what happened.
Current hotfix for timeouts is here (thanks Matt for the signal idea)
https://github.com/mozilla/amo-validator/compare/60eb9218637095781c3ea13099dfccd7aeb747e4...84cf737f676e9135536f209a7c7e2fe889f528f1
| Reporter | ||
Updated•14 years ago
|
Assignee: nobody → mattbasta
Priority: -- → P2
Target Milestone: --- → 6.3.5
Updated•14 years ago
|
Target Milestone: 6.3.5 → 6.3.6
| Assignee | ||
Comment 1•14 years ago
|
||
Working on this. The only concern I have is that we can get RuntimeErrors during JS validation, namely when Spidermonkey can't be accessed or is too old.
https://github.com/mozilla/amo-validator/blob/master/validator/testcases/javascript/spidermonkey.py
Would it be wise to create a new exception type? Perhaps SpidermonkeyError?
| Reporter | ||
Comment 2•14 years ago
|
||
Yes, please change my quick and dirty RuntimeError('time out') hack to ValidationTimeout() or something better. It was not meant as a permanent fix.
| Assignee | ||
Comment 3•14 years ago
|
||
| Reporter | ||
Comment 4•14 years ago
|
||
Hi Matt, thanks for the patch. Not sure if you saw my other comment on the pull, can you make separate pull requests per bug? That makes it way easier to prioritize when there are a lot of bugs to r and merge in.
| Assignee | ||
Comment 5•14 years ago
|
||
Yeah, no problem. I got your message after I'd pushed this one. Do you want me to go back and rebase this onto its own branch? The only reason I was clumping these was because the Jetpack submodule makes a load of tests fail (paths changed in the recent SDK versions).
| Reporter | ||
Comment 6•14 years ago
|
||
don't worry about rebasing
| Assignee | ||
Comment 7•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•14 years ago
|
||
Applied to Zamboni in https://github.com/mozilla/zamboni/commit/8a4b5ad
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•