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

Issue 1289163002: Improve flakiness logic for print-flaky-tests. (Closed)

Created:
5 years, 4 months ago by ojan
Modified:
5 years, 4 months ago
Reviewers:
joelo
CC:
blink-reviews, Dirk Pranke, leviw_travelin_and_unemployed
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Improve flakiness logic for print-flaky-tests. We only compare the 2nd attempt of a run to the tests expected results to see if it was very flaky. Instead we should see if any of the runs had an unexpected result. That way, any test that gets marked flaky will stop getting printed out by this script as soon as the bots have cycled once. Also, use TestExpectations.result_was_expected to determine if a result was actually expected. The previous "in" check didn't work for cases like Text, which are a subset of Failure instead of verbatim include in TestExpectations as Text. Finally, just use the length of the results entry to decide if something is very flaky vs regular flaky. If there are <=2 entries, then it's not very flaky. That catches the cases of a test that reliably fails as well as the case of a test that fails the first attempt and runs as expected on the second run (not necessarily passing on the second attempt, just matching the listing in TestExpectations for that run). R=joelo@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200768

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -24 lines) Patch
M Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py View 7 chunks +34 lines, -14 lines 3 comments Download
M Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py View 2 chunks +7 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/tool/commands/flakytests.py View 2 chunks +21 lines, -4 lines 0 comments Download
M Tools/Scripts/webkitpy/tool/commands/flakytests_unittest.py View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
ojan
5 years, 4 months ago (2015-08-14 00:03:27 UTC) #2
joelo
lgtm https://codereview.chromium.org/1289163002/diff/1/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py File Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py (right): https://codereview.chromium.org/1289163002/diff/1/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py#newcode151 Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py:151: # TODO(ojan): Remove this once crbug.com/514378 is fixed. ...
5 years, 4 months ago (2015-08-17 23:43:30 UTC) #3
ojan
https://codereview.chromium.org/1289163002/diff/1/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py File Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py (right): https://codereview.chromium.org/1289163002/diff/1/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py#newcode266 Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py:266: # TODO(ojan): Remove this if-statement once crbug.com/514378 is fixed. ...
5 years, 4 months ago (2015-08-19 00:42:54 UTC) #4
ojan
5 years, 4 months ago (2015-08-19 00:43:47 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 200768 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698