Closed
Bug 698789
Opened 13 years ago
Closed 13 years ago
Cached validation data needs to be cleared for queued Jetpack add-ons
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
FIXED
6.3.0
People
(Reporter: kmag, Assigned: clouserw)
References
Details
(Whiteboard: [ReviewTeam])
Add-ons which were already in the queue when bug 697509 was fixed still have cached validation data, which makes them impossible to review for most reviewers. The validation results for these add-ons should be regenerated.
Comment 1•13 years ago
|
||
How many add-ons are we talking about, approximately?
Whiteboard: [required amo-editors]
Target Milestone: --- → 6.3.0
Reporter | ||
Comment 2•13 years ago
|
||
My guess is somewhere between 60 and 80. It was over 90 at the end of last week.
Depends on: 697509
Comment 3•13 years ago
|
||
There's no formal process for this (yet) so it would involve a migration script that deletes the validation columns in the DB and re-runs the validator on the existing files. It would be nice to give admins a re-validate button next to each addon version as well.
Comment 4•13 years ago
|
||
There's no need to rerun the validation, unless the editor tools code assumes that the results are already cached. It used to be the case that opening the validation page for an add-on would run the validation if there were no cached results.
Assignee | ||
Comment 5•13 years ago
|
||
I think comment 4 is correct. Do these results ever expire on their own? Is there a list of IDs to apply this to?
Comment 6•13 years ago
|
||
Hmm, yeah what Jorge says did work at one time. I'm not 100% positive it still works because the validator was in flux back then. If that's the case (and it's easy to test on -dev) then we can just update all the jetpacks you want fixed like: delete from file_validation fv join files f on f.id=fv.file_id join versions v on v.id=f.version_id where v.id in (...) We just need a list of version IDs.
Reporter | ||
Comment 7•13 years ago
|
||
Can we just clear the data for all active Jetpack reviews?
Comment 8•13 years ago
|
||
Yeah, I think that would be something like: delete from file_validation fv join files f on f.id=fv.file_id where f.jetpack_version is not null and f.status = <unreviewed> would need testing and qa of course
Comment 10•13 years ago
|
||
(In reply to Jorge Villalobos [:jorgev] from comment #4) > It used to be the case that > opening the validation page for an add-on would run the validation if there > were no cached results. A while back (under the old validator??) the results expired every 24 hours. It meant we were always validating against the current checks rather than what happened to be in place when the version was uploaded (which given the current queue lengths could be 40 days prior). I'd prefer the daily expiry to return.
Reporter | ||
Comment 11•13 years ago
|
||
I'd prefer the results to only expire after a significant validator update. Some add-ons take ages to validate and put no small strain on my system resources. I don't imagine that the servers would fare much better.
Assignee | ||
Comment 12•13 years ago
|
||
There isn't a method for saying whether an update is significant or not (since it may or may not be depending on the add-on). We can bring back the 24 hour expiry if you like, as I recall we removed it due to complaints.
Comment 13•13 years ago
|
||
Could we expire the results once a week after the push when the validator might have changed? Admittedly an addon submission with normal duration in the queue would still lead to a new validation on review.
Comment 14•13 years ago
|
||
How about creating a script that clears the validation cache, and making it part of the push to prod process?
Assignee | ||
Comment 15•13 years ago
|
||
I was thinking of a script that let you delete anything older than $userinput, but calling it from the push to prod process on everything works too. We'll do that.
Assignee | ||
Comment 16•13 years ago
|
||
pull request for this is in
Assignee | ||
Comment 17•13 years ago
|
||
this landed. Will go out thurs
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 18•12 years ago
|
||
Reclassifying editor bugs and changing to a new whiteboard flag. Spam, spam, spam, spam...
Whiteboard: [required amo-editors] → [ReviewTeam]
Updated•8 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
•