Commit Graph
59 Commits
Author SHA1 Message Date
Edwin Takahashi 96867ef7c6 Bug 1532427 - add mozharness python3 task as tier 3 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D57187
2019-12-16 18:16:47 +00:00
Edwin Takahashi ca9b331a35 Bug 1602863 - use ubuntu1804 image for harness-test tasks r=jmaher
Changes:

Migrate the harness test jobs to use ubuntu1804 test image instead of desktop1604-test.

Differential Revision: https://phabricator.services.mozilla.com/D56578
2019-12-11 11:22:14 +00:00
Andrew Halberstadt 9960f66c49 Bug 1600904 - [lint.yaml] Fix Python 3 related error and the issues that snuck in because of it, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D55798
2019-12-10 19:18:31 +00:00
Tarek Ziadé f8039f2d71 Bug 1595836 - add support for ./mach python-test r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D52976
2019-11-14 15:02:44 +00:00
Rob Wood cf4fc6c571 Bug 1520463 - Raptor python unit tests: add support for python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D48768
2019-10-21 20:26:15 +00:00
Bogdan Tara cea57e5770 Backed out changeset a4ed297ed157 (bug 1520463) for raptor failures complaining about StringIO 2019-10-19 15:02:15 +03:00
Rob Wood f8329b76eb Bug 1520463 - Raptor python unit tests: add support for python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D48768
2019-10-18 17:48:52 +00:00
Andrew Halberstadt 476f8b2829 Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441
2019-09-30 15:09:41 +00:00
Oana Pop Rus f19fe1ea96 Backed out changeset 371641b1010b (bug 1580280) for lints failure on a CLOSED TREE 2019-09-26 00:18:33 +03:00
Andrew Halberstadt 1983a4fe4d Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441
2019-09-25 20:03:14 +00:00
Junior Hsu b5ddb38aaa Bug 1580108 - cleanup default node and try select tests r=tomprince
Cleanup by reviewer's comment. Also remove the unnecessary node fetch.

Differential Revision: https://phabricator.services.mozilla.com/D45470
2019-09-17 19:01:16 +00:00
Sylvestre Ledru f007fe287c Bug 1579845 - ride along: treeherder: Rename ml to mozlint r=ahal
ML now means Machine Learning for most people, we should be more explicit for new comers

Differential Revision: https://phabricator.services.mozilla.com/D45488
2019-09-11 20:53:31 +00:00
Junior Hsu 44e3e3725e Bug 1571573 - P1 use node in toolchain-artifact for xpcshell r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D44898
2019-09-05 21:27:37 +00:00
Mike Hommey 74ad45db89 Bug 1575375 - Pull mozbuild tests out of make check. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D42759
2019-08-21 05:00:50 +00:00
Tom Prince 62d4b4530a Bug 1565725: Use run-task to change the working directory; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D39600
2019-08-02 19:05:55 +09:00
Edwin Gao 8cd2c1b4f1 Bug 1562083 - explicitly insert sys.path to env for use in subprocess for python3 mozprocess unit tests r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D36681
2019-07-03 17:52:19 +00:00
Cosmin Sabou e654dc5ac0 Backed out changeset da3af6a077fc (bug 1562083) for busting gecko decision task. CLOSED TREE 2019-07-03 19:48:58 +03:00
Edwin Gao e81770ef2c Bug 1562083 - explicitly insert sys.path to env for use in subprocess for python3 mozprocess unit tests r=jmaher
Changes:
- for macosx1014, in the tests where `subprocess` is called and the process relies on `six` being present, ensure that `six` is available in the PYTHONPATH by explicitly inserting the contents of `sys.path` to the modified environment variable dict
- change how the command line call to run the suite is being built in `taskcluster/taskgraph/transforms/job/mach.py`
- migrate source-tests from macosx1010 to macosx1014

Differential Revision: https://phabricator.services.mozilla.com/D36681
2019-07-03 01:04:24 +00:00
Andrew Halberstadt 77d04e5544 Bug 1473498 - [mach] Enable test_dispatcher with python 3 r=firefox-build-system-reviewers,chmanchester
This test is working with minimal effort. Let's get it running to prevent
future regressions.

