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

Issue 6557003: Modify autotest to support preserving minidumps generated during tests. (Closed)

Created:
9 years, 10 months ago by thieule
Modified:
9 years, 4 months ago
Reviewers:
kmixter1, ericli, sosa
CC:
chromium-os-reviews_chromium.org, truty+cc_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli, petkov+cc_chromium.org
Visibility:
Public.

Description

Modify autotest to support preserving minidumps generated during tests. Crash information is retained for all tests that are not testing the crash facilities themselves. Crash tests touch /tmp/crash-test-in-progress to indicate that crash facilities are being tested and minidumps should not be retained all the time. At the end of each job, autotest enumerates the test results directory and creates stack traces for all minidumps. BUG=chromium-os:12207 TEST=logging_UserCrash, logging_CrashSender, manual test which involves purposely crashing a test to determine if minidump information is properly collected Change-Id: Iad4180ed6aba2ef434aa29f2aac587c8d5d4dfcc Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=c16253b

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed code review feedbacks. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -0 lines) Patch
M client/cros/crash_test.py View 4 chunks +11 lines, -0 lines 0 comments Download
A server/site_crashcollect.py View 1 1 chunk +49 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
thieule
This CL is the first of two CLs that add support to preserve crash information ...
9 years, 10 months ago (2011-02-23 01:27:30 UTC) #1
kmixter1
Nice! A few comments/questions below. You should test by running bvts (since these are server ...
9 years, 10 months ago (2011-02-23 02:00:39 UTC) #2
ericli
http://codereview.chromium.org/6557003/diff/1/client/bin/test.py File client/bin/test.py (right): http://codereview.chromium.org/6557003/diff/1/client/bin/test.py#newcode123 client/bin/test.py:123: for hook in self.after_iteration_hooks: common_test.base_test._call_run_once() will also call self.after_iteration_hooks. ...
9 years, 10 months ago (2011-02-23 04:49:34 UTC) #3
thieule
The autotest changes were upstreamed, thanks Eric. I've moved the stack trace generation to site_crashcollector.py. ...
9 years, 9 months ago (2011-03-03 01:27:41 UTC) #4
ericli
LGTM. This is a much cleaner logic. Ken should comment on the minidumps logic, not ...
9 years, 9 months ago (2011-03-03 01:35:42 UTC) #5
kmixter1
http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py File server/site_crashcollect.py (right): http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py#newcode1 server/site_crashcollect.py:1: # Copyright (c) 2011 The Chromium OS Authors. All ...
9 years, 9 months ago (2011-03-03 01:49:54 UTC) #6
thieule
http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py File server/site_crashcollect.py (right): http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py#newcode1 server/site_crashcollect.py:1: # Copyright (c) 2011 The Chromium OS Authors. All ...
9 years, 9 months ago (2011-03-03 02:22:45 UTC) #7
kmixter1
9 years, 9 months ago (2011-03-03 02:35:33 UTC) #8
LGTM as is.

On Wed, Mar 2, 2011 at 6:22 PM, <thieule@chromium.org> wrote:

>
>
> http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py
> File server/site_crashcollect.py (right):
>
>
>
http://codereview.chromium.org/6557003/diff/7001/server/site_crashcollect.py#...
> server/site_crashcollect.py:1: # Copyright (c) 2011 The Chromium OS
> Authors. All rights reserved.
> On 2011/03/03 01:49:54, kmixter1 wrote:
>
>> Can we name this differently? "crash_collector" is a term in
>>
> crash-reporter
>
>> codebase that collects the basic crash dump data from the kernel.
>>
> It's not the
>
>> most descriptive either, admittedly. Maybe site_stacktrace_generator
>>
> or
>
>> site_crash_stacktrace?
>>
>
> Unfortunately, the name is dictated by autotest in crashcollect.py.
> site_crashcollect.py is meant as a site specific extension to
> crashcollect.py.  If you want, we can create another file called
> site_crash_stacktrace.py, put the new code in there, and then call
> find_and_generate_minidump_stacktraces from get_site_crashdumps.  It'll
> just be an indirection.  I don't think we should change the
> site_crashcollect name in autotest since existing tests (outside of
> Google) may depend on this and I'm not sure how well that will upstream.
>
>
> http://codereview.chromium.org/6557003/
>

Powered by Google App Engine
This is Rietveld 408576698