Closed
Bug 777621
Opened 12 years ago
Closed 12 years ago
Move test_write_tabs_503 into memcached-specific tests
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rfkelly, Assigned: rfkelly)
References
Details
(Whiteboard: [qa+])
Attachments
(3 files)
7.10 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
2.64 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
1.76 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
The "test_write_tabs_503" tests specific behaviour of the memcached backend, but it included in the base generic tests for syncstorage. I should move it into the memcached-specific tests so that it gets skipped properly when memcache is not available.
Updated•12 years ago
|
Whiteboard: [qa+]
Assignee | ||
Comment 1•12 years ago
|
||
Moved the relevant tests into TestMemcachedStorage class and cleaned them up a bit.
Assignee | ||
Comment 2•12 years ago
|
||
Naturally, re-jiggering these tests has revealed a bug.
The memcached backend cannot lock cache-only collections by taking locks in the database, because those collections don't exist in the database. Instead it must use the cache-based locking mechanism.
Attachment #646403 -
Flags: review?(telliott)
Assignee | ||
Updated•12 years ago
|
Attachment #646401 -
Flags: review?(telliott)
Comment 3•12 years ago
|
||
Comment on attachment 646403 [details] [diff] [review]
patch to fix locking of cache-only collections
Is there really not a generic way in python to do _as_list? Seems like that belongs straight in a util lib somewhere.
Attachment #646403 -
Flags: review?(telliott) → review+
Comment 4•12 years ago
|
||
Comment on attachment 646401 [details] [diff] [review]
patch moving the tab-related functional tests
The diff made this a little hard to check, but I was unable to spot notable differences between the two. If it's just a move, then r+.
Attachment #646401 -
Flags: review?(telliott) → review+
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Toby Elliott [:telliott] from comment #4)
> Comment on attachment 646401 [details] [diff] [review]
> patch moving the tab-related functional tests
>
> The diff made this a little hard to check, but I was unable to spot notable
> differences between the two. If it's just a move, then r+.
The "for key in self.config.registry" loops that setup/teardown the BadCache have changed slightly. The new one is a lot simpler, because we now know that we've already got a MemcachedStorage instance, rather than having to create a new one.
Assignee | ||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Toby Elliott [:telliott] from comment #3)
> Is there really not a generic way in python to do _as_list? Seems like that
> belongs straight in a util lib somewhere.
Aha, I see there is a pyramid.settings.aslist function that does the same job. I'll switch over to that.
Assignee | ||
Comment 8•12 years ago
|
||
Attachment #646817 -
Flags: review?(telliott)
Updated•12 years ago
|
Attachment #646817 -
Flags: review?(telliott) → review+
Comment 9•12 years ago
|
||
Verified as fixed with the latest code (just pulled today).
Also noting that :telliott just "+"-ed the code review (good timing)
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 10•12 years ago
|
||
aslist() helper change committed in https://github.com/mozilla-services/server-syncstorage/commit/78ff2f06e04a7fd8957a26dec9fb3680d058e78d
Updated•2 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•