Differential Revision: https://phabricator.services.mozilla.com/D36098
2019-07-02 21:27:35 +00:00
Andrew Halberstadt e4d80d1c81 Bug 1473498 - [mach] Pull tests out of make check r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D36097
2019-07-02 20:40:39 +00:00
Joel Maher 03fc1be7d6 Bug 1550826 - add initial support for osx mojave 10.14 to our CI. r=ahal
add initial support for osx mojave 10.14 to our CI.

Differential Revision: https://phabricator.services.mozilla.com/D30795
2019-05-14 18:33:12 +00:00
Tom Prince c8628f9904 Bug 1550816: Enforce consistent indenting in taskcluster yaml; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D30684
2019-05-10 21:19:48 +00:00
Tom Prince 08ece47786 Bug 1532783: [taskgraph] Switch to using worker aliases for docker-worker and generic-worker; r=dustin
Differential Revision: https://phabricator.services.mozilla.com/D24238
2019-04-30 22:58:06 +00:00
Andrew Halberstadt 3075a1f4e4 Bug 1546100 - [tryselect] Fix tools/tryselect/test/test_fuzzy.py, r=jmaher
This was regressed by bug 1544816 but the test never ran on the push that regressed.
This patch also updates the 'files-changed' for the tryselect task.

Differential Revision: https://phabricator.services.mozilla.com/D28386
2019-04-22 18:38:58 +00:00
Andrew Halberstadt b162e3047f Bug 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D14901
2018-12-21 13:43:12 +00:00
Andrew Halberstadt d3ba5fbc2a Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

Differential Revision: https://phabricator.services.mozilla.com/D10759
2018-12-05 19:20:16 +00:00
Tom Prince f660574023 Bug 1482395: [mozrelease] Add support for generating update metadata; r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D12707
2018-11-27 18:47:14 +00:00
Andreea Pavel 808a86b809 Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt a7ff3e51da Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

MozReview-Commit-ID: C07FANaYzf7

Depends on D10758

Differential Revision: https://phabricator.services.mozilla.com/D10759
2018-11-15 00:49:45 +00:00
Tom Prince c0a3c9c2de Bug 1492128: [mozrelease] Add mozrelease tests to taskcluster; r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D10147
2018-10-30 18:40:23 +00:00
Tom Prince 8801e0b1d4 Bug 1484012: [fetch-content] Pass MOZ_FETCHES as json; r=gps,ahal
Rather than trying to parse strings, just pass a json blob. This will allow us
to easily do things like mark artifacts to be left unextracted.

Differential Revision: https://phabricator.services.mozilla.com/D3553
2018-08-17 10:37:21 -06:00
Chris AtLee 2873f87ade Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-08-01 16:00:03 +00:00
Andrew Halberstadt b8b6b5e2c2 Bug 1468812 - [ci] Support MOZ_FETCHES and fetch-content in run-task r=gps
This removes the 'use-artifacts' mechanism in favour of fetches. There are a
few pieces here that need to land atomically:

1. Remove use-artifact related code
2. Call 'fetch-content' from the run-task script
3. Convert existing tasks on top of fetches (jsshell, python unittest)
4. Stop calling 'fetch-content' from toolchain setup tasks (as this now gets handled in run-task)

Depends on D2166.

Differential Revision: https://phabricator.services.mozilla.com/D2167
2018-07-26 17:13:39 +00:00
Sebastian Hengst f75eb9a8e3 Backed out changeset 61f33f8c8750 (bug 1468812) for Linux ccov mass failures (bug 1478211). a=backout 2018-07-25 18:05:09 +03:00
Andrew Halberstadt 0ee3e35612 Bug 1472177 - Run mozversioncontrol tests under python 3 r=gps
This also enables the py2 linter which will help maintain compatibility
with both 2 and 3.

Differential Revision: https://phabricator.services.mozilla.com/D1884
2018-07-24 21:21:46 +00:00
Andrew Halberstadt 1d2a8f0a41 Bug 1468812 - [ci] Support MOZ_FETCHES and fetch-content in run-task r=gps
This removes the 'use-artifacts' mechanism in favour of fetches. There are a
few pieces here that need to land atomically:

1. Remove use-artifact related code
2. Call 'fetch-content' from the run-task script
3. Convert existing tasks on top of fetches (jsshell, python unittest)
4. Stop calling 'fetch-content' from toolchain setup tasks (as this now gets handled in run-task)

