|
|
Created:
3 years, 10 months ago by Ben Chan Modified:
3 years, 10 months ago Reviewers:
achuithb CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncros: ensure update check to complete at OOBE before allowing login
This CL updates the CrOS login flow to ensure the update check is
complete at OOBE before allowing the first user to log in. Without a
successful check for update, we can't be sure if there is a critical
update. To play safe and avoid missing any critical update during OOBE,
we modify the UI simply goes back to the network selection screen
instead of proceeding to the login screen. For the non-OOBE flow, we
don't want to block the users while failing to check for update, and
thus preseve the existing UI behavior to proceed to the login screen.
BUG=chromium:683424
TEST=Tested the following:
1. Under the OOBE scenario, interrupt the network connectivity when
the UI is checking for update. Verify that the UI goes back to the
network selection screen.
2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds
to the login screen.
Review-Url: https://codereview.chromium.org/2676383002
Cr-Commit-Position: refs/heads/master@{#450428}
Committed: https://chromium.googlesource.com/chromium/src/+/ec6cb24b6ad420b32f0836b8e3d4767378b90b93
Patch Set 1 : cros: ensure update check to complete at OOBE before allowing login #Patch Set 2 : cros: ensure update check to complete at OOBE before allowing login #
Total comments: 4
Patch Set 3 : cros: ensure update check to complete at OOBE before allowing login #
Messages
Total messages: 36 (24 generated)
The CQ bit was checked by benchan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by benchan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== cros: ensure update check to complete at OOBE before allowing login This CL updates the CrOS login flow to ensure the update check is complete at OOBE before allowing the first user to log in. Without a successful check for update, we can't be sure if there is a critical update. To play safe and avoid missing any critical update during OOBE, we modify the UI simply goes back to the network selection screen instead of proceeding to the login screen. For the non-OOBE flow, we don't want to block the users while failing to check for update, and thus preseve the existing UI behavior to proceed to the login screen. BUG=chromium:683424 TEST=Tested the following: 1. Under the OOBE scenario, interrupt the network connectivity when the UI is checking for update. Verify that the UI goes back to the network selection screen. 2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds to the login screen. ========== to ========== cros: ensure update check to complete at OOBE before allowing login This CL updates the CrOS login flow to ensure the update check is complete at OOBE before allowing the first user to log in. Without a successful check for update, we can't be sure if there is a critical update. To play safe and avoid missing any critical update during OOBE, we modify the UI simply goes back to the network selection screen instead of proceeding to the login screen. For the non-OOBE flow, we don't want to block the users while failing to check for update, and thus preseve the existing UI behavior to proceed to the login screen. BUG=chromium:683424 TEST=Tested the following: 1. Under the OOBE scenario, interrupt the network connectivity when the UI is checking for update. Verify that the UI goes back to the network selection screen. 2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds to the login screen. ==========
benchan@chromium.org changed reviewers: + achuith@chromium.org
Are you sure this doesn't break developer flow? Have you tried creating an image locally, flashing it onto a DUT and logging in? Doesn't the update check fail for this case?
On 2017/02/06 22:44:03, achuithb wrote: > Are you sure this doesn't break developer flow? > > Have you tried creating an image locally, flashing it onto a DUT and logging in? > Doesn't the update check fail for this case? I tried building a local image as you suggested. With a non-official build, the update screen could be interrupted/bypassed by pressing ESC key. With an official build (e.g. built with release trybot), the update check went through as long as there is network connectivity and proceeded to the login screen.
On 2017/02/10 16:49:18, Ben Chan wrote: > On 2017/02/06 22:44:03, achuithb wrote: > > Are you sure this doesn't break developer flow? > > > > Have you tried creating an image locally, flashing it onto a DUT and logging > in? > > Doesn't the update check fail for this case? > > I tried building a local image as you suggested. With a non-official build, the > update screen could be interrupted/bypassed by pressing ESC key. With an > official build (e.g. built with release trybot), the update check went through > as long as there is network connectivity and proceeded to the login screen. Also could you please check that local linux builds with chromeos=1 continue to work. lgtm
Patchset #2 (id:40001) has been deleted
The CQ bit was checked by benchan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/13 14:02:12, achuithb wrote: > On 2017/02/10 16:49:18, Ben Chan wrote: > > On 2017/02/06 22:44:03, achuithb wrote: > > > Are you sure this doesn't break developer flow? > > > > > > Have you tried creating an image locally, flashing it onto a DUT and logging > > in? > > > Doesn't the update check fail for this case? > > > > I tried building a local image as you suggested. With a non-official build, > the > > update screen could be interrupted/bypassed by pressing ESC key. With an > > official build (e.g. built with release trybot), the update check went through > > as long as there is network connectivity and proceeded to the login screen. > > Also could you please check that local linux builds with chromeos=1 continue to > work. > > lgtm Tested running a local linux build with target_os="chromeos".
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by benchan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/02/13 19:54:38, Ben Chan wrote: > On 2017/02/13 14:02:12, achuithb wrote: > > On 2017/02/10 16:49:18, Ben Chan wrote: > > > On 2017/02/06 22:44:03, achuithb wrote: > > > > Are you sure this doesn't break developer flow? > > > > > > > > Have you tried creating an image locally, flashing it onto a DUT and > logging > > > in? > > > > Doesn't the update check fail for this case? > > > > > > I tried building a local image as you suggested. With a non-official build, > > the > > > update screen could be interrupted/bypassed by pressing ESC key. With an > > > official build (e.g. built with release trybot), the update check went > through > > > as long as there is network connectivity and proceeded to the login screen. > > > > Also could you please check that local linux builds with chromeos=1 continue > to > > work. > > > > lgtm > > Tested running a local linux build with target_os="chromeos". Fixed HandsOffNetworkScreenTest.ContinueClickedOnlyOnce test failure. PTAL.
lgtm https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/login/wizard_controller.cc:735: bool is_hands_off_mode = nit const https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/login/wizard_controller.cc:746: if (is_out_of_box_ && !is_hands_off_mode) Is hands off mode behavior covered by browser tests?
https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/login/wizard_controller.cc:735: bool is_hands_off_mode = On 2017/02/14 09:05:25, achuithb wrote: > nit const Done. https://codereview.chromium.org/2676383002/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/login/wizard_controller.cc:746: if (is_out_of_box_ && !is_hands_off_mode) On 2017/02/14 09:05:25, achuithb wrote: > Is hands off mode behavior covered by browser tests? It's indirectly covered by those HandsOff*Test tests (which was initially broken by this change). I'll evaluate if additional tests should be added in a follow-up CL.
The CQ bit was checked by benchan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from achuith@chromium.org Link to the patchset: https://codereview.chromium.org/2676383002/#ps80001 (title: "cros: ensure update check to complete at OOBE before allowing login")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1487097080550520, "parent_rev": "509840116ed907fb1e466c7ca0a35eb76f0eb6d5", "commit_rev": "ec6cb24b6ad420b32f0836b8e3d4767378b90b93"}
Message was sent while issue was closed.
Description was changed from ========== cros: ensure update check to complete at OOBE before allowing login This CL updates the CrOS login flow to ensure the update check is complete at OOBE before allowing the first user to log in. Without a successful check for update, we can't be sure if there is a critical update. To play safe and avoid missing any critical update during OOBE, we modify the UI simply goes back to the network selection screen instead of proceeding to the login screen. For the non-OOBE flow, we don't want to block the users while failing to check for update, and thus preseve the existing UI behavior to proceed to the login screen. BUG=chromium:683424 TEST=Tested the following: 1. Under the OOBE scenario, interrupt the network connectivity when the UI is checking for update. Verify that the UI goes back to the network selection screen. 2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds to the login screen. ========== to ========== cros: ensure update check to complete at OOBE before allowing login This CL updates the CrOS login flow to ensure the update check is complete at OOBE before allowing the first user to log in. Without a successful check for update, we can't be sure if there is a critical update. To play safe and avoid missing any critical update during OOBE, we modify the UI simply goes back to the network selection screen instead of proceeding to the login screen. For the non-OOBE flow, we don't want to block the users while failing to check for update, and thus preseve the existing UI behavior to proceed to the login screen. BUG=chromium:683424 TEST=Tested the following: 1. Under the OOBE scenario, interrupt the network connectivity when the UI is checking for update. Verify that the UI goes back to the network selection screen. 2. Repeat (1) under the non-OOBE scenario. Verify that the UI proceeds to the login screen. Review-Url: https://codereview.chromium.org/2676383002 Cr-Commit-Position: refs/heads/master@{#450428} Committed: https://chromium.googlesource.com/chromium/src/+/ec6cb24b6ad420b32f0836b8e3d4... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/ec6cb24b6ad420b32f0836b8e3d4...
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:80001) has been created in https://codereview.chromium.org/2699633004/ by achuith@chromium.org. The reason for reverting is: Believe this is causing a regression in linux builds.
Message was sent while issue was closed.
On 2017/02/13 14:02:12, achuithb wrote: > On 2017/02/10 16:49:18, Ben Chan wrote: > > On 2017/02/06 22:44:03, achuithb wrote: > > > Are you sure this doesn't break developer flow? > > > > > > Have you tried creating an image locally, flashing it onto a DUT and logging > > in? > > > Doesn't the update check fail for this case? > > > > I tried building a local image as you suggested. With a non-official build, > the > > update screen could be interrupted/bypassed by pressing ESC key. With an > > official build (e.g. built with release trybot), the update check went through > > as long as there is network connectivity and proceeded to the login screen. > > Also could you please check that local linux builds with chromeos=1 continue to > work. Not sure how this was tested, but it's pretty clearly broken. Clicking on the 'Next' button on the network screen does nothing. This is a pretty serious blocker for chromeos developers, so I'm going to revert this. |