lp.scripts.tests.test_sphinxdocs.TestSphinxDocumentation.test_docs_build_without_error fails intermittently/rarely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Francesco Banconi |
Bug Description
This happened in parallel testing but is another instance of generic fragility described in passing in bug 721166.
=======
FAILURE: lp.scripts.
worker ID: worker-18
-------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/var/lib/
self.
MismatchError: !=:
reference = '''\
Making output directory...
'''
actual = '''\
Making output directory...
No handlers could be found for logger "root"
'''
The test can't handle anything else going to stdout or stderr. It should be made less fragile. The pertinent code is this:
returncode, stdout, stderr = run_capturing_
Benji pointed out that we could use the sphing-build command's -W option ("turn warnings into errors") and then simply verify that the returncode was 0, and not do a string check against stderr or stdout. They might be nice for addDetail when something goes wrong, but otherwise let's just do a simple returncode check.
Related branches
- Raphaël Badin (community): Approve
-
Diff: 30 lines (+4/-4)1 file modifiedlib/lp/scripts/tests/test_sphinxdocs.py (+4/-4)
Changed in launchpad: | |
assignee: | nobody → Francesco Banconi (frankban) |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r15408 (http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 15408) by a commit, but not testable.