Closed Bug 608813 Opened 14 years ago Closed 13 years ago

Migrate blocklist to zamboni

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: jbalogh)

References

Details

(Whiteboard: [loadtest+])

Attachments

(1 file)

Blocklist URLs follow the format:

https://addons.mozilla.org/blocklist/3/%APP_ID%/%APP_VERSION%/%PRODUCT%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/

Our blocklist is a single standalone script in PHP at:

http://viewvc.svn.mozilla.org/vc/addons/trunk/site/app/webroot/services/blocklist.php?view=markup

About half the code is test stuff - that should be moved into our new test suite w/ fixtures and such.  This is a very high traffic script so don't do anything that takes much computation or that can't be cached.

This is also our blocklist for every bad add-on we know about - it's pretty important we don't mess it up.  When in doubt, go overkill on tests.  

The only UI is the built in django admin stuff at blocklistapp and blocklistitem.

More info on blocklist: https://wiki.mozilla.org/Blocklisting
How to test current code: https://wiki.mozilla.org/Extension_Blocklisting:Testing
Current unit tests: http://svn.mozilla.org/addons/trunk/site/app/tests/services/blocklist.test.php
Priority: P1 → P3
Assignee: kumar.mcmillan → nobody
Target Milestone: 5.12.3 → 4.x (triaged)
Assignee: nobody → jbalogh
Target Milestone: 4.x (triaged) → 5.12.11
I've been using the django admin stuff to blocklist things and it works pretty well. Note that the new gfx driver block stuff that Les added to PHP does not have a django admin tool yet.
(In reply to comment #1)
> I've been using the django admin stuff to blocklist things and it works pretty
> well. Note that the new gfx driver block stuff that Les added to PHP does not
> have a django admin tool yet.

Should be easy to flip on.  It's just a new bl table
Whiteboard: [loadtest?]
Primary: https://github.com/jbalogh/zamboni/commit/b59ef9a 
Cachingly: https://github.com/jbalogh/zamboni/commit/ae4bf67 
Mergingly: https://github.com/jbalogh/zamboni/commit/e917639
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [loadtest?] → [loadtest?][bring it qa]
Moving this to 5.12.12 as there is not enough time for QA
Target Milestone: 5.12.11 → 5.12.12
The loadtest says this is pretty good.  Once it slowed down for around 1 minute, and every request (total, probably 30) took 30-45s to complete.  It also generated a couple "Can't connect to mysql" errors - I assume they are related.

I think on the average it's fine though:

Remora:
> Good: 156673
> Max/Avg/Min/StdDev: 169ms/36ms/6ms/43ms
> Bad: 46
> Total Time: 434.149641037
> Req/s: 342.828798947

Zamboni:
> Good: 193290
> Max/Avg/Min/StdDev: 1655ms/310ms/22ms/330ms
> Bad: 60
> Total Time: 440.036703825
> Req/s: 417.294735652
Whiteboard: [loadtest?][bring it qa] → [loadtest+][qa+]
This needs more QA. Bumping to the next milestone.
Target Milestone: 5.12.12 → 6.0.0
Bug 640230 tracks the QA efforts for this feature. Removing [QA+]
See Also: → 640230
Whiteboard: [loadtest+][qa+] → [loadtest+]
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: