Closed
Bug 946649
Opened 11 years ago
Closed 11 years ago
Schedule gaia-ui-tests on cedar against emulator builds
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: davehunt, Assigned: jgriffin)
References
Details
Attachments
(5 files, 3 obsolete files)
1.83 KB,
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
4.71 KB,
patch
|
Details | Diff | Splinter Review | |
696 bytes,
patch
|
mozilla
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
722 bytes,
patch
|
ahal
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
646 bytes,
patch
|
ahal
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
These are not currently expected to pass, but we should get them enabled to see the state of them. Bug 946644 covers the work needed to get the tests into shape before we can consider turning them on for other branches.
Note that for emulator we will need the --sdcard command line argument with a sensible value. I've been using 1G locally, but I suspect 512M would also be enough.
Reporter | ||
Comment 1•11 years ago
|
||
Jonathan, could you help with this? I'm happy to write the patch to enable this with some guidance.
Flags: needinfo?(jgriffin)
Assignee | ||
Comment 2•11 years ago
|
||
I'll handle the buildbot patch for this. I know dburns was trying to get these to run locally and was having problems; David, did you ever figure out what was wrong? According to davehunt, this was working a few weeks ago, but it's possible something regressed.
Flags: needinfo?(jgriffin) → needinfo?(dburns)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jgriffin
Comment 3•11 years ago
|
||
When I run the tests I get
(gaiatest)☁ gaia-ui-tests [34688bb] ⚡ gaiatest --emulator=arm --homedir=~/emulator --restart --sdcard=1GB gaiatest/gaiatest/tests/functional/dialer/ --testvars gaiatest/testvars.json
starting httpd
running webserver on http://172.16.17.240:35501/
waiting for system-message-listener-ready...
done
waiting for homescreen...
...done
SUMMARY
-------
passed: 0
failed: 0
todo: 0
Traceback (most recent call last):
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/runner/base.py", line 731, in run_tests
self.marionette.check_for_crash()
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/marionette.py", line 658, in check_for_crash
if self.emulator.check_for_minidumps():
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/emulator.py", line 168, in check_for_minidumps
return self.b2g.check_for_crashes()
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/b2ginstance.py", line 57, in check_for_crashes
remote_dump_dirs = [posixpath.join(p, 'minidumps') for p in self.remote_profiles]
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/b2ginstance.py", line 34, in remote_profiles
self.check_remote_profiles()
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/b2ginstance.py", line 38, in check_remote_profiles
if not self.dm.fileExists(remote_profiles_ini):
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/marionette_client-0.7.2-py2.7.egg/marionette/b2ginstance.py", line 28, in dm
self._dm = DeviceManagerADB(adbPath=self.adb_path)
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/mozdevice-0.31-py2.7.egg/mozdevice/devicemanagerADB.py", line 66, in __init__
self._verifyDevice()
File "/home/dburns/.virtualenvs/gaiatest/local/lib/python2.7/site-packages/mozdevice-0.31-py2.7.egg/mozdevice/devicemanagerADB.py", line 653, in _verifyDevice
raise DMError("unable to connect to device")
DMError: unable to connect to device
The emulator starts up and then this is what happens.
I have created a new virtualenv and run python setup.py develop from
(gaiatest)☁ gaia-ui-tests [34688bb] ⚡ pwd
/home/dburns/emulator/gaia/tests/python/gaia-ui-tests
Flags: needinfo?(dburns)
Assignee | ||
Comment 4•11 years ago
|
||
Ah, looks like we've regressed on something. Thanks, David, I'll take a look at this next week.
Assignee | ||
Comment 5•11 years ago
|
||
This will do the actual scheduling, but first we'll need a new mozharness config file, and potentially some changes to the mozharness script as well.
Assignee | ||
Comment 6•11 years ago
|
||
This will go together with a buildbot patch that causes us to run the script with --cfg gaia_ui_test_prod_config.py --cfg gaia_ui_test_emu_config.py.
Attachment #8360104 -
Flags: review?(ahalberstadt)
Assignee | ||
Comment 7•11 years ago
|
||
I'll test the mozharness patch on ash first, then land it, then land the buildbot patch, if all goes well.
Attachment #8360105 -
Flags: review?(aki)
Assignee | ||
Updated•11 years ago
|
Attachment #8358570 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Grumble, the last patch was empty...
Attachment #8360107 -
Flags: review?(aki)
Assignee | ||
Updated•11 years ago
|
Attachment #8360105 -
Attachment is obsolete: true
Attachment #8360105 -
Flags: review?(aki)
Updated•11 years ago
|
Attachment #8360107 -
Flags: review?(aki) → review+
Comment 9•11 years ago
|
||
Comment on attachment 8360104 [details] [diff] [review]
Add emulator support to gaiatest mozharness script,
Review of attachment 8360104 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, lgtm.
::: configs/marionette/gaia_ui_test_emu_config.py
@@ +1,2 @@
> +# This is a config file for gaiatest on emulators; it's meant to be used
> +# with the primary gaia-ui-test config file.
I think we could do "from gaia_ui_test import config" and then config.update to avoid needing to pass both config files in on the command line.
Attachment #8360104 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 10•11 years ago
|
||
> I think we could do "from gaia_ui_test import config" and then config.update to avoid needing to pass
> both config files in on the command line.
We can't actually, since the directory that file is in is not in sys.path...there are probably ways around that limitation (like hacking sys.path with the directory of any cfg files passed to mozharness), but I'm not sure it's worth doing.
I'm going to run this on cypress to make sure I didn't bust anything.
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #11)
> https://hg.mozilla.org/build/mozharness/rev/332cc105d866
This looks good on cedar/cypress.
Comment 13•11 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #12)
> (In reply to Jonathan Griffin (:jgriffin) from comment #11)
> > https://hg.mozilla.org/build/mozharness/rev/332cc105d866
>
> This looks good on cedar/cypress.
merged to production
Assignee | ||
Comment 14•11 years ago
|
||
(In reply to Chris AtLee [:catlee] from comment #13)
> (In reply to Jonathan Griffin (:jgriffin) from comment #12)
> > (In reply to Jonathan Griffin (:jgriffin) from comment #11)
> > > https://hg.mozilla.org/build/mozharness/rev/332cc105d866
> >
> > This looks good on cedar/cypress.
>
> merged to production
backed out; it caused Gu to fail with a permissions error:
https://tbpl.mozilla.org/php/getParsedLog.php?id=33115025&tree=B2g-Inbound&full=1#error0
Assignee | ||
Comment 15•11 years ago
|
||
This patch caused us to pass two --binary parameters to Gu, one of them incorrect! I'll test a fix out on ash later this afternoon.
Assignee | ||
Comment 16•11 years ago
|
||
I made a dumb mistake; this fixes it. I'm running it on ash to confirm.
Assignee | ||
Updated•11 years ago
|
Attachment #8360104 -
Attachment is obsolete: true
Assignee | ||
Comment 17•11 years ago
|
||
Ash looks fine; landed at https://hg.mozilla.org/build/mozharness/rev/d416937ec90a
Comment 18•11 years ago
|
||
mozharness merged to production
Assignee | ||
Comment 19•11 years ago
|
||
buildbot-config patch: https://hg.mozilla.org/build/buildbot-configs/rev/e5abee747f33
Assignee | ||
Comment 20•11 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #19)
> buildbot-config patch:
> https://hg.mozilla.org/build/buildbot-configs/rev/e5abee747f33
backed out for a typo; re-landed as https://hg.mozilla.org/build/buildbot-configs/rev/7c742fd377c3
Comment 21•11 years ago
|
||
in production.
Assignee | ||
Comment 22•11 years ago
|
||
These are scheduled but failing; looks like we need to define tooltool_servers in the config file now.
Assignee | ||
Comment 23•11 years ago
|
||
Attachment #8366139 -
Flags: review?(aki)
Updated•11 years ago
|
Attachment #8366139 -
Flags: review?(aki) → review+
Assignee | ||
Comment 24•11 years ago
|
||
Comment on attachment 8366139 [details] [diff] [review]
Add tooltool_servers to gaia-ui emu config,
https://hg.mozilla.org/build/mozharness/rev/f27754240526
Attachment #8366139 -
Flags: checked-in+
Assignee | ||
Comment 25•11 years ago
|
||
That didn't quite do it. It looks like the issue is that emulator scripts default to the old method of updating gecko/gaia after launching the emulator. We don't run tests this way any longer; the other scripts are invoked with a --no-update argument by buildbot to avoid this behavior.
Ahal, is there any reason to keep this logic around any longer? I'm tempted to get rid of it altogether, but in the meantime, I'll add "no_update" to the mozharness config here.
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 26•11 years ago
|
||
We don't need to define tooltool_servers after all, since that's only needed for old-style emulator installs, which we don't do any longer.
Attachment #8366246 -
Flags: review?(ahalberstadt)
Comment 27•11 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #25)
> That didn't quite do it. It looks like the issue is that emulator scripts
> default to the old method of updating gecko/gaia after launching the
> emulator. We don't run tests this way any longer; the other scripts are
> invoked with a --no-update argument by buildbot to avoid this behavior.
>
> Ahal, is there any reason to keep this logic around any longer? I'm tempted
> to get rid of it altogether, but in the meantime, I'll add "no_update" to
> the mozharness config here.
They do? That's news to me..
Flags: needinfo?(ahalberstadt)
Updated•11 years ago
|
Attachment #8366246 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 28•11 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #27)
> (In reply to Jonathan Griffin (:jgriffin) from comment #25)
> > That didn't quite do it. It looks like the issue is that emulator scripts
> > default to the old method of updating gecko/gaia after launching the
> > emulator. We don't run tests this way any longer; the other scripts are
> > invoked with a --no-update argument by buildbot to avoid this behavior.
> >
> > Ahal, is there any reason to keep this logic around any longer? I'm tempted
> > to get rid of it altogether, but in the meantime, I'll add "no_update" to
> > the mozharness config here.
>
> They do? That's news to me..
Indeed, see e.g., http://hg.mozilla.org/build/buildbot-configs/file/02874ef2b882/mozilla-tests/b2g_config.py#l915
Assignee | ||
Comment 29•11 years ago
|
||
Comment on attachment 8366246 [details] [diff] [review]
Invoke gaiatest on emulators with no_update,
https://hg.mozilla.org/build/mozharness/rev/d04ed03a6678
Attachment #8366246 -
Flags: checked-in+
Comment 30•11 years ago
|
||
mozharness patch: 'Add tooltool_servers to gaia-ui emu config', was merged into production as of ~3pm PT! :)
Assignee | ||
Comment 31•11 years ago
|
||
:sigh:, this should have been update_files = False, not no_update = True
Attachment #8367666 -
Flags: review?(ahalberstadt)
Comment 32•11 years ago
|
||
Comment on attachment 8367666 [details] [diff] [review]
no_update -> update_files,
Review of attachment 8367666 [details] [diff] [review]:
-----------------------------------------------------------------
I'll take your word for it :p
Attachment #8367666 -
Flags: review?(ahalberstadt) → review+
Assignee | ||
Comment 33•11 years ago
|
||
Comment on attachment 8367666 [details] [diff] [review]
no_update -> update_files,
https://hg.mozilla.org/build/mozharness/rev/19a6a43e0231
Attachment #8367666 -
Flags: checked-in+
Comment 34•11 years ago
|
||
In production.
Assignee | ||
Comment 35•11 years ago
|
||
The tests are running, but failing...but that's for another bug!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 36•11 years ago
|
||
Jonathan, is there another bug already ?
Zac is saying we should probably use --timeout 60000 instead of 10000 for emulator builds.
Reporter | ||
Comment 37•11 years ago
|
||
See the blocked bugs: bug 916368 and bug 946644
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•