Closed Bug 894353 Opened 11 years ago Closed 11 years ago

Support desktop c++ unit tests on Cedar

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dminor, Assigned: mozilla)

References

Details

Attachments

(2 files)

Bug 811409 has been tracking work to get C++ unit tests running from the test package. There is a patch there, but it can't be landed without updates to the mozharness config files to support the C++ unit tests. I've attached a sample config that I used for local testing on Linux to Bug 811409. Getting C++ unit tests running on Cedar would solve the config file problem and make it possible to test these changes across all the desktop platforms.
Aki, is this something you can help us drive with the set of interns you have working on mozharness stuff? If you're not the right person, please let us know who is. Many thanks!
Flags: needinfo?(aki)
(In reply to Clint Talbert ( :ctalbert ) from comment #1) > Aki, is this something you can help us drive with the set of interns you > have working on mozharness stuff? If you're not the right person, please > let us know who is. Many thanks! I don't actually specify who works on what, when; that tends to be :coop, :catlee, and :joduinn. I just help people who are working in areas I know. I think when we landed bug 811409, it went live across the board, which is why we backed it out. Afaict it's not a question of enabling this on Cedar; it's a matter of not enabling it on every other branch, which happens whenever this merges to production. I think one approach would be for :dminor, or someone else, to take the sample config diff changes (probably everything referencing cppunittest) and to apply those changes to the config files in http://hg.mozilla.org/build/mozharness/file/b468fb3a8f8c/configs/unittests . Then that patch can be landed along with https://bugzilla.mozilla.org/attachment.cgi?id=775766 on http://hg.mozilla.org/users/asasaki_mozilla.com/ash-mozharness , and then any ash unittests should be running cppunittests. If those go green, the corresponding patch should be ready for review.
Flags: needinfo?(aki)
I'll give that a shot tomorrow and see how it goes.
:dminor pinged me in IRC earlier -- I think the ash run looks good; the patch should be reviewable+landable. I'll be on PTO next week, but we should be able to schedule these unit tests by: * adding a CPPUNIT like these: http://hg.mozilla.org/build/buildbot-configs/file/6e6088fc8791/mozilla-tests/config.py#l396 * enabling on just Cedar, potentially like we're doing for metro right now: http://hg.mozilla.org/build/buildbot-configs/file/6e6088fc8791/mozilla-tests/config.py#l1455 except I imagine we'd want them on more platforms than win8, correct? (which platforms?)
The patch for Bug 811409 is in production. Is anything else needed from me to be able to turn this on for Cedar?
Flags: needinfo?(bugspam.Callek)
(In reply to Dan Minor [:dminor] from comment #5) > The patch for Bug 811409 is in production. Is anything else needed from me > to be able to turn this on for Cedar? Just the answer to this part of aki's question. After this is answered the remaining work is on releng to accomplish (In reply to Aki Sasaki [:aki] from comment #4) > * enabling on just Cedar, potentially like we're doing for metro right now: > http://hg.mozilla.org/build/buildbot-configs/file/6e6088fc8791/mozilla-tests/ > config.py#l1455 > > except I imagine we'd want them on more platforms than win8, correct? > (which platforms?)
Flags: needinfo?(bugspam.Callek) → needinfo?(dminor)
Product: mozilla.org → Release Engineering
We would want to run these for any platform that currently does the unit tests as part of make check. As far as I know, that would be everything that is not Android or B2G.
Flags: needinfo?(dminor)
Attached patch cppunit on cedar (deleted) — Splinter Review
:dminor, do the commandline options look right?
Assignee: nobody → aki
Attachment #790494 - Flags: review?(armenzg)
Attachment #790494 - Flags: feedback?(dminor)
Comment on attachment 790494 [details] [diff] [review] cppunit on cedar Review of attachment 790494 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me.
Attachment #790494 - Flags: feedback?(dminor) → feedback+
Attachment #790494 - Flags: review?(armenzg) → review+
In production.
These are running on Cedar as 'U' since TBPL doesn't know about these.
Depends on: 906160
desktop_unittest.py: error: no such option: --cppunittest-suite Looks like we need to add this commandline option here? http://hg.mozilla.org/build/mozharness/file/825c92dca271/scripts/desktop_unittest.py#l34
Flags: needinfo?(dminor)
Yes, I missed that when I was working on this and was using something in my config file to force the test suite to run.
Flags: needinfo?(dminor)
argv: ['/tools/buildbot/bin/python', 'scripts/scripts/desktop_unittest.py', '--cppunittest-suite', 'cppunittest', '--download-symbols', 'true'] Required config file not set! (use --config-file option) program finished with exit code 255
Attachment #792983 - Flags: review?(armenzg)
Attachment #792983 - Flags: review?(armenzg) → review+
Attachment #792983 - Flags: checked-in+
Live in production.
Orange, not red :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 912192
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: