Commit Graph
61 Commits
Author SHA1 Message Date
Andrew Halberstadt c12a2cb5ee Bug 1401309 - [mozlint] Remove vcs.py and use mozversioncontrol instead, r=gps
This also migrates the vcs.py test to mozversioncontrol and adds a new task for
it.

MozReview-Commit-ID: 9jTRkjNupVA
2017-09-25 16:30:27 -04:00
Andrew Halberstadt 48abdb0e44 Bug 1399155 - Add reftest selftests for crashes, assertions, asan and leaks, r=jmaher
This installs specialpowers in the test runs so we can trigger crashes/assertions.

MozReview-Commit-ID: 8878OcHv8hU
2017-09-22 09:48:33 -04:00
Andrew Halberstadt 8dcdb28a59 Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17
2017-08-23 09:33:18 -04:00
Andrew Halberstadt ec257dcef2 Bug 1392390 - Create a reftest selftest harness, r=jmaher
This just adds two basic tests, one for a passing test and another for a
failing one. In mochitest, we use privileged APIs to also tests crashes,
assertions, asan and leaks. But these APIs aren't available to reftests
so I'm not sure how we can test these things.

I figure it's not worth holding the framework up on this though, I'll file
a follow-up to figure out something to do for that.

MozReview-Commit-ID: 59TSbsugT5T
2017-09-11 16:08:01 -04:00
Andrew Halberstadt d1b9ebc88f Bug 1392390 - Refactor common code out of mochitest selftests and into a new moztest.selftest module, r=jmaher
This includes code for downloading a Firefox binary, downloading + setting up a tests.zip and
running output through mozharness' output parsers. This is all stuff that will also be required
for the reftest selftests.

I couldn't think of a better location to put this stuff, suggestions welcome.

MozReview-Commit-ID: 59TSbsugT5T
2017-09-11 16:06:06 -04:00
Andrew Halberstadt ada64d6ce5 Bug 1395717 - Use filename source-test tasks are defined in as part of their label, r=dustin
This creates a new "job-from" field that contains the relative filename the job was defined
in. The filename is relative to 'config.path'. If the task came from the 'jobs' key defined
in kind.yml, this field will be set to 'kind.yml'.

MozReview-Commit-ID: 9e1tEb6XuZT
2017-08-31 16:38:08 -04:00
Gregory Szorc 8808487bf8 Bug 1395752 - Define and use sparse profile for Sphinx docs; r=dustin
The Sphinx documentation only needs access to a relatively small number
of files in the repo in order to be generated. It is a good candidate
for using sparse profiles.

This commit defines and uses a "sphinx-docs" sparse profile containing
only the files relevant to Sphinx documentation generation.

There are some quirks with the profile:

* All moz.build files are included. This bloats the profile
  by >1000 files. Worse, it realizes directories that have no business
  being realized. This clutters the checkout and makes it harder to
  find things. There is a moz.build reader that knows how to retrive
  file data from Mercurial. We could use that. This feels like follow-up
  fodder.

* All mach_commands.py files are included. `mach help` says you can do
  things that you aren't able to do in the sparse checkout. There isn't
  a good way to add all *.py files while excluding mach_commands.py
  files. We /could/ do it with regular expressions. But those are slow.
  Let's leave it as is for now and come up with a better solution later.

MozReview-Commit-ID: 7yiqGGE1nAh
2017-08-22 22:25:38 -07:00
Andrew Halberstadt 86d97eb0d9 Bug 1391019 - Fix typo in py-compat linter's 'when.files-changed', r=bustage
MozReview-Commit-ID: CZhWCyTr9Qv
2017-09-01 08:55:47 -04:00
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 42620b1f15 Bug 1390693 - Upload docs to project and version specific locations; r=dustin
Previously, we uploaded the main Firefox tree docs to /.

In reality, there are multiple Sphinx projects in the repo. In
addition, it is sometimes desirable to access docs for an older
version of Firefox.

In this commit, we add support for specifying the S3 key prefix
for uploads. Then we change the upload code to upload to multiple
locations:

* <project>/latest (always)
* <project>/<version> (if a version is defined in the Sphinx config)
* / (for the main Sphinx docs project)

For the Firefox docs, ``version`` corresponds to a sanitized value from
``milestone.txt``. Currently, it resolves to ``57.0``.

While we're here, we add support for declaring an alternate project
name in the Sphinx conf.py file. If ``moz_project_name`` is defined,
we use that as the project name. For Firefox, we set it to ``main``.
This means our paths (local and uploaded) are now ``main`` instead of
``Mozilla_Source_Tree_Docs``. That's much more pleasant.

MozReview-Commit-ID: 8Gl6l2m6uU4
2017-08-24 11:12:21 -07:00
Gregory Szorc 5d9da31a1f Bug 1390693 - Fold mach doc-upload into mach doc; r=dustin
We now have an --upload flag to control whether upload is performed.

We don't inline it because we want to maintain a "firewall" between
regular docs and all the extra packages and imports needed for S3.

MozReview-Commit-ID: DVKhsS545gp
2017-08-24 11:31:54 -07:00
Gregory Szorc f0bff41c54 Bug 1390693 - Generate docs archive within mach command; r=dustin
By using mozpack, we get deterministic archives. This also makes the
task command simpler.

MozReview-Commit-ID: EPI7tuGQuso
2017-08-24 10:37:53 -07:00
Gregory Szorc f61358bf7e Bug 1390693 - Run documentation generation everywhere; r=dustin
We want to verify that Sphinx docs work on all repos. It is only
uploading that should be limited.

