Commit Graph

108 Commits

Author SHA1 Message Date
Dave Hunt
696d9f1858 Bug 1388016 - Run mozbase tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: LdmTHHrLZwq

--HG--
extra : rebase_source : e7f21bb73ffc1a322a10eef21b705b14a2077144
2018-06-21 06:26:17 +01:00
Dave Hunt
94d7af14eb Bug 1388016 - Run mozterm tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: CG4fHCQgfiu

--HG--
extra : rebase_source : 49c2021e0697c16ba94be166162fdc998ba8a44d
2018-06-21 06:09:22 +01:00
Dave Hunt
831124838b Bug 1388016 - Add support for specifying the Python version to use in TaskCluster; r=ahal
MozReview-Commit-ID: Mo6KWrzPU3

--HG--
extra : rebase_source : 6debf2baf38ee525365e0958e2e25cc420ce5428
2018-06-21 06:07:01 +01:00
Joel Maher
778eece74f Bug 1469793 - Intermittent jsbench with file already existing. r=ahal
ensure we overwrite existing files if they exist while unzipping artifact

Differential Revision: https://phabricator.services.mozilla.com/D1728
2018-06-20 15:24:36 +00:00
Joel Maher
3732d000de Bug 1465360 - add asm.js-apps shell benchmark to jsshell-bench. r=ahal 2018-06-19 08:58:20 -04:00
Ahilya Sinha
82a797e13b Bug 1467332 - Change wpt-manifest upload format, r=jgraham
MozReview-Commit-ID: Ef5m6VotwgD

--HG--
extra : rebase_source : 6c9a7d24cc3c3ab9de05df490e225d4441ddb7a0
2018-06-07 03:49:36 +05:30
Andrew Halberstadt
cedce1ff81 Bug 1466660 - Remove use-artifact directory from run-task workers after task has finished r=jmaher
Right now artifacts from previous tasks are left lying around. We should clean these up
in case a task accidentally uses an artifact from the wrong dependency.

Ideally we'd cache these properly based on the taskId they came from, but that can be
follow-up fodder.

MozReview-Commit-ID: HUgvNlqyFav

--HG--
extra : rebase_source : fb9c6723598223619993c2695fb588ead3325edb
2018-06-04 16:36:28 -04:00
Andrew Halberstadt
9e81b12ebc Bug 1465181 - Use releng-hardware/gecko-t-linux-talos workerType for js-bench tasks, r=jmaher
This will get the js-bench tasks to run on physical hardware instead of AWS.


MozReview-Commit-ID: 44XavXAwxxn

--HG--
extra : rebase_source : ae1ba4c7f90b3a8526511a3f3c1dff913a334619
2018-05-29 16:01:04 -04:00
Joel Maher
e09ad9e15c Bug 1465336 - add six-speed to jsshell-bench framework. r=ahal 2018-05-30 09:40:00 -04:00
Andrew Halberstadt
b859ba2c68 Bug 1445975 - Add jsshell bench-ares6 task, r=jmaher
Create a task for running ares6.

MozReview-Commit-ID: AIwEjhZSiQd

--HG--
extra : rebase_source : f0980cdda61f5141517dfccadeb8dfbe7d49f024
2018-05-24 12:19:04 -04:00
Ahilya Sinha
1a37941ef3 Bug 1463730 - Changes to wpt manifest upload task, r=jgraham
MozReview-Commit-ID: J6Ywh2UsfHd

--HG--
extra : rebase_source : 6a898d48460a68110daf211973f8d7a134195cc4
2018-05-23 02:25:23 +05:30
Andrew Halberstadt
4296f8c8f5 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

--HG--
extra : rebase_source : dcea36661fa9c6442c76c850ccc67f8f6d924fda
2018-05-18 08:22:36 -04:00
Ahilya Sinha
6d14ffc303 Bug 1462613 - Added new task to upload wpt manifest, r=jgraham
MozReview-Commit-ID: K3D1o62cC3S

--HG--
extra : rebase_source : 8c91bf5dbd2923b0c0b969dbd66ecd64baf88bf1
2018-05-18 17:16:33 +05:30
Andrew Halberstadt
ee69aa133e 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

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 72a4a4b691e93c77479c7e70647b0ca373862c51
2018-04-19 16:12:26 -04:00
Bogdan Tara
b7924c2ed2 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)

--HG--
rename : testing/profiles/common/user.js => testing/profiles/prefs_general.js
2018-05-04 00:25:56 +03:00
Andrew Halberstadt
fd23fd839b 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

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 7599913e547533f2f57b597ad0f238c6cd391c82
2018-04-19 16:12:26 -04:00
Andrew Halberstadt
c52efbdc58 Bug 1410424 - [docs] Support live reloading with |mach doc| r=mshal
This changes the default to opening a livereload webserver after doc generation
(as opposed to opening the index file). Any changes to the specified path will
result in a rebuild and refresh of the browser.

For example, if you run:

    ./mach doc tools/lint

The linting docs will be built, served and opened in a browser. Modifying any
file under 'tools/lint/docs' will refresh the browser with your changes.

To disable this behaviour and simply open the index file, you can pass in
'--no-serve'. The '--no-open' flag will continue to work (both with http and
the file system).

One caveat to this patch is that when generating the root docs (by running
|mach doc|), we don't watch all possible doc paths (just the root one under
'tools/docs/'). This will probably be fixed in the follow-up bug 1454640.

MozReview-Commit-ID: FQecuePM0zZ

--HG--
extra : rebase_source : 3240402d7505e99a4f64dada309b1baec78306e1
2018-04-06 10:52:56 -04:00
Gregory Szorc
6783cc56fe Bug 1441170 - Increase max run time for file metadata test; r=mshal
It was intermittently timing out.

MozReview-Commit-ID: BCgvvYMhHqR

--HG--
extra : rebase_source : 4ca3eb019f6d1f511545366b4ec36e15d4b5f28b
2018-04-19 15:10:55 -07:00
Rob Wood
4af496d7f2 Bug 1454466 - Move raptor in-tree; r=ahal
MozReview-Commit-ID: AkqbROfvmbu

--HG--
extra : rebase_source : bf30030a333852d6d81c4278e91b1ac9fef237fe
2018-04-16 17:15:38 -04:00
Dave Hunt
057d540744 Bug 1438250 - Make mozunit pip installable; r=ahal
MozReview-Commit-ID: BT4ciGT82bp

--HG--
rename : config/mozunit.py => config/mozunit/mozunit/mozunit.py
extra : rebase_source : a68fa4f5dce77ccf7c55184c555bb37b3a876278
2018-03-29 14:18:00 +01:00
Andrew Halberstadt
d2e75d0ea8 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

--HG--
extra : rebase_source : 0adb01aa81c06f26cb891ae9f92a17f8f9fdf111
2018-03-22 17:24:15 -04:00
Tom Ritter
a5e3ca4de2 Bug 1444167 Add MinGW mozlint build job r=froydnj
MozReview-Commit-ID: Lo42O4xljwC

--HG--
extra : rebase_source : ad339f42b94f490a5122a2bf6c785ce450851084
2018-03-08 13:58:57 -06:00
Sebastian Hengst
3e8060263d Bug 1438521 - Disable Firefox source docs job for non-Trunk trees. r=gps
MozReview-Commit-ID: DH0cJpI87m0

--HG--
extra : rebase_source : 900f2e04678e35088b9671e7f4c88cb2b85b0864
2018-02-21 16:03:45 +01:00
Chris Peterson
c6373306f8 Bug 1436263 - Part 5: Add a mach lint for virtual function declarations with multiple specifiers. r=froydnj r=ahal
Virtual function declarations should specify only one of `virtual`, `final`, or `override`, as per the Mozilla C++ style guide:

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style

This lint warns about:

  virtual void Bad1() final
  void Bad2() final override
  void Bad3() override final

Caveats: This lint doesn't warn about `virtual void NotBad() override` at this time because there are 8000+ instances. It also doesn't warn about function declarations that span multiple lines because the regex can't match across line breaks.

MozReview-Commit-ID: LcBsOAKKgz7

--HG--
extra : rebase_source : 4da72ffac59acdc9796e3f540f24bb97af989cd0
2018-02-15 00:50:02 -08:00
Mark Banner
68fc105e54 Bug 1434396 - Promote eslint-plugin-mozilla (epm) tests to be tier 1. r=ahal
MozReview-Commit-ID: GqPUWEIodKz

--HG--
extra : rebase_source : 1c85d6c9c9542fcc284c0344fadcfab8606b59c8
2018-01-31 17:08:09 +00:00
Simon Fraser
5acab0f13e Bug 1432627 Add shellcheck linter to CI r=ahal
MozReview-Commit-ID: 2IYUsXunfab

--HG--
extra : rebase_source : 806ab4abfb1838a1b5eec279f5e93ce5c703685d
2018-01-29 15:27:04 +00:00
Margareta Eliza Balazs
acf50fbab3 Backed out changeset 85794e045326 (bug 1432627) for shell lint failure in /builds/worker/checkouts/gecko/taskcluster/docker/firefox-snap/runme.sh:50:95 on a CLOSED TREE 2018-01-29 19:09:55 +02:00
Simon Fraser
82f0264fa1 Bug 1432627 Add shellcheck linter to CI r=ahal
MozReview-Commit-ID: 2IYUsXunfab

--HG--
extra : rebase_source : a40376ffc66e4a35d30e7e02a6ec208b1f52b021
2018-01-29 15:27:04 +00:00
Andrew Halberstadt
532cd7c624 Bug 1433912 - [lint] Create a task for the codespell linter, r=sylvestre
MozReview-Commit-ID: 32KXjHl00fU

--HG--
extra : rebase_source : aff6a5e3621a6e5dda65d7b6168e8b1270102af3
2018-01-29 09:29:09 -05:00
Andrew Halberstadt
7d764294a7 Bug 1386857 - [ci] Remove the 'tc' treeherder group prefix from all tasks, r=dustin
There are now only a handful of buildbot jobs remaining and the concern over
outdated treeherder exclusion profiles has largely been resolved.

This does remove the tc() group from a substantial number of tasks which will
now show up as top level tasks, potentially adding clutter. In some cases, we
might want to re-add a new group (e.g group builds or compiled tests together).
However rather than try to predict the best group names for tasks I'm unfamiliar
with, I think it's best to land this as is. Then if things are looking too
cluttered at the root namespace, file follow-up bugs as needed.

MozReview-Commit-ID: 8SMwjDwAOzV

--HG--
extra : rebase_source : 2f6d89d11c139bdcd404e7537db799d0e36ee4c3
2018-01-12 15:49:58 -05:00
Dustin J. Mitchell
26d48b3202 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI

--HG--
extra : rebase_source : 8dd971e5c9b0eb5f47895664a4ea49442f303ecb
extra : source : 0881de9b2b5e36ec37cc866f1d4af109da57a919
2017-10-02 18:22:56 +00:00
Andrew Halberstadt
24922a65ba 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

--HG--
extra : rebase_source : ba3049885d1a2485048e1ff9913be43317559376
2017-11-21 10:11:00 -05:00
Andrew Halberstadt
f72de18701 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

--HG--
extra : rebase_source : e06d310af9ca05bfdab1bc1e3bd2bc6aa3035cb9
2018-01-15 16:02:05 -05:00
Noemi Erli
1c9bbfbebc Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE
Backed out changeset f53f8adcd578 (bug 1403519)
Backed out changeset 5b293bcd3fc7 (bug 1403519)
2018-01-17 07:23:40 +02:00
Dustin J. Mitchell
00f03c413e Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI

--HG--
extra : rebase_source : 8dd971e5c9b0eb5f47895664a4ea49442f303ecb
extra : source : 0881de9b2b5e36ec37cc866f1d4af109da57a919
2017-10-02 18:22:56 +00:00
Margareta Eliza Balazs
a331a849a4 Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE 2018-01-11 22:32:27 +02:00
Dustin J. Mitchell
522245f2f2 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI

--HG--
extra : rebase_source : 8dd971e5c9b0eb5f47895664a4ea49442f303ecb
extra : source : 0881de9b2b5e36ec37cc866f1d4af109da57a919
2017-10-02 18:22:56 +00:00
Andrew Halberstadt
0e697ce235 Bug 1422302 - Create python/mozterm for sharing terminal blessings across modules r=gps
This is a new module that will provide a place to store some common
abstractions around the 'blessings' module. The main entrypoint is:

    from mozterm import Terminal
    term = Terminal()

If blessings is available, this will return a blessings.Terminal()
object. If it isn't available, or something went wrong on import,
this will return a NullTerminal() object, which is a drop-in
replacement that does no formatting.

MozReview-Commit-ID: 6c63svm4tM5

--HG--
extra : rebase_source : 9ab221774d92a418d9b098d79bb2c88f75d937f8
2017-12-04 09:38:24 -05:00
Robert Helmer
42315c18f8 Bug 1389341 - add basic support for sphinx-js to mach doc r=gps
MozReview-Commit-ID: FIzWD8tnjYi

--HG--
extra : rebase_source : 655ea46cffefda77f0908924fdbbb8d17212654a
2017-09-14 13:17:09 -07:00
Steve Armand
f9ec1d54e7 Bug 1414824 - Enable stricter linting in taskcluster yaml files. r=Callek
MozReview-Commit-ID: AX1cDUkwrBh

--HG--
extra : rebase_source : 4e3d0f5e4b7d1b4d2196c431ae03bc2e9b95387b
2017-11-11 00:36:41 -05:00
Andrew Halberstadt
d92b629dc4 Bug 1408352 - Add 'always_target' to lint and python unittest tasks, r=dustin
The mochitest and reftest selftest tasks are excluded because they also
schedule several builds as dependencies which is likely going to be unexpected
behaviour.

MozReview-Commit-ID: 9eoVJ5qpAMO

--HG--
extra : rebase_source : 469521feff3ba42506ffb54bfe8f009bf9ab9da6
2017-10-30 09:43:52 -04:00
Gregory Szorc
1269329adb Bug 1413254 - Establish dedicated mach command for Bugzilla metadata validation; r=jmaher
Previously, the CI task invoked 2 mach commands and performed manual
gzip compressed. This was sub-optimal for a few reasons:

* Redundant moz.build evaluation made execution slower
* Potential for shell expansion to interfere with wildcards
* Made it harder to change exit code

By moving all logic into a mach command, we eliminate all the issues
around using shell.

Behavior of the new command and the CI task should be backwards
compatible.

MozReview-Commit-ID: HUFvLteKLOO

--HG--
extra : rebase_source : 85a49fc45eeaaac71dfb97fc22900a81ca9efa4b
2017-10-31 10:30:15 -07:00
Maja Frydrychowicz
1fe7490b20 Bug 1411430 - Support markdown in Sphinx docs; r=gps
MozReview-Commit-ID: IdRuC4AFarq

--HG--
extra : rebase_source : f0b6c72340920fad49ab06887cd25db436c82897
2017-10-23 09:59:31 -04:00
Gregory Szorc
1071013f9f Bug 1411784 - Run flake8 task when moz.configure files change; r=ahal
moz.configure files are covered by flake8. Earlier today, my push
in bug 1411784 didn't run flake8 and a flake8 failure was uncovered
by a subsequent push that touched a .py file.

MozReview-Commit-ID: HzL8wOQaqRC

--HG--
extra : rebase_source : 1091be0bab2f2a23cdbaaa3d6b52072693f5f356
2017-10-25 16:09:09 -07:00
Gregory Szorc
08c4128fcd Bug 1410969 - TaskCluster task for generating JSON files with Bugzilla metadata; r=ahal
We now have a "source" task that produces JSON files with per-file
Bugzilla components and a list of files missing a declared Bugzilla
component. gzip variations are also produced.

The files are published in the index so clients can query e.g.
gecko.v2.mozilla-central.latest.source.source-bugzilla-info/public/components.json
and get the latest metadata. This should help alleviate the need for
querying the moz.build evaluation API on hg.mozilla.org - or at least
facilitate bulk queries of the data from a static source.

MozReview-Commit-ID: 9fAoPSt4bxq

--HG--
extra : rebase_source : bad6912a5e2bf5f4791e97f0d0b2572d70007e9a
2017-10-23 11:18:04 -07:00
Andrew Halberstadt
bef1791925 Bug 1408511 - Use 'job-defaults' in source-test/python.yml and source-test/mozlint.yml, r=dustin
This is a minor cleanup of some of the source-test configs.

MozReview-Commit-ID: EssE4V4VoXx

--HG--
extra : rebase_source : 6d946aba6e8ff8eaa40965d529d28204f43ec7a4
2017-10-13 15:58:34 -04:00
Dustin J. Mitchell
43bb5cba13 Bug 1403342 - use try_job transform for source tests too; r=ahal
Just a minor refactor

MozReview-Commit-ID: 2YdOtO2sGEc

--HG--
extra : rebase_source : 04aa7cecf9de2e7bac01744f9c8b25805e77a013
2017-10-03 21:09:22 +00:00
Andrew Halberstadt
a73d388c79 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

--HG--
extra : rebase_source : 400f27498e00ea45234ad7c951770b098e916b8e
2017-09-25 16:30:27 -04:00
Andrew Halberstadt
ad6bd76281 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

--HG--
rename : testing/mochitest/tests/python/files/leaks.log => layout/tools/reftest/selftest/files/leaks.log
extra : rebase_source : cee417db30ff76364fa3212a65b2d537c97cc8bd
2017-09-22 09:48:33 -04:00
Andrew Halberstadt
1815a94c1d Bug 1392787 - Add a linter to prevent comment-disabling tests in manifestparser manifests, r=jmaher
MozReview-Commit-ID: LG47ASBMA17

--HG--
extra : rebase_source : 34d736370e1718b1b3f0ad1f4f08c768bc4b5ba3
2017-08-23 09:33:18 -04:00