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

Issue 2570553002: Clear cache before running the test (Closed)

Created:
4 years ago by Sergiy Byelozyorov
Modified:
3 years, 11 months ago
Reviewers:
allada, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear cache before running the test This should help reducing the flakiness of this test, which is currently ~65%: http://test-results.appspot.com/flakiness/dir/http/tests/inspector/network. The text diff shows that actual number of items that are cached is different from the expected: https://justpaste.it/11bq3. R=allada@chromium.org BUG=673378

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 2

Patch Set 3 : Addressed comments #

Patch Set 4 : Addressed comments #

Patch Set 5 : Fix #

Patch Set 6 : Clear cache synchronously #

Patch Set 7 : Fix #

Total comments: 2

Patch Set 8 : Addressed comments #

Patch Set 9 : Fix #

Total comments: 4

Patch Set 10 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 49 (28 generated)
allada
lgtm https://codereview.chromium.org/2570553002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html File third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html (right): https://codereview.chromium.org/2570553002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html#newcode101 third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html:101: function clearAllCaches() { I would love to have ...
4 years ago (2016-12-12 17:45:26 UTC) #10
Sergiy Byelozyorov
https://codereview.chromium.org/2570553002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html File third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html (right): https://codereview.chromium.org/2570553002/diff/20001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html#newcode101 third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html:101: function clearAllCaches() { On 2016/12/12 17:45:25, Blaise wrote: > ...
4 years ago (2016-12-12 18:18:51 UTC) #12
pfeldman
There already is http/tests/inspector/network-test.js, I guess Blaise meant that one.
4 years ago (2016-12-12 20:45:06 UTC) #16
Sergiy Byelozyorov
On 2016/12/12 20:45:06, pfeldman wrote: > There already is http/tests/inspector/network-test.js, I guess Blaise meant that ...
4 years ago (2016-12-13 09:36:38 UTC) #17
Sergiy Byelozyorov
PTAL
4 years ago (2016-12-15 11:53:11 UTC) #28
pfeldman
https://codereview.chromium.org/2570553002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html File third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html (right): https://codereview.chromium.org/2570553002/diff/120001/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html#newcode88 third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html:88: InspectorTest.clearAllCaches(); Why do you think Cache API is related ...
4 years ago (2016-12-15 18:25:08 UTC) #29
allada
Most of our network tests should be ran with cache either disabled or cleared. Right ...
4 years ago (2016-12-15 19:01:49 UTC) #30
allada
Sorry, I meant: InspectorTest.NetworkAgent.setCacheDisabled(true, InspectorTest.NetworkAgent.setCacheDisabled.bind(InspectorTest.NetworkAgent, false, finishedCallback));
4 years ago (2016-12-15 19:02:42 UTC) #31
Sergiy Byelozyorov
> Why do you think Cache API is related to the flakiness? Sorry, I did ...
4 years ago (2016-12-16 15:22:27 UTC) #32
allada
Looks good! https://codereview.chromium.org/2570553002/diff/160001/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js (right): https://codereview.chromium.org/2570553002/diff/160001/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js#newcode126 third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js:126: InspectorTest.NetworkAgent.setCacheDisabled(true, function() { Our new code does ...
4 years ago (2016-12-16 22:47:28 UTC) #33
Sergiy Byelozyorov
https://codereview.chromium.org/2570553002/diff/160001/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js (right): https://codereview.chromium.org/2570553002/diff/160001/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js#newcode126 third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js:126: InspectorTest.NetworkAgent.setCacheDisabled(true, function() { On 2016/12/16 22:47:28, allada wrote: > ...
4 years ago (2016-12-17 15:38:53 UTC) #34
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/2570553002/180001
4 years ago (2016-12-17 15:41:32 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/352128)
4 years ago (2016-12-17 17:00:49 UTC) #39
yhirano
Hi, I've just added network-filters.html to TestExpectations. Can you removes the entry if this CL ...
3 years, 11 months ago (2017-01-06 06:21:06 UTC) #40
Sergiy Byelozyorov
On 2017/01/06 06:21:06, yhirano wrote: > Hi, I've just added network-filters.html to TestExpectations. Can you ...
3 years, 11 months ago (2017-01-09 14:33:37 UTC) #41
allada
On 2017/01/09 14:33:37, SergiyB (OOO till Jan 8) wrote: > On 2017/01/06 06:21:06, yhirano wrote: ...
3 years, 11 months ago (2017-01-09 16:42:00 UTC) #42
Sergiy Byelozyorov
On 2017/01/09 16:42:00, allada wrote: > On 2017/01/09 14:33:37, SergiyB (OOO till Jan 8) wrote: ...
3 years, 11 months ago (2017-01-09 16:47:59 UTC) #43
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/2570553002/180001
3 years, 11 months ago (2017-01-09 16:48:38 UTC) #45
allada
On 2017/01/09 16:47:59, SergiyB (OOO till Jan 8) wrote: > > I'll try to CQ ...
3 years, 11 months ago (2017-01-09 17:08:26 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/360014)
3 years, 11 months ago (2017-01-09 17:55:27 UTC) #48
Sergiy Byelozyorov
3 years, 11 months ago (2017-01-09 19:23:06 UTC) #49
Message was sent while issue was closed.
On 2017/01/09 17:08:26, allada wrote:
> On 2017/01/09 16:47:59, SergiyB (OOO till Jan 8) wrote:
> > 
> > I'll try to CQ this once more, but IIRC last year it failed with some errors
> > that I was not able to decrypt and I don't have the time to investigate in
> more
> > detail. The change by Yutaka was sufficient for me to check the correctness
of
> > the dashboard and now I need to focus on fixing it.
> 
> Yes those errors are super common for us and rarely our issue, we usually just
> retry them until they pass :-(

Looks like the test times out and I am not sure why. It does not on my machine.

Powered by Google App Engine
This is Rietveld 408576698