Spurious test failure in lp.hardwaredb.scripts.tests.test_hwdb_submission_processing

Bug #1300543 reported by Celso Providelo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
William Grant

Bug Description

Lately LP test suite has failed sporadically (~ 25%) with:

{{{
Traceback (most recent call last):
  File "/srv/buildbot/lpbuildbot/lucid-devel-lxc/build/lib/lp/hardwaredb/scripts/tests/test_hwdb_submission_processing.py", line 5417, in testPendingSubmissionProcessing
    'Unexpected set of valid submissions: %r' % valid_submission_keys)
MismatchError: !=:
reference = [u'sample-submission', u'submission-6', u'private-submission']
actual = [u'test_submission_id_1',
 u'sample-submission',
 u'submission-6',
 u'private-submission']
: Unexpected set of valid submissions: [u'sample-submission', u'submission-6', u'private-submission']
}}}

It should be investigated.

Related branches

Celso Providelo (cprov)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
William Grant (wgrant) wrote :

After hacking in some extra checks, it turns out that the test sometimes gets a truncated file from the librarian. The truncated data is 123 bytes long, which happens to match LibraryFileContent.filesize. Perhaps the librarian sometimes uses filesize.

Revision history for this message
William Grant (wgrant) wrote :

librarianserver uses the size from the database when librarian.swift.enabled is set. But we use a persistent librarian, and it only refreshes feature flags periodically, so the setting can stick for a while if a test enables swift just before a refresh.

testPendingSubmissionProcessing should be fixed by not having conflicting values.

Changed in launchpad:
assignee: nobody → William Grant (wgrant)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.