Closed Bug 1532607 Opened 7 months ago Closed 5 months ago

Hook up ./mach test to run telemetry tests

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: automatedtester, Assigned: b4hand)

Details

Attachments

(1 file)

Most test suites can be run by doing ./mach test path/to/test/file.*** but telemetry can't.

There needs to be a minor update to mach that allows the system to know what to be looking for.

Assignee: nobody → rpierzina

Marking this as P1 so that it doesn't show in our triage list, since it's assigned :)

Priority: -- → P1
Assignee: rpierzina → chartjes
Status: NEW → ASSIGNED
Assignee: chartjes → rpierzina
Assignee: rpierzina → bforehand

Is there an example of such a test that can be run this way? Thanks!

Flags: needinfo?(dburns)

Most test suites work this way. A build peer might be able to direct you better.

Flags: needinfo?(dburns)

Here are the files that I modified to get this working.

M python/mozbuild/mozbuild/frontend/context.py
M python/mozbuild/mozbuild/testing.py
M testing/mozbase/moztest/moztest/resolve.py
M toolkit/toolkit.mozbuild

I also had to create a new file at toolkit/components/telemetry/tests/marionette/moz.build with the following contents:

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

TELEMETRY_TESTS_CLIENT_MANIFESTS += ["tests/manifest.ini"]

with Files("**"):
    BUG_COMPONENT = ("Tookit", "Telemetry")
    SCHEDULES.exclusive = ["telemetry-tests-client"]

Not sure what SCHEDULES does.

Pushed by rpierzina@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0883716b330e
Add configuration to run telemetry tests directly; r=raphael,ahal
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla68 → ---

:b4hand , can you please fix the flake8 failure before relanding?
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=246903779&repo=mozilla-central&lineNumber=217

Flags: needinfo?(bforehand)

I pushed an updated revision which I hope fixes it as the lines that fail within that flake8 log don't match my changes. But I did see where I think it could have.

Flags: needinfo?(bforehand)
Pushed by rpierzina@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2bb901b8e9f5
Add configuration to run telemetry tests directly; r=raphael,ahal
Status: REOPENED → RESOLVED
Closed: 5 months ago5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.