lp.registry.browser.tests.test_distroseriesdifference_views.DistroSeriesDifferenceTestCase.test_binary_summaries_for_source_pub fails intermittently/rarely in parallel tests with distroreleasepackagecache_pkey error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Gary Poster |
Bug Description
I can reliably reproduce this error in a Lucid LXC container with ./bin/test --load-list tests.txt if tests.txt contains these two tests:
lib/lp/
lp.registry.
(The test passes by itself.)
Looks like another one like bug 849056 and 992958. See lp:~gmb/launchpad/mark-db-dirty-for-cronscripts-bug-849056 for a fix approach. These are apparently one-offs for similar cronscript test errors--you need to explicitly mark the db as dirty after you find the test that ran before this one.
=======
ERROR: lp.registry.
worker ID: worker-0
-------
Traceback (most recent call last):
_StringException: librarian-log: {{{
2012-05-03 20:47:21+0530 [-] Log opened.
2012-05-03 20:47:21+0530 [-] twistd 11.1.0 (/usr/bin/python2.6 2.6.5) starting up.
2012-05-03 20:47:21+0530 [-] reactor class: twisted.
2012-05-03 20:47:21+0530 [-] FileUploadFactory starting on 52861
2012-05-03 20:47:21+0530 [-] Starting factory <lp.services.
2012-05-03 20:47:21+0530 [-] Site starting on 52728
2012-05-03 20:47:21+0530 [-] Starting factory <twisted.
2012-05-03 20:47:21+0530 [-] FileUploadFactory starting on 46317
2012-05-03 20:47:21+0530 [-] Starting factory <lp.services.
2012-05-03 20:47:21+0530 [-] Site starting on 42261
2012-05-03 20:47:21+0530 [-] Starting factory <twisted.
2012-05-03 20:47:21+0530 [-] Not using upstream librarian
2012-05-03 20:47:21+0530 [-] daemon ready!
}}}
Traceback (most recent call last):
File "/var/lib/
ds_diff = self.addSummary
File "/var/lib/
stp.
File "/var/lib/
log=
File "/var/lib/
cls.
File "/var/lib/
BinaryPacka
File "/var/lib/
self.flush()
File "/var/lib/
self.
File "/var/lib/
result = self._connectio
File "/var/lib/
result = Connection.
File "/var/lib/
raw_cursor = self.raw_
File "/var/lib/
return Connection.
File "/var/lib/
self.
File "/var/lib/
return function(*args, **kwargs)
File "/var/lib/
return self.real_
IntegrityError: duplicate key value violates unique constraint "distroreleasep
Related branches
- Brad Crittenden (community): Approve (code)
-
Diff: 11 lines (+4/-0)1 file modifiedlib/lp/soyuz/doc/package-cache-script.txt (+4/-0)
Changed in launchpad: | |
assignee: | nobody → Gary Poster (gary) |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r15200 (http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 15200) by a commit, but not testable.