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

Issue 1149743002: [Findit] Use step level analysis to exclude flaky test failures. (Closed)

Created:
5 years, 7 months ago by chanli
Modified:
5 years, 7 months ago
Reviewers:
Sharu Jiang, stgao
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Findit] Use step level analysis to exclude flaky test failures. 1. Try to retrieve archived step log in google cloud storage before analyze stdio log. 2. Pull reliable failures to a new log to extract signals. 3. Ignore flaky tests: If one test fails in some attempts and succeeds in others, it's a flaky test. BUG=485795 Committed: https://chromium.googlesource.com/infra/infra/+/1ac9ac8d39c9d9a75c039bec10a09b67e8256c7a

Patch Set 1 #

Total comments: 9

Patch Set 2 : Use cStringIO to pull the reliable test failures. #

Total comments: 22

Patch Set 3 : Fixed several small issues based on comments. #

Total comments: 16

Patch Set 4 : Add check for 'gtest_results' being 'invalid'. #

Total comments: 16

Patch Set 5 : Add logic to handle cases when 'gtest_results' is 'invalid' or flaky. #

Total comments: 13

Patch Set 6 : Fix nits. #

Total comments: 1

Patch Set 7 : Fix name style nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -33 lines) Patch
A + appengine/findit/cloudstorage View 0 chunks +-1 lines, --1 lines 0 comments Download
M appengine/findit/waterfall/analyze_build_failure_pipeline.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/buildbot.py View 1 2 3 4 5 6 4 chunks +24 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/extract_signal_pipeline.py View 1 2 3 4 5 3 chunks +75 lines, -26 lines 0 comments Download
M appengine/findit/waterfall/test/buildbot_test.py View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
A appengine/findit/waterfall/test/data/m_b_123_abc_test.json View 1 1 chunk +181 lines, -0 lines 0 comments Download
A appengine/findit/waterfall/test/data/m_b_124_abc_test.json View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
A appengine/findit/waterfall/test/data/m_b_125_abc_test.json View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M appengine/findit/waterfall/test/extract_signal_pipeline_test.py View 1 2 3 4 5 3 chunks +164 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (4 generated)
chanli
Hi, This is the change for step level analysis. Please review it when you have ...
5 years, 7 months ago (2015-05-20 18:31:35 UTC) #2
stgao
Publish some comments to work on. Technically speaking, this CL is to ignore the output ...
5 years, 7 months ago (2015-05-21 00:29:56 UTC) #3
chanli
I've made the changes, please review it when you have time.^_^
5 years, 7 months ago (2015-05-21 23:04:35 UTC) #4
stgao
Gave a more closer review. https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/buildbot.py#newcode144 appengine/findit/waterfall/buildbot.py:144: """Returns the archived Step ...
5 years, 7 months ago (2015-05-22 01:30:37 UTC) #5
Sharu Jiang
Have some questions and find a nit :) https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py File appengine/findit/waterfall/extract_signal_pipeline.py (right): https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py#newcode127 appengine/findit/waterfall/extract_signal_pipeline.py:127: raise ...
5 years, 7 months ago (2015-05-22 17:54:30 UTC) #6
chanli
Done. Please review it when you have time. https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py File appengine/findit/waterfall/extract_signal_pipeline.py (right): https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py#newcode52 appengine/findit/waterfall/extract_signal_pipeline.py:52: """Analyze ...
5 years, 7 months ago (2015-05-22 18:43:27 UTC) #7
Sharu Jiang
some follow ups :) https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py File appengine/findit/waterfall/extract_signal_pipeline.py (right): https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py#newcode127 appengine/findit/waterfall/extract_signal_pipeline.py:127: raise pipeline.Retry('Failed to pull stdio ...
5 years, 7 months ago (2015-05-22 20:09:37 UTC) #8
chanli
On 2015/05/22 20:09:37, sharu jiang wrote: > some follow ups :) > > https://codereview.chromium.org/1149743002/diff/20001/appengine/findit/waterfall/extract_signal_pipeline.py > ...
5 years, 7 months ago (2015-05-22 20:58:57 UTC) #9
chromium-reviews
Get it but should we set it to some value, so the next time we ...
5 years, 7 months ago (2015-05-22 21:38:20 UTC) #10
chromium-reviews
So maybe we should set the failure_log to "No reliable failures found." ? What do ...
5 years, 7 months ago (2015-05-22 22:20:16 UTC) #11
chromium-reviews
Maybe, 'failures are flaky?' I am not sure On Fri, May 22, 2015 at 3:20 ...
5 years, 7 months ago (2015-05-22 22:42:09 UTC) #12
stgao
Overall looks quite good. For python coding style, please check http://google-styleguide.googlecode.com/svn/trunk/pyguide.html https://codereview.chromium.org/1149743002/diff/40001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): ...
5 years, 7 months ago (2015-05-22 22:49:43 UTC) #13
chanli
https://codereview.chromium.org/1149743002/diff/40001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/40001/appengine/findit/waterfall/buildbot.py#newcode143 appengine/findit/waterfall/buildbot.py:143: builder_name, build_number, step_name): # pragma: no cover On 2015/05/22 ...
5 years, 7 months ago (2015-05-22 23:26:33 UTC) #14
stgao
https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: with contextlib.closing(gzip.open( Is contextlib.closing required for gzip.open? https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/extract_signal_pipeline.py File ...
5 years, 7 months ago (2015-05-26 18:14:49 UTC) #15
chanli
Hi Shuotao, I have 2 questions about your comments... https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: ...
5 years, 7 months ago (2015-05-26 19:07:39 UTC) #16
stgao
https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: with contextlib.closing(gzip.open( On 2015/05/26 19:07:38, chanli wrote: > On ...
5 years, 7 months ago (2015-05-26 19:17:12 UTC) #17
chanli
https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: with contextlib.closing(gzip.open( On 2015/05/26 19:17:11, Shuotao wrote: > On ...
5 years, 7 months ago (2015-05-26 20:31:56 UTC) #18
chanli
https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: with contextlib.closing(gzip.open( On 2015/05/26 18:14:49, Shuotao wrote: > Is ...
5 years, 7 months ago (2015-05-26 21:51:31 UTC) #19
chanli
Done. https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/60001/appengine/findit/waterfall/buildbot.py#newcode149 appengine/findit/waterfall/buildbot.py:149: with contextlib.closing(gzip.open( On 2015/05/26 18:14:49, Shuotao wrote: > ...
5 years, 7 months ago (2015-05-26 23:33:41 UTC) #20
stgao
https://codereview.chromium.org/1149743002/diff/80001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/80001/appengine/findit/waterfall/buildbot.py#newcode148 appengine/findit/waterfall/buildbot.py:148: build_number, step_name))) as gtest_result_file: Readability could be improved here ...
5 years, 7 months ago (2015-05-27 00:18:21 UTC) #21
chanli
Done. https://codereview.chromium.org/1149743002/diff/80001/appengine/findit/waterfall/buildbot.py File appengine/findit/waterfall/buildbot.py (right): https://codereview.chromium.org/1149743002/diff/80001/appengine/findit/waterfall/buildbot.py#newcode148 appengine/findit/waterfall/buildbot.py:148: build_number, step_name))) as gtest_result_file: On 2015/05/27 00:18:21, Shuotao ...
5 years, 7 months ago (2015-05-27 00:32:15 UTC) #22
stgao
lgtm Would you like uploading a version to findit-for-me app and trying it out with ...
5 years, 7 months ago (2015-05-27 01:44:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149743002/120001
5 years, 7 months ago (2015-05-27 17:30:48 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/infra/infra/+/1ac9ac8d39c9d9a75c039bec10a09b67e8256c7a
5 years, 7 months ago (2015-05-27 17:34:57 UTC) #27
chanli
Shuotao, I just modified buildbot.py and now gzip works. Could you give me another round ...
5 years, 7 months ago (2015-05-27 23:33:56 UTC) #28
stgao
On 2015/05/27 23:33:56, chanli wrote: > Shuotao, > > I just modified buildbot.py and now ...
5 years, 7 months ago (2015-05-27 23:35:54 UTC) #29
chanli
On 2015/05/27 23:35:54, Shuotao wrote: > On 2015/05/27 23:33:56, chanli wrote: > > Shuotao, > ...
5 years, 7 months ago (2015-05-27 23:37:04 UTC) #30
stgao
On 2015/05/27 23:37:04, chanli wrote: > On 2015/05/27 23:35:54, Shuotao wrote: > > On 2015/05/27 ...
5 years, 7 months ago (2015-05-27 23:43:03 UTC) #31
chromium-reviews
How to delete it? On Wed, May 27, 2015 at 4:43 PM, <stgao@chromium.org> wrote: > ...
5 years, 7 months ago (2015-05-27 23:44:22 UTC) #32
chromium-reviews
5 years, 7 months ago (2015-05-27 23:45:11 UTC) #34
Message was sent while issue was closed.
Found it. Done.

On Wed, May 27, 2015 at 4:44 PM, Chan Li <chanli@google.com> wrote:

> How to delete it?
>
> On Wed, May 27, 2015 at 4:43 PM, <stgao@chromium.org> wrote:
>
>> On 2015/05/27 23:37:04, chanli wrote:
>>
>>> On 2015/05/27 23:35:54, Shuotao wrote:
>>> > On 2015/05/27 23:33:56, chanli wrote:
>>> > > Shuotao,
>>> > >
>>> > > I just modified buildbot.py and now gzip works. Could you give me
>>> another
>>> > round
>>> > > of review?
>>> >
>>> > Would you mind creating a new CL for the change as the original CL was
>>>
>> already
>>
>>> > committed?
>>>
>>
>>  OK, I can do that. Do I need to do anything about this new patch I just
>>> added?
>>> Or I can just leave it here?
>>>
>>
>> It might be better to delete it.
>>
>> https://codereview.chromium.org/1149743002/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698