Commit Graph
25 Commits
Author SHA1 Message Date
Andrew Halberstadt 722f7fbbfe Bug 1391019 - Replace the py(3) task with py-compat lint task, r=gps
MozReview-Commit-ID: ABtq9dnPo9T
2017-08-31 10:12:30 -04:00
Dustin J. Mitchell 19d5d18e9c Bug 1390968: python-3 compatibility for taskcluster/**/*.py; r=Alex_Gaynor,gps
MozReview-Commit-ID: Hyfn2PlXvhd
2017-08-28 21:53:04 +00:00
Dustin J. Mitchell 2bc34bde4c Bug 1390968: add a py(3) job; r=gps
MozReview-Commit-ID: 1BkOEvPKjSD
2017-08-28 20:55:55 +00:00
Wander Lairson Costa 6b7f9ef0d1 Bug 1338651 part 1: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: 554IPMRWgzK
2017-08-28 08:44:51 -03:00
Gregory Szorc 320d77b0f0 Bug 1392700 - Use Mercurial 4.3 in mozharness tests; r=aki
We use Mercurial 4.3.1 pretty much everywhere in CI now.
Mozharness should be testing with it as well.

MozReview-Commit-ID: HT2rocEvdIe
2017-08-22 10:14:32 -07:00
Andrew Halberstadt 94863298d0 Bug 1385311 - Make sure AddressSanitizer errors turn the task orange, r=jmaher
MozReview-Commit-ID: EvLGeaLVotV
2017-07-28 09:35:17 -04:00
Andrew Halberstadt 1fa6d38726 Bug 1380338 - Convert taskgraph unit tests to the |mach python-test| framework, r=dustin
These tests can now be run with:
./mach python-test taskcluster/taskgraph

or:
./mach python-test taskcluster

They can now run in parallel by passing in -j.

MozReview-Commit-ID: JXeZV8B04Sf
2017-07-12 10:47:14 -04:00
Sebastian Hengst dcede17763 Backed out changeset 54e4545b0fe0 (bug 1380338) for breaking spidermonkey pkg due to failing to process taskgraph/test/python.ini. r=backout 2017-07-12 19:18:46 +02:00
Andrew Halberstadt 98b4a9d6fe Bug 1380338 - Convert taskgraph unit tests to the |mach python-test| framework, r=dustin
These tests can now be run with:
./mach python-test taskcluster/taskgraph

or:
./mach python-test taskcluster

They can now run in parallel by passing in -j.

MozReview-Commit-ID: JXeZV8B04Sf
2017-07-12 10:47:14 -04:00
Andrew Halberstadt 4d25102741 Bug 1372263 - Add additional mochitest selftests for crashes, assertions and leaks, r=jmaher
This also starts running the selftests on linux debug builds, since that's the only place that we
can test assertions and leaks.

MozReview-Commit-ID: JTdTLOLWn5r
2017-06-22 16:37:11 -04:00
Wes Kocher 87809bff97 Backed out changeset f8a62747c51c (bug 1338651) for valgrind issues a=backout 2017-06-30 14:45:26 -07:00
Wander Lairson Costa 484b2f6d33 Bug 1338651: Change docker image home dir to /build. r=dustin,mshal a=hopefullyavoidingmergebustagelater
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: zehcGJrUQX
2017-06-29 15:45:01 -07:00
Andrew Halberstadt bbfd7e2e11 Bug 1370928 - Move mozharness unittests to linux64/opt platform and rename py(mh), r=jlund
MozReview-Commit-ID: 5SGAztLTvWW
2017-06-07 11:38:53 -04:00
Gregory Szorc 48ab10020f Bug 1372721 - Remove run-on-projects from source-test tasks; r=dustin
The default value for run-on-projects is "all." Many of the tasks
changed in this commit were defining "run-on-projects" to
integration+release, which is essentially all (notably missing "try"). I
can't think of a good reason to not schedule these lint tasks on all
repos by default. So just do that.

MozReview-Commit-ID: EowUGNzC7K3
2017-06-13 14:25:23 -07:00
Andrew Halberstadt 451c75a978 Bug 1048446 - [taskcluster] Add a 'mochitest selftest' task that depends on a build, r=dustin
These are integration tests for testing the mochitest framework itself.

MozReview-Commit-ID: Jqyhbj7nC6z
2017-05-31 13:52:29 -04:00
Dustin J. Mitchell f3f59ca1c7 Bug 1359976: base worker payload generation on worker-type; r=wcosta r=aki
To date we have variously specified both worker-type and worker-implementation,
often manually coordinated. We also embedded a few awkward assumptions such as
that the native engine only runs on OS X.

But a worker type has one and only one implementation, and that implementation
is stable over time (as changing it would require simultaneous landings on all
trees).

Instead, this change makes worker-type the primary configuration, and derives
both a worker implementation (defining the payload format) and worker OS
(determining what to include in the payload) from that value. The derivation
occurs when deciding how to implement a particular job, where the run_using
functions are distinguished by worker implementation.

