Closed
Bug 912997
Opened 11 years ago
Closed 11 years ago
Please schedule jit-tests on Cedar
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dminor, Assigned: kmoir)
References
Details
Attachments
(4 files, 2 obsolete files)
18.03 KB,
patch
|
armenzg
:
review+
kmoir
:
checked-in+
|
Details | Diff | Splinter Review |
5.56 KB,
text/x-python
|
Details | |
848 bytes,
text/x-sh
|
Details | |
1.24 KB,
patch
|
dminor
:
review+
kmoir
:
checked-in+
|
Details | Diff | Splinter Review |
Once the patch for bug 858621 lands, mozharness support exists to run the jit-tests for the desktop platforms and panda android. The tests are running well locally, but scheduling the tests on Cedar will facilitate fixing any environment or platform specific problems that may exist. I hit a few intermittent failures on pandas when testing locally, see bug 906525. Since it seems that only two tests are affected, if these show up on Cedar, it should be easy to resolve.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kmoir
Assignee | ||
Comment 1•11 years ago
|
||
will test once my dev-master is finished testing the other bugs I'm working on
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #800380 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
:dminor Ran into this error when running tests on my dev-master today for Android jit tests on Cedar 8:43:25 INFO - Traceback (most recent call last): 08:43:25 INFO - File "/builds/panda-0307/test/build/tests/jit-test/jit-test/jit_test.py", line 229, in <module> 08:43:25 INFO - main(sys.argv[1:]) 08:43:25 INFO - File "/builds/panda-0307/test/build/tests/jit-test/jit-test/jit_test.py", line 214, in main 08:43:25 INFO - ok = jittests.run_tests_remote(job_list, prefix, options) 08:43:25 INFO - File "/builds/panda-0307/test/build/tests/jit-test/tests/lib/jittests.py", line 628, in run_tests_remote 08:43:25 INFO - dm.pushDir(os.path.dirname(TEST_DIR), options.remote_test_root, timeout=600) 08:43:25 INFO - TypeError: pushDir() got an unexpected keyword argument 'timeout' pushdir doesn't have a timeout argument
Reporter | ||
Comment 4•11 years ago
|
||
This should have been fixed by bug 912004, so I'm guessing your're pulling in an older mozdevice. I had been pointing the virtualenv to the mozdevice in the test package in order to pick up this change.
Assignee | ||
Comment 5•11 years ago
|
||
I have patches that enable the appropriate builders on cedar. Before I send them for review, terrence: do you want to schedule the jit-tests for opt or debug or both?
Flags: needinfo?(terrence)
Assignee | ||
Comment 7•11 years ago
|
||
These patches have been testing in staging. Regarding comments 3 and 4, we do use the mozdevice in the tests package in the virtualenv in the mozharness scripts. From mozharness/scripts/android_panda.py virtualenv_modules = [ 'mozpoolclient', 'mozcrash', {'name': 'mozdevice', 'url': os.path.join('tests', os.path.join('mozbase', 'mozdevice'))} ] However, in jittests.py, I think it may default to a different version of the package that's installed. Definitely the wrong version loaded thus the error. def run_tests_remote(tests, prefix, options): 604 # Setup device with everything needed to run our tests. 605 from mozdevice import devicemanager, devicemanagerADB, devicemanagerSUT dminor: how did you specify the mozdevice from your tests when you were running them?
Attachment #803305 -
Flags: review?(armenzg)
Assignee | ||
Updated•11 years ago
|
Attachment #802734 -
Attachment is obsolete: true
Reporter | ||
Comment 8•11 years ago
|
||
kmoir, I didn't do anything special beyond the virtualenv setup you quoted above. The jittests.py harness should be running from within the virtualenv, so it should be ok. Is it possible you are using an older tests package? I'm attaching the panda config file I use for local testing, in case I missed something when updating the production config with my changes that might be causing this.
Assignee | ||
Comment 9•11 years ago
|
||
dminor, can you attach the script too, in addition to the config file you attached?
Comment 10•11 years ago
|
||
Comment on attachment 803305 [details] [diff] [review] bug912997.patch Review of attachment 803305 [details] [diff] [review]: ----------------------------------------------------------------- ::: mozilla-tests/config.py @@ +1341,5 @@ > 'config_files': ["marionette/prod_config.py"], > }, > + 'jittest': { > + 'config_files': ["unittests/mac_unittest.py"], > + }, Nit: white space.
Attachment #803305 -
Flags: review?(armenzg) → review+
Reporter | ||
Comment 11•11 years ago
|
||
kmoir, I'm adding the shell script I use when running locally. My android_panda.py is what is checked in to mozharness. Sorry for the delay, but I wanted to double check this morning that things still worked for me locally. They were fine with fresh pulls from m-c and the mozharness repo.
Assignee | ||
Comment 12•11 years ago
|
||
Thanks Dan. I think the issue is that the import in line 605 of jitests.py from mozdevice import devicemanager, devicemanagerADB, devicemanagerSUT resolves to the one in /builds/sut_tools on the foopy 13:50:11 INFO - 'PYTHONPATH': '/builds/sut_tools' which doesn't have the timeout parameter def pushFile(self, localname, destname): perhaps you need to modify the sys.path to load them from another directory from what I've read here http://docs.python.org/2/tutorial/modules.html#the-module-search-path
Reporter | ||
Comment 13•11 years ago
|
||
kmoir, Does this mean that anything found under /builds/sut_tools will be taken in favour of anything installed in the virtualenv? To save me requesting a foopy right away, do you mind changing android_panda.py to look like this (at line 232, in the _run_category_suites function): env = self.query_env(partial_env=env, log_level=INFO) if env.has_key('PYTHONPATH'): del env['PYTHONPATH'] If that doesn't work, I'll file a bug for a foopy and go from there. Thanks!
Assignee | ||
Comment 14•11 years ago
|
||
dminor, Yes, this is my understanding from my reading of how Python loads modules based on the search path. I set this up on my dev-master this morning and it worked for the jittests. Let me just run the full suite of other tests to ensure it doesn't break anything and then I can land this patch + the others to get these enabled on Cedar.
Assignee | ||
Comment 15•11 years ago
|
||
test results in staging look good
Attachment #804493 -
Flags: review?(dminor)
Reporter | ||
Comment 16•11 years ago
|
||
Comment on attachment 804493 [details] [diff] [review] bug912997mh.patch Review of attachment 804493 [details] [diff] [review]: ----------------------------------------------------------------- r+, I would just add a comment explaining that the PYTHONPATH was causing modules from outside the virtualenv to be loaded.
Attachment #804493 -
Flags: review?(dminor) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #804493 -
Flags: checked-in+
Assignee | ||
Updated•11 years ago
|
Attachment #803305 -
Flags: checked-in+
Comment 17•11 years ago
|
||
This change broke talos at least on Aurora. Closing the trees. https://tbpl.mozilla.org/php/getParsedLog.php?id=27836532&tree=Mozilla-Aurora
Assignee | ||
Comment 18•11 years ago
|
||
I think the breakage was caused by http://hg.mozilla.org/build/buildbotcustom/rev/5b6de234e2fe which is bug 829211
Assignee | ||
Comment 19•11 years ago
|
||
This was put into production on Friday.
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•