Merge lp:~mwhudson/launchpad/build-after-headless into lp:launchpad

Proposed by Michael Hudson-Doyle
Status: Merged
Approved by: Jonathan Lange
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~mwhudson/launchpad/build-after-headless
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~mwhudson/launchpad/build-after-headless
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Review via email: mp+11748@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This branch moves "make build" and "make schema" steps after the point where ec2test --headless lets go. Testing shows an improvement from about 15 minutes to about 8 and a half before ec2test --headless exits -- way more than I was expecting!

Revision history for this message
Jonathan Lange (jml) wrote :

This is a very nice improvement. I'm a little unsure of the quoting semantics with 'make', which I discussed with you on IRC.

If they are all good, please land this branch. If not, fix them and land it :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/devscripts/ec2test/ec2test-remote.py'
2--- lib/devscripts/ec2test/ec2test-remote.py 2009-09-11 04:21:55 +0000
3+++ lib/devscripts/ec2test/ec2test-remote.py 2009-09-14 22:59:32 +0000
4@@ -11,7 +11,6 @@
5 import os
6 import pickle
7 import re
8-import shutil
9 import subprocess
10 import sys
11 import textwrap
12@@ -35,14 +34,9 @@
13 self.public_branch = public_branch
14 self.public_branch_revno = public_branch_revno
15
16- # Set up the user-supplied and default testrunner options.
17- if isinstance(test_options, basestring):
18- test_options = test_options.split()
19- elif test_options is None:
20- test_options = ['-vv']
21- else:
22- # Use whatever the user passed in.
23- pass
24+ # Set up the testrunner options.
25+ if test_options is None:
26+ test_options = '-vv'
27 self.test_options = test_options
28
29 # Configure paths.
30@@ -190,8 +184,7 @@
31
32 def build_test_command(self):
33 """See BaseTestRunner.build_test_command()."""
34- command = ['bin/py', '-t', 'test_on_merge.py']
35- command.extend(self.test_options)
36+ command = ['make', 'check', 'VERBOSITY=' + self.test_options]
37 return command
38
39 # Used to filter lines in the summary log. See
40@@ -454,7 +447,7 @@
41 pqm_message,
42 options.public_branch,
43 options.public_branch_revno,
44- args
45+ ' '.join(args)
46 )
47
48 try:
49
50=== modified file 'lib/devscripts/ec2test/testrunner.py'
51--- lib/devscripts/ec2test/testrunner.py 2009-09-14 03:36:00 +0000
52+++ lib/devscripts/ec2test/testrunner.py 2009-09-14 22:59:32 +0000
53@@ -483,8 +483,6 @@
54 '-p/var/launchpad/tmp -t/var/launchpad/test'),
55 # set up database
56 p('/var/launchpad/test/utilities/launchpad-database-setup %(USER)s')
57- p('cd /var/launchpad/test && make build')
58- p('cd /var/launchpad/test && make schema')
59 # close ssh connection
60 user_connection.close()
61