test_rosetta_branches_script_oops fails intermittently when run out of order because of bug 884036
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Graham Binns |
Bug Description
lp.translations
> Exception-Type: AssertionError
> Exception-Value: Bug #504291: Store left in a disconnected state.
> Exception-Type: DisconnectionError
> Exception-Value: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
...pollute the oops values returned when the oops values are synced. There is already code to handle the case of tests being run in order (8 of these occur) or in isolation (0 of these occur), but not to handle all possible variations
One approach to solving this is to address bug 884036.
Another approach, which I advocate for the parallel testing effort, is to filter out oopses matching the two descriptions above before checking the len of oopses. This would mean a change from this test code...
# XXX: Robert Collins - bug 884036 - test_rosetta_
# a commit() which resets the test db out from under the running slave
# appserver, requests to it then (correctly) log oopses as a DB
# connection is *not normal*. So when both tests are run, we see 8 of
# these oopses (4 pairs of 2); when run alone we don't.
oops_report = self.oopses[-1]
...to something like this test code.
# XXX: Robert Collins - bug 884036 - tests such as
# test_rosetta_
# a commit() which resets the test db out from under the running slave
# appserver. Requests to it then (correctly) log oopses as a DB
# connection is *not normal*. So when tests like this are run, we see
# DisconnectionEr
# spurious oopses out before making our checks.
oopses = filter_
oops_report = oopses[-1]
The code in filter_
Related branches
- Graham Binns (community): Approve (code)
-
Diff: 47 lines (+20/-8)1 file modifiedlib/lp/translations/tests/test_rosetta_branches_script.py (+20/-8)
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Graham Binns (gmb) |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r15133 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 15133>.