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

Issue 2870203003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)

Created:
3 years, 7 months ago by kumarniranjan
Modified:
3 years, 7 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Hands-Off Zero-Touch Enrollment compatibile with tests Specifically, the automatic nature of Hands-Off Enrollment leads to the DUT performing an update check after reboot which interferes with autoupdate_EndToEndTest. This CL fixes that issue. It does so by instructing the UpdateScreen to skip checking for updates if both of the following conditions hold: 1. The previous update check initiated by the UpdateScreen did not result in an update. 2. This previous update check occurred during the last hour. BUG=chromium:710716 TEST=unit test Review-Url: https://codereview.chromium.org/2870203003 Cr-Commit-Position: refs/heads/master@{#473065} Committed: https://chromium.googlesource.com/chromium/src/+/0e9353d37e60a871304084a1b34222062c4803e9

Patch Set 1 #

Total comments: 14

Patch Set 2 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Patch Set 3 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Total comments: 12

Patch Set 4 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Patch Set 5 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Total comments: 24

Patch Set 6 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Total comments: 6

Patch Set 7 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Total comments: 2

Patch Set 8 : done #

Patch Set 9 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Patch Set 10 : Make Hands-Off Zero-Touch Enrollment compatibile with tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+488 lines, -52 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc View 1 2 3 4 2 chunks +1 line, -25 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enrollment_screen.cc View 1 2 4 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/screens/eula_screen.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/network_screen.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/screen_exit_code.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/update_screen.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/update_screen.cc View 1 2 3 4 5 6 7 8 3 chunks +44 lines, -5 lines 0 comments Download
A chrome/browser/chromeos/login/screens/update_screen_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +302 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/startup_utils.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/startup_utils.cc View 1 2 3 4 5 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A chromeos/network/portal_detector/mock_network_portal_detector.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A chromeos/network/portal_detector/mock_network_portal_detector.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M chromeos/network/portal_detector/network_portal_detector.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
xiyuan
early comments https://codereview.chromium.org/2870203003/diff/1/chrome/browser/chromeos/login/screens/base_screen.cc File chrome/browser/chromeos/login/screens/base_screen.cc (right): https://codereview.chromium.org/2870203003/diff/1/chrome/browser/chromeos/login/screens/base_screen.cc#newcode129 chrome/browser/chromeos/login/screens/base_screen.cc:129: bool BaseScreen::UsingHandsOffEnrollment() { This does not feel ...
3 years, 7 months ago (2017-05-09 22:03:53 UTC) #2
kumarniranjan
https://codereview.chromium.org/2870203003/diff/1/chrome/browser/chromeos/login/screens/base_screen.cc File chrome/browser/chromeos/login/screens/base_screen.cc (right): https://codereview.chromium.org/2870203003/diff/1/chrome/browser/chromeos/login/screens/base_screen.cc#newcode129 chrome/browser/chromeos/login/screens/base_screen.cc:129: bool BaseScreen::UsingHandsOffEnrollment() { On 2017/05/09 22:03:52, xiyuan wrote: > ...
3 years, 7 months ago (2017-05-09 22:49:47 UTC) #3
xiyuan
Mostly nits. https://codereview.chromium.org/2870203003/diff/40001/chrome/browser/chromeos/login/screens/update_screen.cc File chrome/browser/chromeos/login/screens/update_screen.cc (right): https://codereview.chromium.org/2870203003/diff/40001/chrome/browser/chromeos/login/screens/update_screen.cc#newcode205 chrome/browser/chromeos/login/screens/update_screen.cc:205: // a noncritical update available. No need ...
3 years, 7 months ago (2017-05-10 16:29:20 UTC) #4
kumarniranjan
https://codereview.chromium.org/2870203003/diff/40001/chrome/browser/chromeos/login/screens/update_screen.cc File chrome/browser/chromeos/login/screens/update_screen.cc (right): https://codereview.chromium.org/2870203003/diff/40001/chrome/browser/chromeos/login/screens/update_screen.cc#newcode205 chrome/browser/chromeos/login/screens/update_screen.cc:205: // a noncritical update available. No need to update ...
3 years, 7 months ago (2017-05-13 04:42:36 UTC) #6
xiyuan
https://codereview.chromium.org/2870203003/diff/80001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): https://codereview.chromium.org/2870203003/diff/80001/chrome/browser/chromeos/BUILD.gn#newcode1536 chrome/browser/chromeos/BUILD.gn:1536: "login/screens/mock_update_screen.h", We should remove mock_error_screen.* and mock_update_screen.* from chrome/test/BUILD.gn ...
3 years, 7 months ago (2017-05-15 17:24:23 UTC) #7
kumarniranjan
https://codereview.chromium.org/2870203003/diff/80001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): https://codereview.chromium.org/2870203003/diff/80001/chrome/browser/chromeos/BUILD.gn#newcode1536 chrome/browser/chromeos/BUILD.gn:1536: "login/screens/mock_update_screen.h", On 2017/05/15 17:24:22, xiyuan wrote: > We should ...
3 years, 7 months ago (2017-05-15 22:08:22 UTC) #8
xiyuan
Please upload a new PS before asking for review again.
3 years, 7 months ago (2017-05-15 22:12:54 UTC) #9
kumarniranjan
On 2017/05/15 22:12:54, xiyuan wrote: > Please upload a new PS before asking for review ...
3 years, 7 months ago (2017-05-15 22:15:04 UTC) #10
xiyuan
Have you get a chance to try this CL against the auto test? https://codereview.chromium.org/2870203003/diff/80001/chromeos/network/portal_detector/network_portal_detector.h File ...
3 years, 7 months ago (2017-05-15 22:30:20 UTC) #11
kumarniranjan
On 2017/05/15 22:30:20, xiyuan wrote: > Have you get a chance to try this CL ...
3 years, 7 months ago (2017-05-15 23:21:37 UTC) #12
kumarniranjan
https://codereview.chromium.org/2870203003/diff/80001/chromeos/network/portal_detector/network_portal_detector.h File chromeos/network/portal_detector/network_portal_detector.h (right): https://codereview.chromium.org/2870203003/diff/80001/chromeos/network/portal_detector/network_portal_detector.h#newcode148 chromeos/network/portal_detector/network_portal_detector.h:148: CHROMEOS_EXPORT void EndTest(); On 2017/05/15 22:30:20, xiyuan wrote: > ...
3 years, 7 months ago (2017-05-15 23:21:53 UTC) #13
xiyuan
lgtm You probably need additional owner approval for the CL. Try "git cl owners" to ...
3 years, 7 months ago (2017-05-16 04:37:33 UTC) #14
Alexander Alekseev
lgtm https://codereview.chromium.org/2870203003/diff/120001/chrome/browser/chromeos/login/screens/screen_exit_code.h File chrome/browser/chromeos/login/screens/screen_exit_code.h (right): https://codereview.chromium.org/2870203003/diff/120001/chrome/browser/chromeos/login/screens/screen_exit_code.h#newcode31 chrome/browser/chromeos/login/screens/screen_exit_code.h:31: // to reboot. It basically says "no update ...
3 years, 7 months ago (2017-05-17 22:30:41 UTC) #15
kumarniranjan
https://codereview.chromium.org/2870203003/diff/120001/chrome/browser/chromeos/login/screens/screen_exit_code.h File chrome/browser/chromeos/login/screens/screen_exit_code.h (right): https://codereview.chromium.org/2870203003/diff/120001/chrome/browser/chromeos/login/screens/screen_exit_code.h#newcode31 chrome/browser/chromeos/login/screens/screen_exit_code.h:31: // to reboot. On 2017/05/17 22:30:40, Alexander Alekseev wrote: ...
3 years, 7 months ago (2017-05-17 22:33:21 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/2870203003/140001
3 years, 7 months ago (2017-05-17 22:38:04 UTC) #19
commit-bot: I haz the power
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_chromeos_rel_ng/builds/428981)
3 years, 7 months ago (2017-05-18 00:45:43 UTC) #21
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/2870203003/160001
3 years, 7 months ago (2017-05-18 21:00:46 UTC) #24
commit-bot: I haz the power
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_chromeos_rel_ng/builds/429936)
3 years, 7 months ago (2017-05-18 22:45:38 UTC) #26
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/2870203003/180001
3 years, 7 months ago (2017-05-18 23:29:17 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/0e9353d37e60a871304084a1b34222062c4803e9
3 years, 7 months ago (2017-05-19 03:44:54 UTC) #32
Marc Treib
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2889383002/ by treib@chromium.org. ...
3 years, 7 months ago (2017-05-19 09:27:10 UTC) #33
findit-for-me
3 years, 7 months ago (2017-05-19 12:47:27 UTC) #34
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 473065 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698