Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Issue 6277015: Passes cache location to tests and runs the tests in parallel. (Closed)

Created:
9 years, 11 months ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
petkov, dgarrett
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Passes cache location to tests and runs the tests in parallel. As a warning, this is a pretty big change. At a high-level, this changes the harness to move the managing of the devserver from image_to_live into the actual test harness. Paths of the cache locations (for archive_url) are taken when pre-generating the updates and stored in a dictionary (maps "path_to_base->path_to_target" (or path for full updates)-> cache paths). This change also has the tests run in parallel. Because we now start X number of VM's at once, each VM needs it's own pid file and ssh_port. This logic was added as well as running the actual tests in parallel. Change-Id: I1275d79740c50c2a8028489b43dcbbcf5bbd56c4 BUG=chromium-os:10723 TEST=Ran it ... a lot with -q but without a test_prefix (so full test suite). Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=c418a8f Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=be787f3 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=f2ee5f6

Patch Set 1 #

Patch Set 2 : whitespace #

Patch Set 3 : Introduced a bug in refactoring #

Total comments: 5

Patch Set 4 : Nits #

Patch Set 5 : Fix sudo issues again. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -69 lines) Patch
M bin/cros_au_test_harness.py View 1 2 3 4 13 chunks +219 lines, -63 lines 2 comments Download
M bin/cros_run_vm_update View 3 chunks +3 lines, -3 lines 0 comments Download
M image_to_live.sh View 2 chunks +1 line, -1 line 0 comments Download
M lib/cros_build_lib.py View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M lib/cros_vm_lib.sh View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sosa
9 years, 11 months ago (2011-01-24 18:40:04 UTC) #1
sosa
Sorry didn't mean to Close this. PTAL
9 years, 11 months ago (2011-01-25 01:53:35 UTC) #2
dgarrett
On 2011/01/25 01:53:35, sosa wrote: > Sorry didn't mean to Close this. PTAL LGTM with ...
9 years, 11 months ago (2011-01-25 03:43:54 UTC) #3
dgarrett
http://codereview.chromium.org/6277015/diff/3001/bin/cros_au_test_harness.py File bin/cros_au_test_harness.py (right): http://codereview.chromium.org/6277015/diff/3001/bin/cros_au_test_harness.py#newcode561 bin/cros_au_test_harness.py:561: cmd = ['%s/cros_run_vm_update' % self.crosutilsbin, Indention is off. http://codereview.chromium.org/6277015/diff/3001/bin/cros_au_test_harness.py#newcode572 ...
9 years, 11 months ago (2011-01-25 03:44:01 UTC) #4
sosa
PTAL ... I've had to change some stuff around cause of the sudo issue ...
9 years, 11 months ago (2011-01-26 02:31:58 UTC) #5
sosa
(FYI re-tested with Simple and 12 items already owned by root in my cache)
9 years, 11 months ago (2011-01-26 02:32:25 UTC) #6
sosa
@Petkov can you take a look. Don might be out sick.
9 years, 11 months ago (2011-01-26 19:02:02 UTC) #7
dgarrett
On 2011/01/26 19:02:02, sosa wrote: > @Petkov can you take a look. Don might be ...
9 years, 11 months ago (2011-01-26 19:10:56 UTC) #8
dgarrett
On 2011/01/26 19:10:56, dgarrett wrote: > On 2011/01/26 19:02:02, sosa wrote: > > @Petkov can ...
9 years, 11 months ago (2011-01-26 19:18:56 UTC) #9
dgarrett
http://codereview.chromium.org/6277015/diff/24001/bin/cros_au_test_harness.py File bin/cros_au_test_harness.py (right): http://codereview.chromium.org/6277015/diff/24001/bin/cros_au_test_harness.py#newcode735 bin/cros_au_test_harness.py:735: RunCommand(['sudo', Should this also be error_ok, to prevent nasty ...
9 years, 11 months ago (2011-01-26 19:19:16 UTC) #10
sosa
9 years, 11 months ago (2011-01-26 19:22:18 UTC) #11
http://codereview.chromium.org/6277015/diff/24001/bin/cros_au_test_harness.py
File bin/cros_au_test_harness.py (right):

http://codereview.chromium.org/6277015/diff/24001/bin/cros_au_test_harness.py...
bin/cros_au_test_harness.py:735: RunCommand(['sudo',
I thought maybe too ... but it seems that cherrypy handles the kill signal well
and ends with exit 0.

Here's the end output from my test run:

[25/Jan/2011:18:30:56] ENGINE Caught signal SIGTERM.
[25/Jan/2011:18:30:56] ENGINE Bus STOPPING
[25/Jan/2011:18:30:56] ENGINE HTTP Server
cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
[25/Jan/2011:18:30:56] ENGINE Stopped thread 'Autoreloader'.
[25/Jan/2011:18:30:56] ENGINE Stopped thread '_TimeoutMonitor'.
[25/Jan/2011:18:30:56] ENGINE Bus STOPPED
[25/Jan/2011:18:30:56] ENGINE Bus EXITING
[25/Jan/2011:18:30:56] ENGINE Bus EXITED
[25/Jan/2011:18:30:56] ENGINE Waiting for child threads to terminate...
INFO   : Unmounting chroot environment.



On 2011/01/26 19:19:16, dgarrett wrote:
> Should this also be error_ok, to prevent nasty logging when the pkill below is
> used?

Powered by Google App Engine
This is Rietveld 408576698