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

Issue 1534001: switch to autox.py and robustify login/logout code (Closed)

Created:
10 years, 9 months ago by rginda
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano, ericli, petkov+cc_chromium.org, kmixter1, Daniel Erat
Visibility:
Public.

Description

switch to autox.py and robustify login/logout code This CL switches from using the autox binary to using autox.py. This includes backwards incompatible changes to site_login.py, and I haven't had a chance to fix the affected callsites yet. I've also made the login/logout code a little more robust. Now it'll make sure that the login manager is running under a NEW pid, that X is running, and that at a window is visible before assuming we're ready to log in. All of the wait loops have been refactored into wait_for(...), which spits out logging.info() messages that could be parsed later to determine how long the operations are actually taking. Perhaps this could make it into a different, non-login specific library soonish. I'm out of the office for the next few days, but wanted to get this out there before the trunk totally passed it by. I'll return on Wednesday to finish the job.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reworked patchset #

Total comments: 17

Patch Set 3 : Changes per Dan's comments #

Patch Set 4 : oops, s/pgrep/egrep/ #

Total comments: 3

Patch Set 5 : remove client/deps/autox, fix spacing, and update WindowManagerFocusNewWindows #

Patch Set 6 : wait for second window to show up in login manager #

Patch Set 7 : merge with head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -265 lines) Patch
M client/bin/chromeos_constants.py View 1 2 chunks +6 lines, -1 line 0 comments Download
M client/bin/site_login.py View 1 2 3 4 5 5 chunks +101 lines, -37 lines 0 comments Download
M client/bin/site_ui_test.py View 1 2 3 1 chunk +148 lines, -15 lines 0 comments Download
M client/bin/site_utils.py View 1 chunk +16 lines, -4 lines 0 comments Download
M client/common_lib/site_ui.py View 2 chunks +11 lines, -1 line 0 comments Download
D client/deps/autox/README View 1 chunk +0 lines, -8 lines 0 comments Download
D client/deps/autox/autox.py View 1 chunk +0 lines, -17 lines 0 comments Download
D client/deps/autox/common.py View 1 chunk +0 lines, -12 lines 0 comments Download
D client/deps/autox/control View 1 chunk +0 lines, -5 lines 0 comments Download
M client/site_tests/desktopui_DoLogin/control View 1 chunk +2 lines, -2 lines 0 comments Download
M client/site_tests/desktopui_DoLogin/desktopui_DoLogin.py View 1 chunk +3 lines, -3 lines 0 comments Download
M client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py View 1 chunk +5 lines, -14 lines 0 comments Download
M client/site_tests/desktopui_ScreenSaverUnlock/desktopui_ScreenSaverUnlock.py View 1 chunk +18 lines, -19 lines 0 comments Download
M client/site_tests/desktopui_WindowManagerFocusNewWindows/desktopui_WindowManagerFocusNewWindows.py View 1 chunk +1 line, -6 lines 0 comments Download
M client/site_tests/desktopui_WindowManagerHotkeys/desktopui_WindowManagerHotkeys.py View 1 chunk +1 line, -6 lines 0 comments Download
M client/site_tests/login_ChromeProfileSanitary/login_ChromeProfileSanitary.py View 2 3 4 5 6 chunks +9 lines, -20 lines 0 comments Download
M client/site_tests/login_CryptohomeUnmounted/login_CryptohomeUnmounted.py View 2 1 chunk +4 lines, -18 lines 0 comments Download
M client/site_tests/login_LogoutProcessCleanup/login_LogoutProcessCleanup.py View 4 chunks +4 lines, -19 lines 0 comments Download
M client/site_tests/platform_ProcessPrivileges/platform_ProcessPrivileges.py View 2 chunks +47 lines, -58 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
rginda
10 years, 9 months ago (2010-03-28 02:30:36 UTC) #1
Chris Masone
LGTM, with changes below http://codereview.chromium.org/1534001/diff/1/3 File client/bin/site_login.py (right): http://codereview.chromium.org/1534001/diff/1/3#newcode35 client/bin/site_login.py:35: Returns True when the session ...
10 years, 9 months ago (2010-03-28 06:50:09 UTC) #2
sosa
Before you commit this, re-run the Build Verify suite. By changing SiteUI you'll already be ...
10 years, 9 months ago (2010-03-29 18:02:09 UTC) #3
Daniel Erat
On 2010/03/29 18:02:09, sosa wrote: > Before you commit this, re-run the Build Verify suite. ...
10 years, 9 months ago (2010-03-29 18:33:50 UTC) #4
Daniel Erat
On 2010/03/29 18:33:50, Daniel Erat wrote: > On 2010/03/29 18:02:09, sosa wrote: > > Before ...
10 years, 8 months ago (2010-03-30 00:21:48 UTC) #5
rginda
Here's a new patch set post 1565001. I've run the tests that were modified as ...
10 years, 8 months ago (2010-04-02 18:01:38 UTC) #6
Daniel Erat
This is a nice cleanup. Thanks for doing it! Can client/deps/autox be deleted too now? ...
10 years, 8 months ago (2010-04-03 00:54:38 UTC) #7
rginda
http://codereview.chromium.org/1534001/diff/7001/8002 File client/bin/site_login.py (right): http://codereview.chromium.org/1534001/diff/7001/8002#newcode32 client/bin/site_login.py:32: if ary: On 2010/04/03 00:54:39, Daniel Erat wrote: > ...
10 years, 8 months ago (2010-04-05 16:44:28 UTC) #8
stevenjb
The following tests passed with the changes in Patch 4 on my netbook: ./run_remote_tests.sh --remote=172.22.70.34 ...
10 years, 8 months ago (2010-04-05 21:16:53 UTC) #9
Daniel Erat
LGTM if everything passes now, but please also see my question from the last round ...
10 years, 8 months ago (2010-04-05 22:15:45 UTC) #10
rginda
On 2010/04/05 22:15:45, Daniel Erat wrote: > LGTM if everything passes now, but please also ...
10 years, 8 months ago (2010-04-05 23:16:42 UTC) #11
rginda
I've finally got a working build again and was able to rerun the tests. ChromeProfieSanitary ...
10 years, 8 months ago (2010-04-07 20:56:00 UTC) #12
Daniel Erat
Sounds great. Thanks for pushing this through! On Wed, Apr 7, 2010 at 1:56 PM, ...
10 years, 8 months ago (2010-04-07 21:29:04 UTC) #13
rginda
10 years, 8 months ago (2010-04-07 21:56:45 UTC) #14
No problem, thanks for the reviews.

