Closed Bug 932504 Opened 12 years ago Closed 12 years ago

Schedule gaia-ui-tests on b2g desktop builds on osx on cedar, pine

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(4 files)

Engineering has enabled OOP on b2g desktop builds on OSX. They'd like to run gaia-ui-tests on those, to make sure we don't break things going forward. To start, we should schedule these on cedar and pine until we know where we stand.
Blocks: 916356
So, bug 917596 claims to have done this, but I don't see the tests on cedar; we can continue the work here, I suppose.
Depends on: 917596
I've looked a bit at the buildbot code and can't decipher why the tests aren't showing up on cedar or pine. The only potential error I see is: http://hg.mozilla.org/build/buildbot-configs/file/311a1dd1bb26/mozilla-tests/b2g_config.py#l84 (should probably be mac-perf instead of linux-perf?) ...but I doubt that explains why the tests aren't being scheduled. aki, have any idea what's going on?
Flags: needinfo?(aki)
Ok, so https://tbpl.mozilla.org/php/getParsedLog.php?id=29929534&tree=Cedar&full=1 (osx) doesn't have a sendchange, but https://tbpl.mozilla.org/php/getParsedLog.php?id=29930506&tree=Cedar&full=1 (linux64) does. I think this is because http://hg.mozilla.org/build/buildbot-configs/file/a2cec05c8f08/mozilla/b2g_config.py#l159 sets unittest_masters for linux64_gecko, but http://hg.mozilla.org/build/buildbot-configs/file/a2cec05c8f08/mozilla/b2g_config.py#l232 sets unittest_masters to [] for macosx64_gecko. You've got an r+ from me to set the macosx64_gecko unittest_masters line to 'unittest_masters': GLOBAL_VARS['unittest_masters'], like linux64_gecko; I think that'll fix it.
Flags: needinfo?(aki)
Thanks aki; I now know buildbot a little better than I did before. :)
Assignee: nobody → jgriffin
Status: NEW → ASSIGNED
Attachment #825586 - Flags: review+
Comment on attachment 825586 [details] [diff] [review] macosx_gaiaui.diff This has turned all b2g desktop builds orange. Buildbot was not in the PATH.
Attachment #825586 - Flags: checked-in-
Ok, we probably have to tweak the b2g_config.py osx env to look like this: http://hg.mozilla.org/build/buildbot-configs/file/144a6d68d917/mozilla/config.py#l598 instead of this: http://hg.mozilla.org/build/buildbot-configs/file/144a6d68d917/mozilla/b2g_config.py#l250 probably just /tools/buildbot/bin. Probably best to test in staging at this point... I'll add it to my list.
This adds the unittest_masters, adds buildbot to PATH, and fixes some pep8 stuff. I was able to successfully sendchange on an r5 lion builder in staging.
Attachment #826208 - Flags: review?(armenzg)
Comment on attachment 826208 [details] [diff] [review] osx_sendchange.diff Review of attachment 826208 [details] [diff] [review]: ----------------------------------------------------------------- Those perf environments should not be in use anymore IIUC.
Attachment #826208 - Flags: review?(armenzg) → review+
in production
Something still isn't right, as these tests aren't showing up on cedar. Aki, any ideas?
Flags: needinfo?(aki)
This bug is cursed? Digging to see if I have any other clever ideas.
If you look at http://hg.mozilla.org/build/buildbot-configs/rev/0e1acbc4533b#l1.12 , I set the unittest_masters for osx. If you look at http://hg.mozilla.org/build/buildbot-configs/file/2ff07c61c7a3/mozilla/b2g_config.py#l232 (tip-of-default), unittest_masters is set for osx. If you look at http://hg.mozilla.org/build/buildbot-configs/file/b6efcd390964/mozilla/b2g_config.py#l232 (tip-of-production), unittest_masters is set to [] for osx. Something's screwy with the merge here.
Flags: needinfo?(aki)
When |hg diff -r production| in default, I get no diff for b2g_config.py. When I copy the default b2g_config.py into production, I get a single line diff, the unittest_masters line. I think it's official: I hate DVCSes.
Landed http://hg.mozilla.org/build/buildbot-configs/rev/1602af92f93f to try to fix up... will require another reconfig.
Ok, should be live, for real, hopefully.
We have sendchange! https://tbpl.mozilla.org/php/getParsedLog.php?id=30174319&tree=Cedar&full=1 Executing: ['buildbot', 'sendchange', '--master', 'buildbot-master81.build.mozilla.org:9301', '--username', 'sendchange-unittest', '--branch', 'cedar-macosx64_gecko-unittest', '--revision', 'b9e63daefcec', '--comments', 'Re-enable some b2g desktop mochitests which may have been wrongfully disabled', '--property', 'buildid:20131105142132', '--property', 'pgo_build:False', '--property', 'builduid:670a04c16cfb4580a2cbd974ec97ee02', 'http://ftp.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/cedar-macosx64_gecko/1383690092/en-US/b2g-28.0a1.en-US.mac64.dmg', 'http://ftp.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/cedar-macosx64_gecko/1383690092/en-US/b2g-28.0a1.en-US.mac64.tests.zip'] Process stdio: NOTE: --username/-u is deprecated: use --who/-W' change sent successfully program finished with exit code 0 But no tests. I think I know what's going on...
The production-masters.json has macosx64_gecko set for the osx test masters. The test builders are there, with mountainlion slaves attached. The sendchange is successful; it just isn't triggering the tests for some reason, and I'm running out of ideas. Hoping to figure this out soon, but I'll be out Thurs/Fri and a decent-sized todo list for the rest of today, and this bug has been resistant to fixing.
Ok, I eyeballed the b2g linux64 sendchange (working) and compared it to the macosx64 sendchange (not working), and noticed the branch for linux64 was cedar-linux64_gecko-opt-unittest and the branch for macosx64 was cedar-macosx64_gecko-unittest (no opt). Manually sendchanging to the macosx64 branch with the opt scheduled a test. Then I found this line: http://hg.mozilla.org/build/buildbot-configs/file/e641038ee358/mozilla/b2g_config.py#l145 which we're missing for macosx64_gecko. http://hg.mozilla.org/build/buildbot-configs/file/e641038ee358/mozilla/b2g_config.py#l216
Attachment #828335 - Flags: review?(armenzg)
Comment on attachment 828335 [details] [diff] [review] unittest_platform Review of attachment 828335 [details] [diff] [review]: ----------------------------------------------------------------- I bet that was fun to find.
Attachment #828335 - Flags: review?(armenzg) → review+
something here is in production
https://tbpl.mozilla.org/?tree=Cedar&showall=1&jobname=b2g_mtnlion%20cedar%20opt%20test%20gaia-ui-test !!! We may need to tweak something to get this to show up in the right row.
Oh, and not try to untar the dmg.
Yep, we'll need to generalize the script to not expect a linux environment.
Depends on: 938435
This will make tests on Mac B2G desktop builds use a _macosx64 suffix, isntead of _mtnlion.
Attachment #833197 - Flags: review?(ryanvm)
Comment on attachment 833197 [details] [diff] [review] Use a better name for tests on b2g desktop builds, +1 to one less special-casing in TBPL's regexes :)
Attachment #833197 - Flags: review?(ryanvm) → review+
Attachment #833197 - Flags: checked-in+
something[s] here made it to production
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: