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

Issue 2518383003: Rewrite ontimeout-event-override-after-failure for less flakes and better errors (Closed)

Created:
4 years ago by pdr.
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rewrite ontimeout-event-override-after-failure for less flakes and better errors This patch rewrites ontimeout-event-override-after-failure with these changes: 1) The test no longer depends on setTimeout racing the network to pass. Instead of having an async setTimeout check for success, we rely on async callbacks in xhr's onerror and ontimeout. This should make the test faster in the common case, and still pass if the test server is slow. 2) The xhr timeout has been increased to 500ms. If this test is flaky due to the test server not responding fast enough, this change should deflake it. 3) The two failure modes of this test now print different errors which should help in debugging this if it is still flaky. 4) The test has been reformated to 80cols. This test is flaky but only very rarely: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fxmlhttprequest%2Fontimeout-event-override-after-failure.html A previous attempt at deflaking this test by increasing the timeout failed: https://crrev.com/613135a62748f6d2f875f11b9096c368a3873714 After this patch lands, we need to monitor the following: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fxmlhttprequest%2Fontimeout-event-override-after-failure.html If the flakiness disappears, the lines in TestExpectations should be removed. BUG=464736, 665165 Committed: https://crrev.com/ff4bdcb669f08b5119a63d8eb60c40bb5c4b89c4 Cr-Commit-Position: refs/heads/master@{#434390}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -39 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/ontimeout-event-override-after-failure.html View 1 chunk +36 lines, -39 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
pdr.
pdr vs ontimeout-event-override-after-failure, round 2!
4 years ago (2016-11-22 20:33:50 UTC) #4
eae
LGTM
4 years ago (2016-11-23 22:07:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518383003/1
4 years ago (2016-11-23 22:08:53 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 00:11:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518383003/1
4 years ago (2016-11-24 00:22:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-24 02:25:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518383003/1
4 years ago (2016-11-24 20:10:25 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-24 21:44:10 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-24 21:46:01 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ff4bdcb669f08b5119a63d8eb60c40bb5c4b89c4
Cr-Commit-Position: refs/heads/master@{#434390}

Powered by Google App Engine
This is Rietveld 408576698