Closed Bug 882324 Opened 11 years ago Closed 11 years ago

Support reftests for pandaboards on Cedar

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

ARM
Android
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dminor, Assigned: kmoir)

References

Details

Attachments

(4 files, 5 obsolete files)

Once manifests are prepared for reftests on panda as part of bug 877266, the next step is to get them running on Cedar to assess how stable they are. They seem solid running on a local panda.
Assignee: nobody → kmoir
Should they be reftests or reftestsmall?

reftestsmall have the extra-arg
--ignore-window-size
Flags: needinfo?(dminor)
Attached file patch (obsolete) —
Attachment #762926 - Flags: review?(bugspam.Callek)
Attached patch patch (obsolete) — Splinter Review
Attachment #762926 - Attachment is obsolete: true
Attachment #762926 - Flags: review?(bugspam.Callek)
Attachment #762927 - Flags: review?(bugspam.Callek)
Comment on attachment 762927 [details] [diff] [review]
patch

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

::: mozilla-tests/mobile_config.py
@@ +629,5 @@
>                  for suite in BRANCHES[branch]['platforms'][platform][slave_plat][type][:]:
>                      if "xpcshell" in suite[0]:
>                          BRANCHES[branch]['platforms'][platform][slave_plat][type].remove(suite)
> +                    if (("plain-reftest" in suite[0]) and (branch != "cedar")) and \
> +                    BRANCHES[branch]['platforms'][platform] == "panda_android":

I don't like piggybacking on the xpcshell logic (which is riding trains) for a different suite that we're trying to turn on for just cedar.

We should instead copy this block and modify accordingly.
Attachment #762927 - Flags: review?(bugspam.Callek) → review-
Attached patch patch #2 (obsolete) — Splinter Review
Attachment #762927 - Attachment is obsolete: true
Attachment #762939 - Flags: review?(bugspam.Callek)
Comment on attachment 762939 [details] [diff] [review]
patch #2

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

sorry for another r-, this one is because I am pretty sure your "panda_android" check is wrong. See below.

::: mozilla-tests/mobile_config.py
@@ +631,5 @@
>                          BRANCHES[branch]['platforms'][platform][slave_plat][type].remove(suite)
>  
> +#bug 882324 - Support reftests for pandaboards on Cedar
> +for branch in BRANCHES:
> +    # Loop removes it from any branch that gets beyond here

if we don't do branch check here, remove this comment.

@@ +644,5 @@
> +            if not slave_plat in BRANCHES[branch]['platforms'][platform]:
> +                continue
> +            for type in BRANCHES[branch]['platforms'][platform][slave_plat]:
> +                for suite in BRANCHES[branch]['platforms'][platform][slave_plat][type][:]:
> +                    if (("plain-reftest" in suite[0]) and (branch != "cedar")) and \

I would have preferred to do the cedar check above like in the above loop (since it makes it more obvious how to deploy to other branches), but I won't block on it

@@ +645,5 @@
> +                continue
> +            for type in BRANCHES[branch]['platforms'][platform][slave_plat]:
> +                for suite in BRANCHES[branch]['platforms'][platform][slave_plat][type][:]:
> +                    if (("plain-reftest" in suite[0]) and (branch != "cedar")) and \
> +                    BRANCHES[branch]['platforms'][platform] == "panda_android":

hrm actually this will never match,

BRANCH[branch]['platforms'][platform] is a dictionary, so will never match panda_android.

I suspect what you want is to do:

if not slave_plat is "panda_android":
   continue

just above the |type| for loop.
Attachment #762939 - Flags: review?(bugspam.Callek) → review-
Attached patch patch (obsolete) — Splinter Review
I tested this in staging.
Attachment #762939 - Attachment is obsolete: true
Attachment #763517 - Flags: review?(bugspam.Callek)
Comment on attachment 763517 [details] [diff] [review]
patch

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

r+ if my nit is addressed

::: mozilla-tests/mobile_config.py
@@ +631,5 @@
>                          BRANCHES[branch]['platforms'][platform][slave_plat][type].remove(suite)
>  
> +#bug 882324 - Support reftests for pandaboards on Cedar
> +for branch in BRANCHES:
> +    # Loop removes it from any branch that gets beyond here

I prefer to add here...

   if branch in ('cedar', ):
      continue

Then when we're ready to land to m-c its a simple flip of "not in ('m-aurora', ...)" etc

@@ +646,5 @@
> +            if not slave_plat == "panda_android":
> +                continue
> +            for type in BRANCHES[branch]['platforms'][platform][slave_plat]:
> +                for suite in BRANCHES[branch]['platforms'][platform][slave_plat][type][:]:
> +                    if (("plain-reftest" in suite[0]) and (branch != "cedar")):

then we can remove the cedar check here.... otherwise we traverse this whole list of for loops before we get an easy mental model of which branches this all applies to.
Attachment #763517 - Flags: review?(bugspam.Callek) → review+
Comment on attachment 763517 [details] [diff] [review] [diff] [review]
patch

---------AUTOMATIC COMMENT---------
--  filter pep8-callek-june-2013 --
---------AUTOMATIC COMMENT---------

