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

Issue 2548343002: NTPSnippets: Set MaxRetriesOn5xx only for interactive requests. (Closed)

Created:
4 years ago by fhorschig
Modified:
4 years ago
Reviewers:
Marc Treib, tschumann
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set MaxRetriesOn5xx only for interactive requests. Keep retries on 5xx errors only for user-triggered, interactive requests. Other fetches have no immediate priority and their number will be determined by a variation parameter. This CL does not reschedule/retry non-interactive requests, as we figured that this small change improves the current state on its own and rescheduling requires some more discussion. BUG=668074 Committed: https://crrev.com/6d88a9de178e49cfd9f2660d3ba1d7a1069c18ff Cr-Commit-Position: refs/heads/master@{#437872}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use TestURLFetcher instead of helper function. Rebased. #

Total comments: 18

Patch Set 3 : Setting retries configurable by VariationParameter. #

Patch Set 4 : Replaced inherited test with scope-injected fetcher. #

Total comments: 31

Patch Set 5 : Attached the variation parameter to the suggestions feature. #

Patch Set 6 : Ability of FetcherFactory to warn about multiple |Create| calls. #

Total comments: 17

Patch Set 7 : Rebased. #

Total comments: 8

Patch Set 8 : Desriptions for test cases. #

Patch Set 9 : Document missing functionality inline. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -17 lines) Patch
M components/ntp_snippets/remote/ntp_snippets_fetcher.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 2 3 4 5 6 4 chunks +15 lines, -2 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +136 lines, -15 lines 0 comments Download

Messages

Total messages: 45 (22 generated)
fhorschig
This is the CL I spoke about. It would be nice if you would also ...
4 years ago (2016-12-05 17:11:18 UTC) #4
tschumann
https://codereview.chromium.org/2548343002/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2548343002/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode666 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:666: return BuildURLFetcher(/*request=*/nullptr, // Can never be called anyways. this ...
4 years ago (2016-12-05 17:26:34 UTC) #6
fhorschig
The preview functions are deleted. This is now the most basic change. https://codereview.chromium.org/2548343002/diff/1/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc ...
4 years ago (2016-12-06 14:31:40 UTC) #9
Marc Treib
https://codereview.chromium.org/2548343002/diff/60001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2548343002/diff/60001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode820 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:820: // TODO(fhorschig): back off for 1h (+1h jitter) and ...
4 years ago (2016-12-06 16:06:56 UTC) #10
tschumann
some thoughts about the test design https://codereview.chromium.org/2548343002/diff/60001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/60001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode352 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:352: class NTPSnippetsInternalUrlFetcherTest : ...
4 years ago (2016-12-06 18:18:25 UTC) #11
fhorschig
Thanks for the comments. Variations added and Inherited Test class removed. https://codereview.chromium.org/2548343002/diff/60001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): ...
4 years ago (2016-12-08 10:20:58 UTC) #14
Marc Treib
https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode65 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:65: // Variation parameter for disabling the retry . nitty ...
4 years ago (2016-12-08 10:52:06 UTC) #15
Marc Treib
Comment on the description (per the recent discussion about that): Would you mind adding "NTPSnippets: ...
4 years ago (2016-12-08 10:59:03 UTC) #16
tschumann
cool https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode212 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:212: class ScopedInjectedTestURLFetcherFactory { now that I better understand ...
4 years ago (2016-12-08 13:27:53 UTC) #20
Marc Treib
https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode999 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:999: std::map<std::string, int> expected_retries_for_configurations = { On 2016/12/08 13:27:53, tschumann ...
4 years ago (2016-12-08 13:31:56 UTC) #21
fhorschig
Debugging took me some time, but now, the factory will work even if someone changes ...
4 years ago (2016-12-09 12:37:55 UTC) #24
tschumann
https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode170 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:170: class DelegateCallingTestURLFetcherFactory hmm... I wonder why the previous (much ...
4 years ago (2016-12-09 12:53:38 UTC) #25
Marc Treib
https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode65 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:65: // Variation parameter for disabling the retry . On ...
4 years ago (2016-12-09 12:59:24 UTC) #26
fhorschig
https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2548343002/diff/100001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode65 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:65: // Variation parameter for disabling the retry . On ...
4 years ago (2016-12-12 09:54:04 UTC) #27
tschumann
https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode170 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:170: class DelegateCallingTestURLFetcherFactory On 2016/12/12 09:54:03, fhorschig wrote: > On ...
4 years ago (2016-12-12 10:00:42 UTC) #30
Marc Treib
Thanks! LGTM (with nits) once Tim is satisfied. https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode222 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:222: return; ...
4 years ago (2016-12-12 10:17:16 UTC) #31
fhorschig
https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/180001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode170 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:170: class DelegateCallingTestURLFetcherFactory On 2016/12/12 10:00:42, tschumann wrote: > On ...
4 years ago (2016-12-12 11:05:10 UTC) #34
tschumann
https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode1053 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:1053: {"", 0}, // Keep 2 retries if no variation ...
4 years ago (2016-12-12 11:55:48 UTC) #35
fhorschig
https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc File components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc (right): https://codereview.chromium.org/2548343002/diff/200001/components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc#newcode1053 components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc:1053: {"", 0}, // Keep 2 retries if no variation ...
4 years ago (2016-12-12 12:16:45 UTC) #36
tschumann
lgtm lgtm as discussed offline, let's document the missing functionality of the existing test factories ...
4 years ago (2016-12-12 14:01:28 UTC) #37
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/2548343002/240001
4 years ago (2016-12-12 14:14:43 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years ago (2016-12-12 15:01:34 UTC) #43
commit-bot: I haz the power
4 years ago (2016-12-12 15:12:17 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6d88a9de178e49cfd9f2660d3ba1d7a1069c18ff
Cr-Commit-Position: refs/heads/master@{#437872}

Powered by Google App Engine
This is Rietveld 408576698