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

Issue 2827233006: [WebAPKs] Make WebAPK update flow more sensible (Closed)

Created:
3 years, 8 months ago by pkotwicz
Modified:
3 years, 7 months ago
Reviewers:
F, dominickn, Xi Han, hartmanng
CC:
chromium-reviews, zpeng+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebAPKs] Make WebAPK update flow more sensible Previously, whenever the shell_apk in shell_apk_version.gni there was a period of time during which - Chrome tries to update the WebAPK because the "shell_apk" version with which Chrome is compiled with was updated - The WebAPK server is unable to fulfill the update request because the new ShellAPK has not yet been uploaded to the WebAPK server This CL splits shell_apk_version in shell_apk_version.gni into two variables: |template_shell_apk_version| and |expected_shell_apk_version| The new flow for updating android/webapk/shell_apk will be: 1) Write CL which: - Makes changes to code in android/webapk/shell_apk - Increments |template_shell_apk_version| This will: - Update the template ShellAPK which is built on the official build bot - Trigger an alert that the ShellAPK on the WebAPK Minting Server needs to be updated - Does not affect the "WebAPK update logic". 2) Upload new ShellAPK template to the WebAPK Minting Server At this point: - new WebAPK installs will have the updated shell. - Chrome will still not request updates to the new ShellAPK version 3) Write CL which: - Increments |expected_shell_apk_version| This will: - cause Chrome to request updates to the new ShellAPK version BUG=708053 Review-Url: https://codereview.chromium.org/2827233006 Cr-Commit-Position: refs/heads/master@{#467708} Committed: https://chromium.googlesource.com/chromium/src/+/d71abed75b07b4b9fc50591cbeb2b6c8874bf448

Patch Set 1 : Merge branch 'master' into version #

Total comments: 8

Patch Set 2 : Merge branch 'master' into version #

Patch Set 3 : Merge branch 'master' into version #

Total comments: 1

Patch Set 4 : Merge branch 'master' into version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M chrome/android/webapk/libs/client/BUILD.gn View 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/webapk/shell_apk/BUILD.gn View 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/webapk/shell_apk/shell_apk_version.gni View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
pkotwicz
Glenn, Felix and Xi can you please take a look?
3 years, 8 months ago (2017-04-21 21:24:09 UTC) #3
Xi Han
Thank you Peter for writing this CL! The new upload flow looks good. Only comments ...
3 years, 8 months ago (2017-04-24 13:41:13 UTC) #6
hartmanng
lgtm, but the buildbot script will need to be updated to reflect the new name ...
3 years, 8 months ago (2017-04-24 14:03:02 UTC) #7
F
lgtm
3 years, 8 months ago (2017-04-24 18:46:48 UTC) #8
pkotwicz
Dominick, can you please take a look? https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni File chrome/android/webapk/shell_apk/shell_apk_version.gni (right): https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni#newcode8 chrome/android/webapk/shell_apk/shell_apk_version.gni:8: template_shell_apk_version = ...
3 years, 8 months ago (2017-04-25 01:15:31 UTC) #10
Xi Han
https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni File chrome/android/webapk/shell_apk/shell_apk_version.gni (right): https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni#newcode8 chrome/android/webapk/shell_apk/shell_apk_version.gni:8: template_shell_apk_version = 3 On 2017/04/25 01:15:31, pkotwicz wrote: > ...
3 years, 8 months ago (2017-04-25 13:58:24 UTC) #11
pkotwicz
Xi can you please take another look? https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni File chrome/android/webapk/shell_apk/shell_apk_version.gni (right): https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni#newcode8 chrome/android/webapk/shell_apk/shell_apk_version.gni:8: template_shell_apk_version = ...
3 years, 8 months ago (2017-04-25 22:29:33 UTC) #12
dominickn
I will stamp this one Xi reviews. :)
3 years, 8 months ago (2017-04-26 01:02:01 UTC) #13
Xi Han
lgtm with nits. https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni File chrome/android/webapk/shell_apk/shell_apk_version.gni (right): https://codereview.chromium.org/2827233006/diff/40001/chrome/android/webapk/shell_apk/shell_apk_version.gni#newcode8 chrome/android/webapk/shell_apk/shell_apk_version.gni:8: template_shell_apk_version = 3 On 2017/04/25 22:29:33, ...
3 years, 8 months ago (2017-04-26 01:08:16 UTC) #14
pkotwicz
Dominick, can you please take a look?
3 years, 8 months ago (2017-04-26 20:00:05 UTC) #15
dominickn
lgtm
3 years, 7 months ago (2017-04-27 02:34:46 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/2827233006/100001
3 years, 7 months ago (2017-04-27 14:41:54 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://chromium.googlesource.com/chromium/src/+/d71abed75b07b4b9fc50591cbeb2b6c8874bf448
3 years, 7 months ago (2017-04-27 16:41:36 UTC) #22
timvolodine
3 years, 7 months ago (2017-04-28 12:13:39 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:100001) has been created in
https://codereview.chromium.org/2845943006/ by timvolodine@chromium.org.

The reason for reverting is: broke official-* bots, see crbug.com/716330.

Powered by Google App Engine
This is Rietveld 408576698