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

Issue 14743007: Retries with exponential backoff for dismissals (Closed)

Created:
7 years, 7 months ago by vadimt
Modified:
7 years, 7 months ago
CC:
chromium-reviews, arv+watch_chromium.org, stromme, govind1
Visibility:
Public.

Description

Retries with exponential backoff for dismissals. Unification of retry mechanisms for updating cards and dismissals. BUG=164227 TEST=For updating cards: all previously existing tests apply. Make sure that existing tests include checking for exponentially growing (with random jitter) retry period starting with a random value between 5-6 min till we get to 1 hour. Make sure that the tests check that after successfully receiving cards, next update will be exactly after the time suggested by the server. For dismissals: modify existing tests to expect exponentially growing retry period, starting from 1-1.2 minutes, capped by 1 hour. After dismissal success, dismissal retries should stop. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200368

Patch Set 1 #

Patch Set 2 : Cosmetics #

Total comments: 6

Patch Set 3 : skare@ comments #

Total comments: 14

Patch Set 4 : Comments. #

Patch Set 5 : Typo. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -71 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 9 chunks +29 lines, -70 lines 0 comments Download
M chrome/browser/resources/google_now/manifest.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/google_now/utility.js View 1 2 3 4 1 chunk +97 lines, -0 lines 2 comments Download

Messages

Total messages: 15 (0 generated)
vadimt
7 years, 7 months ago (2013-05-11 00:01:09 UTC) #1
skare_
https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js#newcode270 chrome/browser/resources/google_now/utility.js:270: storage.set(items); this is just syntax but either var items ...
7 years, 7 months ago (2013-05-11 00:56:23 UTC) #2
skare_
https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js#newcode279 chrome/browser/resources/google_now/utility.js:279: function start(optionalFirstDelaySeconds) { On 2013/05/11 00:56:23, Travis Skare wrote: ...
7 years, 7 months ago (2013-05-11 01:03:05 UTC) #3
vadimt
https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js#newcode270 chrome/browser/resources/google_now/utility.js:270: storage.set(items); On 2013/05/11 00:56:23, Travis Skare wrote: > this ...
7 years, 7 months ago (2013-05-11 01:55:15 UTC) #4
skare_
https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/2001/chrome/browser/resources/google_now/utility.js#newcode270 chrome/browser/resources/google_now/utility.js:270: storage.set(items); On 2013/05/11 01:55:15, vadimt wrote: > On 2013/05/11 ...
7 years, 7 months ago (2013-05-11 02:07:19 UTC) #5
rgustafson
https://codereview.chromium.org/14743007/diff/12001/chrome/browser/resources/google_now/manifest.json File chrome/browser/resources/google_now/manifest.json (right): https://codereview.chromium.org/14743007/diff/12001/chrome/browser/resources/google_now/manifest.json#newcode4 chrome/browser/resources/google_now/manifest.json:4: "version": "1.3", I suggest the lower parts of version ...
7 years, 7 months ago (2013-05-14 01:25:17 UTC) #6
skare_
in general, functionality looks good. high-level comment: could this patch become easier to read by ...
7 years, 7 months ago (2013-05-14 02:03:52 UTC) #7
vadimt
https://codereview.chromium.org/14743007/diff/12001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/14743007/diff/12001/chrome/browser/resources/google_now/background.js#newcode306 chrome/browser/resources/google_now/background.js:306: updateCardsAttempts.start(parsedResponse.expiration_timestamp_seconds); On 2013/05/14 02:03:52, Travis Skare wrote: > just ...
7 years, 7 months ago (2013-05-14 18:47:50 UTC) #8
rgustafson
lgtm
7 years, 7 months ago (2013-05-14 21:42:11 UTC) #9
skare_
lgtm Reads clearer second time through but just as an fyi it seemed a little ...
7 years, 7 months ago (2013-05-14 22:55:29 UTC) #10
vadimt
arv@, please provide OWNER's approval
7 years, 7 months ago (2013-05-14 23:00:20 UTC) #11
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/14743007/diff/23001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/23001/chrome/browser/resources/google_now/utility.js#newcode236 chrome/browser/resources/google_now/utility.js:236: function buildAttemptManager( In general build and create functions ...
7 years, 7 months ago (2013-05-15 17:25:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/14743007/23001
7 years, 7 months ago (2013-05-15 18:15:57 UTC) #13
vadimt
https://codereview.chromium.org/14743007/diff/23001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/14743007/diff/23001/chrome/browser/resources/google_now/utility.js#newcode236 chrome/browser/resources/google_now/utility.js:236: function buildAttemptManager( On 2013/05/15 17:25:36, arv wrote: > In ...
7 years, 7 months ago (2013-05-15 19:05:17 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 22:17:11 UTC) #15
Message was sent while issue was closed.
Change committed as 200368

Powered by Google App Engine
This is Rietveld 408576698