MozReview-Commit-ID: An6EZ7jpaWh
2017-08-24 11:58:28 -07:00
Wes Kocher 086def78e5 Backed out 2 changesets (bug 1392787) for build bustage a=backout CLOSED TREE
Backed out changeset 2ce8a387fa80 (bug 1392787)
Backed out changeset bf5a6ff97a8f (bug 1392787)

MozReview-Commit-ID: 2cA5bdnNDIe
2017-08-24 14:00:42 -07:00
Andrew Halberstadt e072454073 Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17
2017-08-23 09:33:18 -04:00
Andrew Halberstadt 5974a0f9bd Bug 1391675 - [tryselect] Add a test for 'mach try fuzzy' and associated task, r=gps
Basic test to get the ground work laid out.

MozReview-Commit-ID: LmjA3Kq7xKN
2017-08-21 11:52:28 -04: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
Justin Wood 0997b0f066 Bug 1387862 - Add yaml lint to the taskgraph. r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: GN5pOJCXvnz
2017-08-06 13:52:24 -04:00
Sebastian Hengst bdb82c7f1c Backed out changeset 155c5392cac2 (bug 1387862) 2017-08-10 14:29:32 +02:00
Justin Wood 96992a0be6 Bug 1387862 - Add yaml lint to the taskgraph. r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: GN5pOJCXvnz
2017-08-06 13:52:24 -04:00
Ryan VanderMeulen 3a75eb1f77 Backed out 7 changesets (bug 1387862) for yaml linting failures.
Backed out changeset 63f87f6db7d6 (bug 1387862)
Backed out changeset a85b7e7d9f24 (bug 1387862)
Backed out changeset 3713ea9672e8 (bug 1387862)
Backed out changeset 22c1094e387f (bug 1387862)
Backed out changeset e0bfb35b0eec (bug 1387862)
Backed out changeset 5bb5dc7655ec (bug 1387862)
Backed out changeset cc4c01794114 (bug 1387862)
2017-08-09 21:31:30 -04:00
Justin Wood 74cd789085 Bug 1387862 - Add yaml lint to the taskgraph. r=ahal,dustin
We should have CI Lint YAML files in the tree.

MozReview-Commit-ID: GN5pOJCXvnz
2017-08-06 13:52:24 -04:00
Dustin J. Mitchell 34258f751c Bug 1382729: allow uploading docs at all levels; r=gps
The upload now uses MOZ_SCM_LEVEL to determine which secret and bucket to
upload to, so it can potentially run at any level.

This also modifies task descriptions to allow {level} in scopes, and updates
try syntax to allow `-j doc-upload` even though run-on-tasks says it doesn't
run on try by default.

MozReview-Commit-ID: Dm27TGPa7IM
2017-08-08 19:13:05 +00:00
Wes Kocher cef6c8cb3c Merge autoland to central, a=merge
MozReview-Commit-ID: 3z14qa3d9bt
2017-08-03 17:01:15 -07:00
Gregory Szorc 4e637b8239 Bug 1382729 - Call proper mach command to uploads docs; r=dustin, a=bustage 2017-08-03 11:05:37 -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
Dustin J. Mitchell 228f6911be Bug 1382729: Upload documentation to S3 automatically; r=gps
This uses credentials stored in the Taskcluster secret service. The task should
only run on mozilla-central to avoid confusion between branches.

MozReview-Commit-ID: 31XfTg0sCht
2017-07-28 18:32:04 +00:00
Dustin J. Mitchell 5e51991c2c Backed out changeset 19f92c04608c for breaking try pushes a=bustage
MozReview-Commit-ID: FowbO5T9aUl
2017-07-31 16:04:01 +00:00
Dustin J. Mitchell 69cd6fca06 Bug 1382729: Upload documentation to S3 automatically; r=gps
This uses credentials stored in the Taskcluster secret service. The task should
only run on mozilla-central to avoid confusion between branches.

MozReview-Commit-ID: 31XfTg0sCht
2017-07-28 18:32:04 +00:00
Mark Banner c78482b11a Bug 1380956 - Build the node_modules directory for ESLint on the docker image for the worker, rather than downloading it each time. r=ahal
MozReview-Commit-ID: B8QowXzWRlU
2017-07-14 11:19:07 +01: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
Mark Banner 42e2269ec9 Bug 1379119 - Add a builder to run the unit tests for eslint-plugin-mozilla. r=ahal
MozReview-Commit-ID: 5QsxUsvJz8O
2017-07-10 15:27:00 +01: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
Dustin J. Mitchell edcf391095 Bug 1340564: specify the target name explicitly for dependent tasks; r=gps
MozReview-Commit-ID: D7TeFDmXeVr
2017-04-25 22:30:09 +00:00
Carsten "Tomcat" Book ef8528e254 Backed out changeset 516721f50c1e (bug 1340564) 2017-05-12 15:59:28 +02:00
Dustin J. Mitchell d98c431744 Bug 1340564: specify the target name explicitly for dependent tasks; r=gps
MozReview-Commit-ID: D7TeFDmXeVr
2017-04-25 22:30:09 +00:00
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
Mark Banner c40b6e818c Bug 1305023 - Move ESLint's package.json and node_modules to the top level to improve editor integration. r=gps
Editors generally look for configurations at the top level of a project. For ESLint, they also look for the specific binary in node_modules before defaulting to the system binary. Whilst you can override the location, generally it doesn't work well when switching between projects.

The custom in-tree libraries make setup of a system ESLint more difficult as well.

Therefore to make it simple for developers to pick up the ESLint integrations with Editors, by moving the package.json and associated node_modules to the top-level directory.

MozReview-Commit-ID: 1pQpd7hTQ61
2017-03-22 12:27:00 +01:00