buildverify looked good, I've landed the CL.

On 2010/04/07 21:29:04, Daniel Erat wrote:
> Sounds great.  Thanks for pushing this through!
> 
> On Wed, Apr 7, 2010 at 1:56 PM,  <mailto:rginda@chromium.org> wrote:
> > I've finally got a working build again and was able to rerun the tests.
> > ChromeProfieSanitary still fails with a "Never received callback from
> > browser",
> > but I think it's a problem with the way the testcase works and not with the
> > autotest code.
> >
> > "LogoutProcessCleanup" also fails because it finds two pids that are owned
> > by
> > chronos but not parented by the session manager. &nbsp;This also appears to
be a
> > problem with the testcase, or an actual bug in the image, but not an issue
> > with
> > autox.
> >
> > My previous patchset had a small issue in ChromeProfileSanitary with
> > leftover
> > reference to a 'script' variable.
> >
> > I also had to add an additional check to __session_manager_restarted, since
> > keystrokes were being sent before the session manager was really ready to
> > hear
> > them.
> >
> > I'm running the full suite_BuildVerify now, and assuming I don't find any
> > more
> > regressions I'll push the CL tonight.
> >
> > http://codereview.chromium.org/1534001/show
> >
>

Powered by Google App Engine
This is Rietveld 408576698