The two-part logic to determine how and where to run a test task based on its
platform is combined into a single transform, `set_worker_type`.

This contains some other related changes:
 - MOZ_AUTOMATION is set in specific jobs, rather than everywhere docker-worker
   is used
 - the URL to test packages is factored out into a shared function
 - docker-worker test defaults are applied in `mozharness_test.py`
 - the WORKER_TYPE array in `task.py`, formerly mixing two types of keys, is
   split
 - the 'invalid' workerType is assigned an 'invalid' implementation
 - all tasks that do not use job descriptions but use docker-worker, etc. have
   `worker.os` added

Tested to not produce a substantially different taskgraph for a regular push, a
try push, or a nightly cron.

MozReview-Commit-ID: LDHrmrpBo7I
2017-05-08 22:53:50 +00:00
Swapnesh Kumar Sahoo b129a1f821 Bug 1302773 - Install tox in docker image in MozReview; r=dustin
MozReview-Commit-ID: 3jiVsZOrvW9
2017-05-13 02:31:37 +05:30
Gregory Szorc d5a53c35e8 Bug 1330837 - Use Mercurial 4.1 in mozharness tests; r=aki
Automation is now largely using Mercurial 4.1 with some lagging
components still on 3.9 and a very small sliver of random parts
still on 3.7.3. Let's update the mozharness tests to match what
automation is using.

FWIW, the Mercurial tests still pass on 3.9.

MozReview-Commit-ID: BgZVDcx29mf
2017-04-11 14:26:29 -07:00
Dustin J. Mitchell 7a65a88247 Bug 1351012: replace b2gtest with gecko-t-linux-xlarge; r=garndt
b2gtest uses *.xlarge instances, so it seems a reasonable substitution.

MozReview-Commit-ID: Ev6tnNpx13c
2017-03-27 20:18:38 +00:00
Maja Frydrychowicz 628921a075 Bug 1347483 - blessings package should not be downloaded during mach virtualenv setup; r=mshal
This fixes a regression introduced in Bug 1335873, which changes the mozbase
packages.txt to call mozlog's setup.py. Calling setup.py registers the
pytest_mozlog plugin for marionette-harness tests.

Instead, we can register the pytest-mozlog plugin via command-line arguments
to pytest, which are set in pytest.ini for the marionette-harness tests.
As a result, we can revert the mozbase packages.txt to not refer to mozlog's
setup.py

I'm leaving the pytest entry-point in mozlog's setup.py so that external
consumers don't have to register the pytest_mozlog plugin manually.

MozReview-Commit-ID: I5wNq5H1x3X
2017-03-22 14:26:18 -04:00
Dustin J. Mitchell 4e3b3f8b2f Bug 1337903: handle platforms for source-test distinctly; r=ahal
This clears up some confusion and undocumented behavior around platforms in
source-tests (and available to any job).

With this change, the attributes come out like this:

  "source-test-mozbase-linux64/opt": {
    "attributes": {
      "build_platform": "linux64",
      "build_type": "opt",
      "kind": "source-test",
      "run_on_projects": [
        "integration",
        "release"
      ]
    },

MozReview-Commit-ID: HN1Zi8YUf0
2017-03-03 23:32:39 +00:00
Andrew Halberstadt aac4585624 Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd
2017-02-15 16:38:45 -05:00
Sebastian Hengst 26ea5b9d14 Backed out changeset 3c0a7527608a (bug 1335873) 2017-03-01 17:35:06 +01:00
Andrew Halberstadt d08b8a2c05 Bug 1335873 - Convert marionette harness unittests to standard python unittests, r=maja_zf
This formats the marionette-harness python tests to be a regular |mach python-test| suite. Though
we add subsuite=marionette, this is just for automation purposes. The new preferred way to run the
marionette harness tests locally is:
./mach python-test testing/marionette

They will also run if running the full suite.

The mozbase packages.txt file modifies mozlog to use 'setup.py' instead of 'pth'. The reason for
this is that the marionette-harness tests use the pytest_mozlog pytest plugin for formatting
their results (converts pytest format into something resembling the standard tbpl logging format).
In order for this plugin to get picked up however, mozlog's setup.py file needs to be processed.

MozReview-Commit-ID: Ata99evHxbd
2017-02-15 16:38:45 -05:00
Andrew Halberstadt 87d2823d65 Bug 1336559 - Rename source-check kind to source-test, r=dustin
The name 'source-check' is a bit of a misnomer, because it already includes a bunch
of tasks that are proper unittests, not lints. Some of these unittests will soon
depend on a build task, which makes 'source-check' feel even more wrong.

They still have a lot in common with the lint tasks though, so it's probably not
worth splitting this into two separate kinds. Instead, let's just rename this kind
to 'source-test', which means, any task that tests stuff and is run from the source
directory (instead of a tests.zip). I think both lints and python-tests fall squarely
under this definition.

MozReview-Commit-ID: K0gZ5rVLyeD
2017-02-02 16:16:06 -05:00