Closed Bug 695351 Opened 13 years ago Closed 12 years ago

update buildbot configs for android mochitests to use an in-tree manifest

Categories

(Release Engineering :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: bear)

Details

(Whiteboard: [android][tegra][mobile_unittests])

Attachments

(2 files, 4 obsolete files)

now that bug 694741 is landed, we don't need to hardcode our test paths in android.  This is only for mozilla-central/inbound right now, not for aurora or beta.

Here is an example of a command line that we are running:
python mochitest/runtestsremote.py --deviceIP 10.250.49.85 --xre-path ../hostutils/xre --utility-path ../hostutils/bin --certificate-path certs --app org.mozilla.fennec --console-level INFO --http-port 30097 --ssl-port 31097 --pidfile /builds/tegra-097/test/../runtestsremote.pid --test-path dom/tests/mochitest/ajax/mochikit


We now need to run something similar to this:
python mochitest/runtestsremote.py --deviceIP 10.250.49.85 --xre-path ../hostutils/xre --utility-path ../hostutils/bin --certificate-path certs --app org.mozilla.fennec --console-level INFO --http-port 30097 --ssl-port 31097 --pidfile /builds/tegra-097/test/../runtestsremote.pid --run-only-tests=android.json --total-chunks=8 --this-chunk=1 --chunk-by-dir

note the --this-chunk value will change for all of the current 8 chunks.
Assignee: nobody → bear
Whiteboard: [android][tegra][mobile_unittests]
this is 2.5 months old, can we get this in?  Why was this prioritized lower?
If we do this for native android tests only vs xul it would solve a lot of problems.  This would allow people to test stuff on try and to turn on tests which fail due to e10s issues on xul only.
(In reply to Joel Maher (:jmaher) from comment #1)
> this is 2.5 months old, can we get this in?  Why was this prioritized lower?
> If we do this for native android tests only vs xul it would solve a lot of
> problems.  This would allow people to test stuff on try and to turn on tests
> which fail due to e10s issues on xul only.

It wasn't "prioritized lower" it was just missed in all the other things that "had to be done *NOW* for android over the last couple of months.  

And yes, I will work on this now.
Attached patch buildbotcustom change (obsolete) — Splinter Review
Attachment #586449 - Flags: feedback?(catlee)
Attached patch buildbot-configs change (obsolete) — Splinter Review
Attachment #586450 - Flags: feedback?(catlee)
Attached patch buildbot-configs change (obsolete) — Splinter Review
Attachment #586450 - Attachment is obsolete: true
Attachment #586450 - Flags: feedback?(catlee)
Attachment #586456 - Flags: feedback?(catlee)
as a non expert on this stuff, it looks like it is using this for android tests which is good.  Does it do the '--total-chunks=8 --this-chunk=x' ?  similar to the 5 chunks in desktop mochitests.
Attachment #586449 - Attachment is obsolete: true
Attachment #586449 - Flags: feedback?(catlee)
Attachment #586456 - Attachment is obsolete: true
Attachment #586456 - Flags: feedback?(catlee)
Attachment #586459 - Flags: review?(catlee)
Attachment #586460 - Flags: review?(catlee)
Comment on attachment 586460 [details] [diff] [review]
buildbot-configs change with chunking

Review of attachment 586460 [details] [diff] [review]:
-----------------------------------------------------------------

hey, this is looking great from my point of view.
I have put this on the tegra staging server to run today
Attachment #586459 - Flags: review?(catlee) → review?(aki)
Attachment #586460 - Flags: review?(catlee) → review?(aki)
Comment on attachment 586459 [details] [diff] [review]
buildbotcustom change with chunking

This looks good, assuming the tests run well.
Could you add a

    if totalChunks:
        assert 1 <= thisChunk <= totalChunks

like line 796 in steps/unittest.py ?
Also, do we want to make testPath and testManifest mutually exclusive?  The code as written doesn't do that.
Comment on attachment 586460 [details] [diff] [review]
buildbot-configs change with chunking

Thought about how we could specify (the overlapping) non-mochitests in one list, and then have the android-xul and android dicts specify the mochitest portions and extend the non-mochitest list.

Not sure how much we gain there, especially since we want android-xul to go away after a few releases. r=me.
Attachment #586460 - Flags: review?(aki) → review+
Comment on attachment 586459 [details] [diff] [review]
buildbotcustom change with chunking

r- for not specifying thisChunk / totalChunks for mochitests.
Attachment #586459 - Flags: review?(aki) → review-
this time I remember to *pass* the chunking parameters for mochitest - d'oh!
Attachment #586459 - Attachment is obsolete: true
Attachment #587129 - Flags: review?(aki)
Comment on attachment 587129 [details] [diff] [review]
buildbotcustom change with chunking

r=me with the assert and passing tests with correct command line options (comment 11)
Attachment #587129 - Flags: review?(aki) → review+
(In reply to Aki Sasaki [:aki] from comment #15)
> Comment on attachment 587129 [details] [diff] [review]
> buildbotcustom change with chunking
> 
> r=me with the assert and passing tests with correct command line options
> (comment 11)

added assert and will update test master to include new version of code
this is being tested on the tegra staging foopy last night and tonight and is currently in a cage match with hwine's patch to add robocop.apk

will check on it tonight
joel,

this what i'm seeing in staging now:

python mochitest/runtestsremote.py --deviceIP 10.250.50.94 --xre-path ../hostutils/xre --utility-path ../hostutils/bin --certificate-path certs --app org.mozilla.fennec --console-level INFO --http-port 30184 --ssl-port 31184 --pidfile /builds/tegra-184/test/../runtestsremote.pid --run-only-tests android.json --symbols-path=../symbols --total-chunks 8 --this-chunk 4

looks ok to me - can you sanity check the above?
bear, that looks correct!  Thanks for double checking.
(In reply to Joel Maher (:jmaher) from comment #19)
> bear, that looks correct!  Thanks for double checking.

cool, let me get this landed so it will be picked up during the next reconfig
Comment on attachment 586460 [details] [diff] [review]
buildbot-configs change with chunking

committed changeset 5297:f784166f4b2e
Attachment #586460 - Flags: checked-in+
Comment on attachment 587129 [details] [diff] [review]
buildbotcustom change with chunking

committed changeset 1997:ca617f34ac5b
Attachment #587129 - Flags: checked-in+
(In reply to Mike Taylor [:bear] from comment #22)
> Comment on attachment 587129 [details] [diff] [review]
> buildbotcustom change with chunking
> 
> committed changeset 1997:ca617f34ac5b

I suspect you didn't 'hg push' .
Live in production.
spotted in tbpl \o/
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: