Merge lp:~michael.nelson/launchpad/db-enable-buildd-slavescanner.txt into lp:launchpad/db-devel

Proposed by Michael Nelson on 2010-04-30
Status: Merged
Approved by: Michael Nelson on 2010-04-30
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~michael.nelson/launchpad/db-enable-buildd-slavescanner.txt
Merge into: lp:launchpad/db-devel
Diff against target: 91 lines (+15/-37)
3 files modified
lib/lp/soyuz/doc/buildd-slave.txt (+1/-1)
lib/lp/soyuz/doc/buildd-slavescanner.txt (+2/-19)
lib/lp/soyuz/tests/test_doc.py (+12/-17)
To merge this branch: bzr merge lp:~michael.nelson/launchpad/db-enable-buildd-slavescanner.txt
Reviewer Review Type Date Requested Status
Björn Tillenius (community) release-critical 2010-04-30 Approve on 2010-04-30
Abel Deuring (community) code 2010-04-30 Approve on 2010-04-30
Review via email: mp+24478@code.launchpad.net

Commit Message

Re-enable buildd-slave.txt and buildd-slavescanner.txt doctests.

Description of the Change

This branch re-enables two soyuz doctests.

The first, buildd-slavescanner.txt was disabled just this morning: bug 572005
It turned out the fix was simply removing a stray '...' and applying part of the devel change that was missed during the conflict resolution (see the notes on the bug).

The second, buildd-slave.txt was disabled last cycle due to intermittent failures: bug 553259.
I re-enabled the test, and just ensured that the intermittent test failure is not triggered by generalising the expected error so that it will pass whether the tachandler dies quickly or slowly (see bug for reason and an example of the intermittent failure).

To test:
$ bin/test -vvt doc/buildd-slave

To post a comment you must log in.
Abel Deuring (adeuring) :
review: Approve (code)
Björn Tillenius (bjornt) :
review: Approve (release-critical)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== renamed file 'lib/lp/soyuz/doc/buildd-slave.txt.disabled' => 'lib/lp/soyuz/doc/buildd-slave.txt'
2--- lib/lp/soyuz/doc/buildd-slave.txt.disabled 2010-04-22 18:53:09 +0000
3+++ lib/lp/soyuz/doc/buildd-slave.txt 2010-04-30 10:09:35 +0000
4@@ -94,4 +94,4 @@
5 >>> s.info()
6 Traceback (most recent call last):
7 ...
8- error: ...Connection refused...
9+ error: ...
10
11=== renamed file 'lib/lp/soyuz/doc/buildd-slavescanner.txt.disabled' => 'lib/lp/soyuz/doc/buildd-slavescanner.txt'
12--- lib/lp/soyuz/doc/buildd-slavescanner.txt.disabled 2010-04-30 03:10:17 +0000
13+++ lib/lp/soyuz/doc/buildd-slavescanner.txt 2010-04-30 10:09:35 +0000
14@@ -383,12 +383,11 @@
15 * Build Log: http://.../...i386.mozilla-firefox_0.9_NEEDSBUILD.txt.gz
16 ...
17 Upload log:
18- ...
19- DEBUG: Beginning processing
20+ DEBUG: Beginning processing
21 ...
22 DEBUG: Moving upload directory /var/tmp/builddmaster/incoming/...
23 ... to /var/tmp/builddmaster/failed/...
24- ...
25+ ...
26
27 When a failure in processing the generated binaries occurs, the log
28 output is both emailed in an immediate notification, and stored in the
29@@ -620,22 +619,6 @@
30 >>> len(failed_uploads)
31 2
32
33- >>> failed_upload = failed_uploads[0]
34- >>> uploader_log = open(os.path.join(failed_dir, failed_upload,
35- ... 'uploader.log'))
36-
37- >>> print uploader_log.read()
38- INFO Creating lockfile: /var/lock/process-upload-buildd.lock
39- DEBUG Initialising connection.
40- DEBUG Beginning processing
41- DEBUG Creating directory /var/tmp/builddmaster/accepted
42- DEBUG Creating directory /var/tmp/builddmaster/rejected
43- DEBUG Creating directory /var/tmp/builddmaster/failed
44- ...
45- DEBUG Rolling back any remaining transactions.
46- DEBUG Removing lock file: /var/lock/process-upload-buildd.lock
47- <BLANKLINE>
48-
49 Remove build upload results root
50
51 >>> shutil.rmtree(config.builddmaster.root)
52
53=== modified file 'lib/lp/soyuz/tests/test_doc.py'
54--- lib/lp/soyuz/tests/test_doc.py 2010-04-30 03:10:17 +0000
55+++ lib/lp/soyuz/tests/test_doc.py 2010-04-30 10:09:35 +0000
56@@ -133,23 +133,18 @@
57 setUp=builddmasterSetUp,
58 layer=LaunchpadZopelessLayer,
59 ),
60- # XXX Tim Penhey 2010-04-30 bug=572005
61- # Disabled as part of conflict resolution.
62- #'buildd-slavescanner.txt': LayeredDocFileSuite(
63- # '../doc/buildd-slavescanner.txt',
64- # setUp=builddmasterSetUp,
65- # layer=LaunchpadZopelessLayer,
66- # stdout_logging_level=logging.WARNING
67- # ),
68- # XXX Michael Nelson 2010-04-01 bug=553259
69- # Disabling the buildd-slave.txt test until the
70- # timing issue is sorted (see bug).
71- # 'buildd-slave.txt': LayeredDocFileSuite(
72- # '../doc/buildd-slave.txt',
73- # setUp=setUp, tearDown=tearDown,
74- # layer=LaunchpadZopelessLayer,
75- # stdout_logging_level=logging.WARNING
76- # ),
77+ 'buildd-slavescanner.txt': LayeredDocFileSuite(
78+ '../doc/buildd-slavescanner.txt',
79+ setUp=builddmasterSetUp,
80+ layer=LaunchpadZopelessLayer,
81+ stdout_logging_level=logging.WARNING
82+ ),
83+ 'buildd-slave.txt': LayeredDocFileSuite(
84+ '../doc/buildd-slave.txt',
85+ setUp=setUp, tearDown=tearDown,
86+ layer=LaunchpadZopelessLayer,
87+ stdout_logging_level=logging.WARNING
88+ ),
89 'buildd-scoring.txt': LayeredDocFileSuite(
90 '../doc/buildd-scoring.txt',
91 setUp=builddmasterSetUp,

Subscribers

People subscribed via source and target branches

to status/vote changes: