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

Issue 6526031: Add crash detection to test report generation. (Closed)

Created:
9 years, 10 months ago by DaleCurtis
Modified:
9 years, 7 months ago
Reviewers:
Chris Masone, petkov, sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Add crash detection to test report generation. As titled, similarly to http://codereview.chromium.org/6508003/, crashes are now detected in Autotest runs and will result in an error being thrown when detected. The error thrown during crash detection will cause smoke failures and close the tree. Change-Id: I403833c99c6c37f971bdbe962655ead10a1014c5 BUG=chromium-os:12100 TEST=Ran bvt, smoke with good and bad builds through run_remote_tests. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=1838b64

Patch Set 1 #

Patch Set 2 : Fix variable overlap. #

Total comments: 8

Patch Set 3 : Reflow log message. #

Patch Set 4 : Pivot on process. #

Patch Set 5 : Pivot on process. #

Patch Set 6 : Lines. #

Total comments: 4

Patch Set 7 : Code review fixes. Sorted crashes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -3 lines) Patch
M generate_test_report.py View 1 2 3 4 5 6 7 chunks +40 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
DaleCurtis
9 years, 10 months ago (2011-02-16 00:15:42 UTC) #1
sosa
+petkov
9 years, 10 months ago (2011-02-16 00:39:32 UTC) #2
petkov
http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py#newcode119 generate_test_report.py:119: crashes.append(match.group(1).split('\t')[0]) what does this do? group(1) is the whole ...
9 years, 10 months ago (2011-02-16 00:53:56 UTC) #3
DaleCurtis
http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py#newcode119 generate_test_report.py:119: crashes.append(match.group(1).split('\t')[0]) Autotest attaches the timetamp and a couple other ...
9 years, 10 months ago (2011-02-16 00:59:00 UTC) #4
Chris Masone
If the crash results are associated with the tests, sheriffs will ping test "owners" and ...
9 years, 10 months ago (2011-02-16 01:00:55 UTC) #5
petkov
http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py#newcode119 generate_test_report.py:119: crashes.append(match.group(1).split('\t')[0]) On 2011/02/16 00:59:00, dalec wrote: > Autotest attaches ...
9 years, 10 months ago (2011-02-16 01:01:16 UTC) #6
DaleCurtis
http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py#newcode119 generate_test_report.py:119: crashes.append(match.group(1).split('\t')[0]) Line in status.log is this: "INFO desktopui_ChromeFirstRender Received ...
9 years, 10 months ago (2011-02-16 01:03:54 UTC) #7
petkov
On 2011/02/16 01:00:55, Chris Masone wrote: > If the crash results are associated with the ...
9 years, 10 months ago (2011-02-16 01:04:02 UTC) #8
petkov
http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/2002/generate_test_report.py#newcode119 generate_test_report.py:119: crashes.append(match.group(1).split('\t')[0]) On 2011/02/16 01:03:54, dalec wrote: > Line in ...
9 years, 10 months ago (2011-02-16 01:06:03 UTC) #9
DaleCurtis
I can trim the message, but I was trying to keep the text as close ...
9 years, 10 months ago (2011-02-16 01:09:34 UTC) #10
petkov
On 2011/02/16 01:09:34, dalec wrote: > I can trim the message, but I was trying ...
9 years, 10 months ago (2011-02-16 01:11:53 UTC) #11
DaleCurtis
Changed, new log message is: Crashes detected during testing: ------------------------------------------------------------- desktopui_ChromeFirstRender/desktopui_ChromeFirstRender Crash: Xorg[7400] sig 11 ...
9 years, 10 months ago (2011-02-16 01:18:49 UTC) #12
petkov
Thanks much. I would still like to see the crashes interleaved into the main report ...
9 years, 10 months ago (2011-02-16 01:20:41 UTC) #13
Chris Masone
I feel strongly against it :-) The output Dale showed me seemed to gather all ...
9 years, 10 months ago (2011-02-16 01:22:48 UTC) #14
petkov
On 2011/02/16 01:22:48, Chris Masone wrote: > I feel strongly against it :-) I don't ...
9 years, 10 months ago (2011-02-16 01:26:36 UTC) #15
Chris Masone
On 2011/02/16 01:26:36, petkov wrote: > On 2011/02/16 01:22:48, Chris Masone wrote: > > I ...
9 years, 10 months ago (2011-02-16 02:09:41 UTC) #16
petkov
LGTM Thanks! http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py#newcode217 generate_test_report.py:217: if result['crashes'] and not test == tests[0]: ...
9 years, 10 months ago (2011-02-16 03:46:54 UTC) #17
Chris Masone
Thanks for sticking to this, Dale :-) Lgtm too On Feb 15, 2011 7:46 PM, ...
9 years, 10 months ago (2011-02-16 04:23:11 UTC) #18
petkov
http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py File generate_test_report.py (right): http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py#newcode117 generate_test_report.py:117: regex = re.compile('Received crash notification for (\w+).+ (sig \d+)') ...
9 years, 10 months ago (2011-02-16 08:17:40 UTC) #19
DaleCurtis
9 years, 10 months ago (2011-02-16 19:59:16 UTC) #20
Thanks for the reviews guys. I soaked it through another 10 smokes on real
hardware. Pushing now. I'll keep an eye on PFQ.

http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py
File generate_test_report.py (right):

http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py#newc...
generate_test_report.py:117: regex = re.compile('Received crash notification for
(\w+).+ (sig \d+)')
\S+ would grab the process id and such too. Switched to [-\w]+

On 2011/02/16 08:17:40, petkov wrote:
> btw, for the process name, you probably want to cover '-' too.
> maybe \S+ instead of \w+?

http://codereview.chromium.org/6526031/diff/3006/generate_test_report.py#newc...
generate_test_report.py:217: if result['crashes'] and not test == tests[0]:
Yup, changed. Python has me losing sense of basic operators.

On 2011/02/16 03:46:54, petkov wrote:
> isn't this test != tests[0]?
> 
> this filter is a bit hacky but i don't have any better suggestions...

Powered by Google App Engine
This is Rietveld 408576698