Closed
Bug 920569
Opened 11 years ago
Closed 11 years ago
Add support for webapprt-test-chrome test jobs & enable them per push on Cedar
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: jgriffin)
References
Details
(Keywords: ateam-unittests-task, Whiteboard: [leave open])
Attachments
(5 files, 1 obsolete file)
2.58 KB,
patch
|
jmaher
:
review+
armenzg
:
checked-in+
|
Details | Diff | Splinter Review |
6.11 KB,
patch
|
mozilla
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
8.97 KB,
patch
|
jlund
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
3.67 KB,
patch
|
jlund
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
748 bytes,
patch
|
armenzg
:
review+
jgriffin
:
checked-in+
|
Details | Diff | Splinter Review |
Broken out from bug 899707.
The Firefox Webapp runtime team would like to start running the webapprt test suite per push in automation. Initially these should just be scheduled on Cedar (to green them up), but eventually they will need to be enabled on all trunk trees.
Platforms: Windows, Linux, OS X
Builds types: Opt + debug
The test suites are currently run using:
|mach webapprt-test-chrome| and |mach webapprt-test-content|
Reporter | ||
Comment 1•11 years ago
|
||
Marco, should both the chrome and content suites be run inside the same job run (ie similar to how mochitest-other currently runs several sub-suites) or as completely separate jobs/symbols on TBPL?
Flags: needinfo?(mcastelluccio)
Comment 2•11 years ago
|
||
I think we should start with webapprt-test-chrome as webapprt-test-content will likely change. When we'll want to enable content tests, I think they will be separate.
Flags: needinfo?(mcastelluccio)
Comment 3•11 years ago
|
||
Do these run as part of the build, or as a separate test job? If the latter, then we can't use mach and will need to know the underlying commands that mach is executing. We'll also have to make sure all the tests are packaged up in the tests archive.
Comment 4•11 years ago
|
||
(In reply to Chris AtLee [:catlee] from comment #3)
> Do these run as part of the build, or as a separate test job? If the latter,
> then we can't use mach and will need to know the underlying commands that
> mach is executing. We'll also have to make sure all the tests are packaged
> up in the tests archive.
Yes, they run as part of the build.
The webapprt chrome tests are packaged in obj-*/_tests/testing/mochitest/webapprtChrome.
Updated•11 years ago
|
Summary: Add support for webapprt test jobs & enable them per push on Cedar → Add support for webapprt-test-chrome test jobs & enable them per push on Cedar
Catlee, this doesn't actually have to be run by mach on the builders. You can run these using the standard packaged tests using slight tweaks to the existing mochitest command lines. We need to ensure that the webapprt-stub application is bundled with our builds (which I believe it should be, since it's in the dist/bin directory of our builds. Here are the command lines required (you'd still need to supply xre-path, certificate-path, and utility-path but they are the standard values that other mochitests use so I didn't include them here.
webapprt-content tests: (important ones here are --webapprt-content, and --app)
python runtests.py --webapprt-content --app=../../../dist/bin/webapprt-stub --autorun --close-when-done --console-level=INFO
Currently on my m-c build this runs 6 tests all of which pass.
webapprt-chrome tests: (important ones here are --webapprt-chrome, --app, --browser-arg and --testing-modules-dir)
python runtests.py --webapprt-chrome --app=../../../dist/bin/webapprt-stub --autorun --close-when-done --console-level=INFO --browser-arg=-test-mode --extra-profile-file=/home/ctalbert/projects/m-c/obj-dbg-linux/dist/plugins --testing-modules-dir=/home/ctalbert/projects/m-c/obj-dbg-linux/_tests/modules/
Currently on my m-c build: this runs 220 tests which pass and 1 which fails
So, we should be able to tweak the existing mozharness scripts for this support and we don't need to run them on builders.
Comment 6•11 years ago
|
||
(In reply to Clint Talbert ( :ctalbert ) from comment #5)
> webapprt-content tests: (important ones here are --webapprt-content, and
> --app)
Note that this bug is just about the webapprt-chrome tests, which is the first test suite that we'd like to start running per-commit.
> webapprt-chrome tests: (important ones here are --webapprt-chrome, --app,
> --browser-arg and --testing-modules-dir)
...
> Currently on my m-c build: this runs 220 tests which pass and 1 which fails
I filed the failure as bug 976300.
Comment 8•11 years ago
|
||
Per comment 7, what's the next step? Can we help in some way to make this happen?
Flags: needinfo?(emorley)
Flags: needinfo?(ctalbert)
Reporter | ||
Comment 9•11 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #8)
> Per comment 7, what's the next step? Can we help in some way to make this
> happen?
The next step will need to come from releng (I'm A-Team).
Flags: needinfo?(emorley)
Comment 10•11 years ago
|
||
We could really use some help writing the patches. Does ateam have anybody who can help?
Flags: needinfo?(catlee) → needinfo?(jgriffin)
Assignee | ||
Comment 11•11 years ago
|
||
We're going to need three patches: one to in-tree configs, one to mozharness, and one to buildbot-configs. I'll start the ball rolling, but won't be able to finish before I PTO.
Flags: needinfo?(jgriffin)
Whiteboard: [leave open]
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(ctalbert)
Assignee | ||
Comment 12•11 years ago
|
||
This adds a webapprt section to the in-tree configs, which includes all of the common options for chrome/content webapprt tests. The exceptional options will be specified in buildbot-configs.
Attachment #8412763 -
Flags: review?(jmaher)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jgriffin
Comment 13•11 years ago
|
||
Comment on attachment 8412763 [details] [diff] [review]
Add webapprt to in-tree configs,
Review of attachment 8412763 [details] [diff] [review]:
-----------------------------------------------------------------
the fun begins
Attachment #8412763 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 14•11 years ago
|
||
Assignee | ||
Comment 15•11 years ago
|
||
I'm going to land this on ash to make sure it's generally harmless.
Attachment #8412801 -
Flags: review?(armenzg)
Assignee | ||
Comment 16•11 years ago
|
||
pushed to ash-mozharness: http://hg.mozilla.org/users/asasaki_mozilla.com/ash-mozharness/rev/ecc677987e7f
"try" run on ash: https://tbpl.mozilla.org/?tree=Ash&rev=779568f0fd70
Assignee | ||
Comment 17•11 years ago
|
||
Schedule the webapprt-chrome tests on all desktop platforms on cedar. Shouldn't land until after the mozharness patch does.
Attachment #8412857 -
Flags: review?(aki)
Comment 18•11 years ago
|
||
Comment on attachment 8412857 [details] [diff] [review]
Schedule webapprt-chrome on cedar,
lgtm, you're a pro at this!
Attachment #8412857 -
Flags: review?(aki) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: ateam-unittests-task
Comment 19•11 years ago
|
||
Comment on attachment 8412801 [details] [diff] [review]
Mozharness support for webapprt tests,
Review of attachment 8412801 [details] [diff] [review]:
-----------------------------------------------------------------
The patch looks good to me, however, I would like to get jlund's blessings since it is a non-standard new-{mochitest,reftest,known_category} type of patch.
Attachment #8412801 -
Flags: review?(armenzg) → review?(jlund)
Assignee | ||
Comment 20•11 years ago
|
||
New try run on ash: https://tbpl.mozilla.org/?tree=Ash&rev=31322f05bd0b (looks good so far)
Assignee | ||
Comment 21•11 years ago
|
||
ash looks good; I think this can be landed on mozharness after r+
Comment 22•11 years ago
|
||
Comment on attachment 8412801 [details] [diff] [review]
Mozharness support for webapprt tests,
lgtm! awesome to see more suites being added. :)
I noticed that by supplying --webapprt-content, --browser-arg will be extended with '-test-mode' directly inside mochitest's runtests.py: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#1250
is there a reason why we explicitly pass --browser-arg=-test-mode for webapprt-chrome? Doesn't really matter j/w.
also, we can't land this patch, even on default, until https://hg.mozilla.org/integration/mozilla-inbound/rev/d4684d3c0340 merges with m-c (as of now it hasn't) otherwise everything will burn like it did in ash: https://tbpl.mozilla.org/?tree=Ash&rev=779568f0fd70
which makes me wonder if we have implemented self.tree_config correctly. As in, even if we are trying to run a mochitest or reftest suite, by just having 'self._run_category_suites('webapprt')' in desktop_unittest.py, we will fail due to http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.py#251
maybe the answer is to not bother looking up abs_base_cmd unless we are actually running that suite: eg: http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.py#381 after http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.py#387
IIUC we will need a TBPL patch for the new suite.
Attachment #8412801 -
Flags: review?(jlund) → review+
Comment 23•11 years ago
|
||
Comment 24•11 years ago
|
||
Comment on attachment 8412763 [details] [diff] [review]
Add webapprt to in-tree configs,
https://hg.mozilla.org/integration/mozilla-inbound/rev/d4684d3c0340
Attachment #8412763 -
Flags: checked-in+
Updated•11 years ago
|
Assignee: jgriffin → armenzg
Assignee | ||
Comment 25•11 years ago
|
||
(In reply to Jordan Lund (:jlund) from comment #22)
> Comment on attachment 8412801 [details] [diff] [review]
> which makes me wonder if we have implemented self.tree_config correctly. As
> in, even if we are trying to run a mochitest or reftest suite, by just
> having 'self._run_category_suites('webapprt')' in desktop_unittest.py, we
> will fail due to
> http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.
> py#251
>
> maybe the answer is to not bother looking up abs_base_cmd unless we are
> actually running that suite: eg:
> http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.
> py#381 after
> http://mxr.mozilla.org/build/source/mozharness/scripts/desktop_unittest.
> py#387
>
> IIUC we will need a TBPL patch for the new suite.
Yes, this was very surprising when this failed on ash, even though we weren't running the tests yet there. I think we should make the change you suggest. We'll need to do this before running this on trunk branches, so we don't have to check in the in-tree configs for this in all upstream branches.
Comment 26•11 years ago
|
||
Return this bug to jgriffin to follow up on comment 25.
Let me know if you would prefer me to take care of it next week.
Assignee: armenzg → jgriffin
Assignee | ||
Comment 27•11 years ago
|
||
This includes the change suggested in bug 920569 comment #25
Attachment #8422762 -
Flags: review?(jlund)
Assignee | ||
Updated•11 years ago
|
Attachment #8412801 -
Attachment is obsolete: true
Comment 28•11 years ago
|
||
Comment on attachment 8422762 [details] [diff] [review]
Mozharness support for webapprt tests,
lgtm! :)
Attachment #8422762 -
Flags: review?(jlund) → review+
Assignee | ||
Comment 29•11 years ago
|
||
Comment on attachment 8422762 [details] [diff] [review]
Mozharness support for webapprt tests,
https://hg.mozilla.org/build/mozharness/rev/5f1962b1e8a4
Attachment #8422762 -
Flags: checked-in+
Assignee | ||
Comment 30•11 years ago
|
||
Comment on attachment 8422762 [details] [diff] [review]
Mozharness support for webapprt tests,
in production
Assignee | ||
Comment 31•11 years ago
|
||
Comment on attachment 8412857 [details] [diff] [review]
Schedule webapprt-chrome on cedar,
https://hg.mozilla.org/build/buildbot-configs/rev/0ebb75bfda13
Attachment #8412857 -
Flags: checked-in+
Comment 32•11 years ago
|
||
Something here went live today
Comment 33•11 years ago
|
||
And promptly started failing on some machines with:
========= Started '/tools/buildbot/bin/python scripts/scripts/desktop_unittest.py ...' failed (results: 2, elapsed: 0 secs) (at 2014-05-23 07:23:24.672020) =========
/tools/buildbot/bin/python scripts/scripts/desktop_unittest.py --webapprt-suite chrome --blob-upload-branch cedar --download-symbols ondemand
…
Required config file not set! (use --config-file option)
program finished with exit code 255
elapsedTime=0.288343
========= Finished '/tools/buildbot/bin/python scripts/scripts/desktop_unittest.py ...' failed (results: 2, elapsed: 0 secs) (at 2014-05-23 07:23:24.980298) =========
And other machines with:
07:44:11 WARNING - TEST-UNEXPECTED-FAIL | (browser-test.js) | Found an unexpected webapprt:mochitest
…
07:44:57 WARNING - TEST-UNEXPECTED-FAIL | chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/browser_alarm.js | Test timed out
07:44:57 WARNING - TEST-UNEXPECTED-FAIL | chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/browser_alarm.js | Cleanup function threw an exception at chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/browser_alarm.js:35 - TypeError: mutObserverAlarmSet is null
etc.
Comment 34•11 years ago
|
||
(In reply to Myk Melez [:myk] [@mykmelez] from comment #33)
> 07:44:11 WARNING - TEST-UNEXPECTED-FAIL | (browser-test.js) | Found an
> unexpected webapprt:mochitest
> …
> 07:44:57 WARNING - TEST-UNEXPECTED-FAIL |
> chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/
> browser_alarm.js | Test timed out
> 07:44:57 WARNING - TEST-UNEXPECTED-FAIL |
> chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/
> browser_alarm.js | Cleanup function threw an exception at
> chrome://mochitests/content/webapprtChrome/webapprt/test/chrome/
> browser_alarm.js:35 - TypeError: mutObserverAlarmSet is null
> etc.
I've seen the mutObserver error happening intermittently, but bug 1007402 should fix this.
The failure in the debugger test is due to bug 859372 (filed bug 1014141 to fix the regression).
Assignee | ||
Comment 35•11 years ago
|
||
I'll look at the 'config file not set' problem.
Assignee | ||
Comment 36•11 years ago
|
||
This fixes the 'config file not found' errors. It looks like hg's fuzzing failed on the earlier patch, due to all the similar chunks of code in this file.
Attachment #8429692 -
Flags: review?(jlund)
Comment 37•11 years ago
|
||
Comment on attachment 8429692 [details] [diff] [review]
Fix 'config file not found' errors,
lgtm :)
Attachment #8429692 -
Flags: review?(jlund) → review+
Assignee | ||
Comment 38•11 years ago
|
||
Comment on attachment 8429692 [details] [diff] [review]
Fix 'config file not found' errors,
https://hg.mozilla.org/build/buildbot-configs/rev/cae8c2fe1fe3
Attachment #8429692 -
Flags: checked-in+
Comment 39•11 years ago
|
||
Merged to production and deployed.
Comment 40•11 years ago
|
||
The most recent builds are pretty busted in general, but this test suite is still showing a config file issue, "Required config file not set! (use --config-file option)":
https://tbpl.mozilla.org/php/getParsedLog.php?id=40662469&tree=Cedar&full=1
Assignee | ||
Comment 41•11 years ago
|
||
(In reply to Myk Melez [:myk] [@mykmelez] from comment #40)
> The most recent builds are pretty busted in general, but this test suite is
> still showing a config file issue, "Required config file not set! (use
> --config-file option)":
>
> https://tbpl.mozilla.org/php/getParsedLog.php?id=40662469&tree=Cedar&full=1
That log is from yesterday, and the change that fixes that was just merged to production this morning. I've just kicked off a new build on cedar, so we can see the results soon.
Assignee | ||
Comment 42•11 years ago
|
||
Linux and OSX builds are going on cedar; there's a problem with Windows builds that's likely the fault of the mozharness script; I'll take a look.
Assignee | ||
Comment 43•11 years ago
|
||
This fixes the 'Error: Path C:\slave\test\build\application\firefox\webapprt-stubexe doesn't exist.' error on Windowds.
Attachment #8431912 -
Flags: review?(armenzg)
Comment 44•11 years ago
|
||
Comment on attachment 8431912 [details] [diff] [review]
Add missing . in EXE_SUFFIX,
Review of attachment 8431912 [details] [diff] [review]:
-----------------------------------------------------------------
Fun!
Attachment #8431912 -
Flags: review?(armenzg) → review+
Assignee | ||
Comment 45•11 years ago
|
||
Comment on attachment 8431912 [details] [diff] [review]
Add missing . in EXE_SUFFIX,
https://hg.mozilla.org/build/mozharness/rev/636bceab7560
Attachment #8431912 -
Flags: checked-in+
Assignee | ||
Comment 46•11 years ago
|
||
These are running on cedar now. They will show up as U until bug 1017254 is fixed, but otherwise there aren't any infrastructure issues remaining.
Comment 47•11 years ago
|
||
In production with reconfig on 2014-06-03 00:53 PT
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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
•