$pep8 <dir> --diff --max-line-length=159 --show-source < attachment.diff
/tmp/tmp.FkuKcxXoe7/mozilla-tests/mobile_config.py:651:24: E111 indentation is not a multiple of four
                       BRANCHES[branch]['platforms'][platform][slave_plat][type].remove(suite)
                       ^
Sorry I missed this earlier, but yes it is reftestsmall.
Flags: needinfo?(dminor)
Attached patch updated patch (obsolete) — Splinter Review
Now that changes from bug 829211 have landed we need to invoke these via mozharness
Attachment #763517 - Attachment is obsolete: true
Attachment #770800 - Flags: review?(bugspam.Callek)
Comment on attachment 770800 [details] [diff] [review]
updated patch

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

like before r+ if my nits (as listed in https://bugzilla.mozilla.org/show_bug.cgi?id=882324#c8 ) are addressed :-)
Attachment #770800 - Flags: review?(bugspam.Callek) → review+
Attached patch patchSplinter Review
sorry I missed that nits comment this morning :-)
Attachment #770800 - Attachment is obsolete: true
Attachment #771006 - Flags: review?(bugspam.Callek)
Attachment #771006 - Flags: review?(bugspam.Callek) → review+
In production
I *think* this is all I need to solve this issue.

At: https://tbpl.mozilla.org/php/getParsedLog.php?id=25661003&tree=Cedar&full=1
Attachment #780497 - Flags: review?(aki)
Comment on attachment 780497 [details] [diff] [review]
[mozharness] ignore-window-size

This will add --ignore-window-size to the reftest harness call, but we'll still hit this issue:

android_panda.py: error: no such option: --ignore-window-size

To fix that issue, we can do one of the following:

a) add --ignore-window-size to the list of commandline options that android_panda.py will accept:
http://hg.mozilla.org/build/mozharness/file/9ccb65b68374/scripts/android_panda.py#l34

Then use self.config['ignore_window_size'] when generating commandline options for the test harness.

or,

b) land this patch, and also land a patch in buildbot-configs to stop passing --ignore-window-size to android_panda.py.


I think I prefer (b).

r+ing, with the caveat that these jobs will still be red until we stop passing --ignore-window-size to the mozharness script.
Attachment #780497 - Flags: review?(aki) → review+
Comment on attachment 780497 [details] [diff] [review]
[mozharness] ignore-window-size

https://hg.mozilla.org/build/mozharness/rev/c624755975bc

(going with the more-patches but (b) option felt better to me as well)
Attachment #780497 - Flags: checked-in+
Attachment #780795 - Flags: review?(aki) → review+
Comment on attachment 780795 [details] [diff] [review]
[configs] Remove --ignore-window-size from being passed to mozharness script

https://hg.mozilla.org/build/buildbot-configs/rev/6e6088fc8791
Attachment #780795 - Flags: checked-in+
(In reply to Justin Wood (:Callek) from comment #18)
> Comment on attachment 780497 [details] [diff] [review]
> [mozharness] ignore-window-size
> 
> https://hg.mozilla.org/build/mozharness/rev/c624755975bc
> 
> (going with the more-patches but (b) option felt better to me as well)

Mozharness part merged to production.
In production
Soooo... we're *now* failing with:

16:00:27     INFO -  remotereftest.py: error: no such option: --certificate-path
16:00:27    ERROR - Return code: 2


Dan, can you verify what our options should be here, if there are any other issues, etc?

Current can be seen within the context of https://hg.mozilla.org/build/mozharness/rev/c624755975bc
Flags: needinfo?(dminor)
Callek, this works on my local panda:

_tests/reftest/remotereftest.py --dm_trans=sut --ignore-window-size --app=org.mozilla.fennec_dminor --deviceIP=172.16.0.115 --xre-path=/home/dminor/mozilla-central/obj-x86_64-unknown-linux-gnu/dist/bin --httpd-path=_tests/reftest/reftest/components --symbols-path=./dist/crashreporter-symbols  "tests/layout/reftests/reftest.list"

Once --certificate-path is removed, the other difference is --utility-path, which is a valid option.

You are also still pointing to the crashtest manifest "reftest/tests/testing/crashtest/crashtests.list" instead of the reftest manifest "tests/layout/reftests/reftest.list"
Flags: needinfo?(dminor)
This, hopefully, is the last part of this bug
Attachment #782601 - Flags: review?(dminor)
Comment on attachment 782601 [details] [diff] [review]
[mozharness] fix reftest command line

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

I missed this in the needinfo, but --console-level=INFO is also not a valid option for remotereftest.py, remove that and it looks good.
Attachment #782601 - Flags: review?(dminor) → review+
Comment on attachment 782601 [details] [diff] [review]
[mozharness] fix reftest command line

https://hg.mozilla.org/build/mozharness/rev/5099407c412c

With nit fixed
Attachment #782601 - Flags: checked-in+
And they are running (and failing in test-specific ways) now!

Calling this bug, as scoped done
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
merged to production branch
Product: mozilla.org → Release Engineering
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: