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

Issue 6857004: Clean up extreme verbosity of logs in test harness. (Closed)

Created:
9 years, 8 months ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
davidjames, dgarrett
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Clean up extreme verbosity of logs in test harness. In addition fix a bug where we track the wrong parallel job on the job pool. In addition fix bug where we unittest harnesses randomly hangs while trying to write to stderr while finding update candidates. Change-Id: I1449501606a57c5324eafc74c4fc388fbbe2bee3 BUG=chromium-os:12950 TEST=Ran with -q and full test suite and emulated errors when necessary to see errors printed out only failures. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=8bc6eb9

Patch Set 1 #

Patch Set 2 : Reenable test #

Total comments: 13

Patch Set 3 : FOr dj #

Total comments: 1

Patch Set 4 : Even better cleanup #

Total comments: 1

Patch Set 5 : Last patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -56 lines) Patch
M au_test_harness/au_test.py View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M au_test_harness/au_worker.py View 1 2 3 4 8 chunks +39 lines, -30 lines 0 comments Download
M au_test_harness/cros_au_test_harness.py View 1 2 3 4 6 chunks +21 lines, -8 lines 0 comments Download
M au_test_harness/dummy_au_worker.py View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M au_test_harness/parallel_test_job.py View 1 2 3 1 chunk +9 lines, -4 lines 0 comments Download
M au_test_harness/real_au_worker.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M au_test_harness/update_exception.py View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M au_test_harness/vm_au_worker.py View 1 2 3 4 5 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sosa
This cleans up a lot of the test harness logs. Instead we now just print ...
9 years, 8 months ago (2011-04-14 22:54:43 UTC) #1
sosa
9 years, 8 months ago (2011-04-14 22:54:56 UTC) #2
davidjames
http://codereview.chromium.org/6857004/diff/2001/au_test_harness/au_worker.py File au_test_harness/au_worker.py (right): http://codereview.chromium.org/6857004/diff/2001/au_test_harness/au_worker.py#newcode209 au_test_harness/au_worker.py:209: cmd, log_to_file=os.path.join(log_directory, 'update.log'), I wish that there were only ...
9 years, 8 months ago (2011-04-15 17:52:08 UTC) #3
sosa
http://codereview.chromium.org/6857004/diff/2001/au_test_harness/au_worker.py File au_test_harness/au_worker.py (right): http://codereview.chromium.org/6857004/diff/2001/au_test_harness/au_worker.py#newcode214 au_test_harness/au_worker.py:214: raise update_exception.UpdateException(1, str(e)) It doesn't, however the logs are ...
9 years, 8 months ago (2011-04-18 21:12:44 UTC) #4
dgarrett
http://codereview.chromium.org/6857004/diff/7001/au_test_harness/cros_au_test_harness.py File au_test_harness/cros_au_test_harness.py (right): http://codereview.chromium.org/6857004/diff/7001/au_test_harness/cros_au_test_harness.py#newcode82 au_test_harness/cros_au_test_harness.py:82: return cros_lib.RunCommand(command, enter_chroot=True, print_cmd=False, LGTM to for change alone. ...
9 years, 8 months ago (2011-04-18 22:01:39 UTC) #5
sosa
PTAL at patch set 3. Switched to using /dev/null for first test harness run (unneccessary ...
9 years, 8 months ago (2011-04-18 23:16:26 UTC) #6
dgarrett
9 years, 8 months ago (2011-04-18 23:32:52 UTC) #7
Looks good, with one question.

http://codereview.chromium.org/6857004/diff/11002/au_test_harness/vm_au_worke...
File au_test_harness/vm_au_worker.py (right):

http://codereview.chromium.org/6857004/diff/11002/au_test_harness/vm_au_worke...
au_test_harness/vm_au_worker.py:83: Info(self.GetUpdateMessage(image_path,
src_image_path, True, proxy_port))
Should this be self.TestInfo instead?

Powered by Google App Engine
This is Rietveld 408576698