Depends on D2166.

Differential Revision: https://phabricator.services.mozilla.com/D2167
2018-07-24 13:11:25 +00:00
Bogdan Tara 8245a830c3 Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee 49625724f4 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-07-03 18:33:02 +00:00
Dave Hunt 7a12fcd7f5 Bug 1388016 - Run mozbase tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: LdmTHHrLZwq
2018-06-21 06:26:17 +01:00
Dave Hunt 4330f9287c Bug 1388016 - Run mozterm tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: CG4fHCQgfiu
2018-06-21 06:09:22 +01:00
Dave Hunt e4d5298a92 Bug 1388016 - Add support for specifying the Python version to use in TaskCluster; r=ahal
MozReview-Commit-ID: Mo6KWrzPU3
2018-06-21 06:07:01 +01:00
Andrew Halberstadt 53b01cfcf4 Bug 1461980 - [taskgraph] Use run-task's 'use-artifacts' key to setup artifacts in mochitest and reftest selftests, r=dustin
Instead of downloading the build artifacts (rather hackily) in moztest.fixtures, this now happens
directly in the taskgraph module via the run-task script.

For now extraction and setup happens in the task's command key. It might be a good idea to figure
out a syntax to tell run-task to do this extraction, e.g something like:

run:
    using-artifacts:
        build:
            target.tar.bz2:
                extract: true
                path: /home/worker/build
                name: firefox

But for now I wanted to avoid this extra complexity, so maybe it could be done in a follow-up.

MozReview-Commit-ID: KOhFFpFdP7Y
2018-05-18 08:22:36 -04:00
Andrew Halberstadt 5f240d3ef3 Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU
2018-04-19 16:12:26 -04:00
Bogdan Tara 368d2cab0c Backed out 4 changesets (bug 1451159) for linux build bustages CLOSED TREE
Backed out changeset 72926ae685af (bug 1451159)
Backed out changeset f90a99682382 (bug 1451159)
Backed out changeset 3914937893de (bug 1451159)
Backed out changeset 79931e4a2bfb (bug 1451159)
2018-05-04 00:25:56 +03:00
Andrew Halberstadt 9abecc2372 Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU
2018-04-19 16:12:26 -04:00
Rob Wood 468f00c152 Bug 1454466 - Move raptor in-tree; r=ahal
MozReview-Commit-ID: AkqbROfvmbu
2018-04-16 17:15:38 -04:00
Dave Hunt 5f56b803f1 Bug 1438250 - Make mozunit pip installable; r=ahal
MozReview-Commit-ID: BT4ciGT82bp
2018-03-29 14:18:00 +01:00
Andrew Halberstadt 8e584ffc44 Bug 1436802 - [lint] Add some tests for the flake8 linter integration r=andi
This essentially tests tools/lint/python/flake8.py. Though it also adds
a basic framework for testing all the other linters as well. Getting this
added now will allow others to collaborate on adding more tests without
needing to get to 100% coverage for all linters right off the bat.

All python tests under tools/lint/test will run as part of the 'ml' task
on Linux, and the build task on Windows (OSX coverage is currently missing
for python tests).

The flake8 linter currently has a bug where the 'exclude' argument is
ignored. This is why we need to also exclude 'tools/lint/test/files' in
topsrcdir/.flake8, even though it is already listed in the
'mach_commands.py'. Other linters shouldn't need to do this, the exclusion
in 'mach_commands.py' should be good enough. See bug 1277851 for more
details.

MozReview-Commit-ID: 9ho8C83eeuj
2018-03-22 17:24:15 -04:00
Andrew Halberstadt d8013f62f2 Bug 1413928 - [tryselect] Add python unittest for templates r=davehunt
This makes use of pytest's generation feature. To add a new
template test, just add a new entry containing the input and
expected output to the dict in test_templates.py

MozReview-Commit-ID: 4qMefYHMjAp
2017-11-21 10:11:00 -05:00
Andrew Halberstadt a046bcf69b Bug 1413928 - [ci] Refactor worker and platform out of python source test tasks r=jmaher
This is a minor cleanup of the python.yml source test tasks.

MozReview-Commit-ID: 6UanmbZHF8P
2018-01-15 16:02:05 -05:00