Commit Graph
101 Commits
Author SHA1 Message Date
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
Johan Lorenzo f3e8ab6cfe Bug 1337825 - Schedule l10n repacks for fennec with specified locale revisions using an intree changesets file r=aki
MozReview-Commit-ID: 1DEIjFYAx74
2017-02-17 15:57:11 +01:00
Carsten "Tomcat" Book 9ec4955bc9 Backed out changeset c7c9f7712163 (bug 1337825) for flake8 failure 2017-02-17 15:52:10 +01:00
Johan Lorenzo afb10b4dc6 Bug 1337825 - Schedule l10n repacks for fennec with specified locale revisions using an intree changesets file r=aki
MozReview-Commit-ID: 1DEIjFYAx74
2017-02-14 15:04:54 +01:00
Hammad Akhtar a127a30ff3 Bug 1325701 - test transform should produce a job description, not a task description; r=dustin
MozReview-Commit-ID: CrSSWI0aBCZ
2017-01-18 16:55:53 +05:30
Jonas Finnemann Jensen c8c1bd5578 Bug 1332506 - Treeherder actions defined in-tree. r=dustin
Framework for defining actions in-tree that can be displayed
and triggered from Treeherder.

MozReview-Commit-ID: 3rvwgy2i4xu
2017-01-31 15:34:05 -08:00
Jonas Finnemann Jensen 07d9521109 Bug 1332506 - Spec for in-tree treeherder actions. r=dustin
Add specification for actions.json to be used as contract
between in-tree logic and Treeherder. Such that Treeherder
can provide actions that callback into the in-tree logic.

MozReview-Commit-ID: JM1ebU8zNK5
2017-01-31 15:33:14 -08:00
Mihai Tabara 70a7e8b965 Bug 1305139 - schedule checksums related tasks in nightly graph. r=aki,Callek
MozReview-Commit-ID: 659wCXm3ob5
2017-02-07 22:44:12 -05:00
Dustin J. Mitchell 8a1376158a Bug 1334167: use run-on-projects to parallel task graph generation; r=Callek
MozReview-Commit-ID: EQMuh4hN9Ya
2017-01-31 19:49:18 +00:00
Wander Lairson Costa 97113977c9 Bug 1333167: Add extra try options to taskcluster. r=dustin a=jmaher
We add the following command line options to Taskcluster try syntax:

--spsProfile - enable profile mode.
--rebuild-talos <N> - retrigger talos tests N times.
--setenv <VAR>=<val> - add extra environments variables.
--tag <TAG> - run tests only the tag TAG.
--no-retry - doesn't retry failed jobs.

We have a chicken-egg problem, as we first generate the full task graph
and then parse the try message. But the graph generation step needs to
know the try message to process the aforementioned options. The
solution is to parse the message before graph generation and then
pass the command line options to the transforms. Then, each transform
can look at the option that interests it and process it accordingly.

The message parse function is configured in kind.yml, which gives some
flexibility for future implementations of alternative syntaxes.

MozReview-Commit-ID: GPFdi0FD6Vn
2017-02-02 09:34:43 -02:00
Sebastian Hengst 6ceaf1e6a8 Backed out changeset d6648b8f36ed (bug 1333167) for breaking gecko decision task. r=backout on a CLOSED TREE 2017-01-31 21:47:45 +01:00
Wander Lairson Costa 97963da965 Bug 1333167: Add extra try options to taskcluster. r=dustin a=jmaher
We add the following command line options to Taskcluster try syntax:

--spsProfile - enable profile mode.
--rebuild-talos <N> - retrigger talos tests N times.
--setenv <VAR>=<val> - add extra environments variables.
--tag <TAG> - run tests only the tag TAG.
--no-retry - doesn't retry failed jobs.

We have a chicken-egg problem, as we first generate the full task graph
and then parse the try message. But the graph generation step needs to
know the try message to process the aforementioned options. The
solution is to parse the message before graph generation and then
pass the command line options to the transforms. Then, each transform
can look at the option that interests it and process it accordingly.

The message parse function is configured in kind.yml, which gives some
flexibility for future implementations of alternative syntaxes.

MozReview-Commit-ID: DMwRjuV2vpf
2017-01-31 18:16:07 -02:00
Sebastian Hengst 7cb5f66fd9 Backed out changeset 50cf83b69046 (bug 1333167) for breaking gecko decision task. r=backout 2017-01-31 18:25:50 +01:00
Wander Lairson Costa 064a62b081 Bug 1333167: Add extra try options to taskcluster. r=dustin a=jmaher
We add the following command line options to Taskcluster try syntax:

--spsProfile: enable profile mode.
--rebuild-talos <N>: retrigger talos tests N times.
--setenv <VAR>=<val>: add extra environments variables.
--tag <TAG>: run tests only the tag TAG.
--no-retry: doesn't retry failed jobs.

We have a chicken-egg problem, as we first generate the full task graph
and then parse the try message. But the graph generation step needs to
know the try message to process the aforementioned options. The
solution is to parse the message before graph generation and then
pass the command line options to the transforms. Then, each transform
can look at the option that interests it and process it accordingly.

The message parse function is configured in kind.yml, which gives some
flexibility for future implementations of alternative syntaxes.

MozReview-Commit-ID: EQlE6q5E8z7
2017-01-31 15:03:10 -02:00
Dustin J. Mitchell 0064836f97 Bug 1252948: support for periodic taskgraphs; r=Callek,jonasfj,kmoir
This adds `.cron.yml` and a new mach command to interpret it.  While
functionality is limited to nightlies right now, there is room to expand to
more diverse periodic tasks.  Let your imagination run wild!

MozReview-Commit-ID: KxQkaUbsjQs
2017-01-18 19:45:53 +00:00
Justin Wood 55a2272fd5 Bug 1330668 - Schedule balrog submission tasks. r=dustin a=me
MozReview-Commit-ID: ASBDESDps8G
2017-01-12 21:01:54 -05:00
Justin Wood 8c22562045 Bug 1330668 - Schedule beetmover tasks. r=dustin
ToDo: attribute this cset to changes on date.

MozReview-Commit-ID: 7gl3aLGNWvP
2017-01-12 17:45:36 -05:00
Justin Wood fb074289cc Bug 1322041 - Sign nightly l10n jobs. r=dustin
Involved work which landed on the date project branch with:
* Bug 1312000, by [email protected] (https://hg.mozilla.org/projects/date/rev/79a2f66ff5c0)
* Bug 1312500, by [email protected] (https://hg.mozilla.org/projects/date/rev/6ae07fa4b011)
* Bug 1312585, by [email protected] (https://hg.mozilla.org/projects/date/rev/7cf267b61752)
* Bug 1313662, by [email protected] (https://hg.mozilla.org/projects/date/rev/92f531d1cd77)
* Bug 1314008, by [email protected] (https://hg.mozilla.org/projects/date/rev/bbc7608106c0)
* Bug 1314847, by [email protected] (https://hg.mozilla.org/projects/date/rev/4a1231655fbb)
* Bug 1316214, by [email protected] (https://hg.mozilla.org/projects/date/rev/edae37481cab,
                                    https://hg.mozilla.org/projects/date/rev/62bd3371e954,
                                    https://hg.mozilla.org/projects/date/rev/2cc558343951)
* Bug 1319189, by [email protected] (https://hg.mozilla.org/projects/date/rev/4c33f8ccecf5)


MozReview-Commit-ID: 3hadIi757jn
2016-12-13 11:43:47 -05:00
Justin Wood 57c425aefe Bug 1322041 - Nightly l10n support, and docs. r=dustin
Involved work which landed on the date project branch with:

* No Bug, by [email protected] (https://hg.mozilla.org/projects/date/rev/e7af20515b1c,
                               https://hg.mozilla.org/projects/date/rev/d7f0f1c6d564,
                               https://hg.mozilla.org/projects/date/rev/db530d7a4672)
* Bug 1171738, by [email protected] (https://hg.mozilla.org/projects/date/rev/a906f6997731,
                                    https://hg.mozilla.org/projects/date/rev/ada87315d4c0,
                                    https://hg.mozilla.org/projects/date/rev/fbee52f145e9,
                                    https://hg.mozilla.org/projects/date/rev/2939b68e59fc)
* Bug 1312000, by [email protected] (https://hg.mozilla.org/projects/date/rev/79a2f66ff5c0)
* Bug 1312396, by [email protected] (https://hg.mozilla.org/projects/date/rev/dc06c58a5663)
* Bug 1312585, by [email protected] (https://hg.mozilla.org/projects/date/rev/7cf267b61752)
* Bug 1316527, by [email protected] (https://hg.mozilla.org/projects/date/rev/cc2d9365d9b9)
* Bug 1318068, by [email protected] (https://hg.mozilla.org/projects/date/rev/7cb11cb76a09)
* Bug 1326093, by [email protected] (https://hg.mozilla.org/projects/date/rev/f64a03d94ac7)

MozReview-Commit-ID: Fhom5OcIWru
2017-01-06 09:13:41 -05:00
Justin Wood e8b093b677 Bug 1322041 - Add Docs for L10n and add locales_file parsing. r=dustin
Involved work which landed on the date project branch with:
* Bug 1312585, by [email protected] (https://hg.mozilla.org/projects/date/rev/dc1926812404,
                                    https://hg.mozilla.org/projects/date/rev/7cf267b61752)
* Bug 1171738, by [email protected] (https://hg.mozilla.org/projects/date/rev/a906f6997731)
* Bug 1314008, by [email protected] (https://hg.mozilla.org/projects/date/rev/bbc7608106c0,
                                    https://hg.mozilla.org/projects/date/rev/a80373508881)

MozReview-Commit-ID: 3MVTRgzLYc0
2016-12-13 11:06:48 -05:00
Justin Wood 6af8cc4942 Bug 1322041 - Add signing support for all nightlies. r=dustin
Involved work which landed on the date project branch with:
* Bug 1277579, by [email protected] (https://hg.mozilla.org/projects/date/rev/afd3823c852b,
                                     https://hg.mozilla.org/projects/date/rev/345f83708453,
                                     https://hg.mozilla.org/projects/date/rev/8a3ed233af86,
                                     https://hg.mozilla.org/projects/date/rev/0d737cf8e743,
                                     https://hg.mozilla.org/projects/date/rev/e42b3d606002,
                                     https://hg.mozilla.org/projects/date/rev/c3a160ac642b)
* Bug 1305096, by [email protected] (https://hg.mozilla.org/projects/date/rev/2287a2568038)
* Bug 1277579, by [email protected] (https://hg.mozilla.org/projects/date/rev/79ceb7fa0589)
* Bug 1306166, by [email protected] (https://hg.mozilla.org/projects/date/rev/d3fd1966095d,
                                     https://hg.mozilla.org/projects/date/rev/2f52061c02e6,
                                     https://hg.mozilla.org/projects/date/rev/a9f52549a3c3,
                                     https://hg.mozilla.org/projects/date/rev/f69efa90945a)
* Bug 1314847, by [email protected] (https://hg.mozilla.org/projects/date/rev/4a1231655fbb,
                                    https://hg.mozilla.org/projects/date/rev/3cd3a0d32f43)
* Bug 1312000, by [email protected] (https://hg.mozilla.org/projects/date/rev/79a2f66ff5c0)
* Bug 1312500, by [email protected] (https://hg.mozilla.org/projects/date/rev/6ae07fa4b011)
* Bug 1316214, by [email protected] (https://hg.mozilla.org/projects/date/rev/edae37481cab,
                                    https://hg.mozilla.org/projects/date/rev/62bd3371e954)
* Bug 1319189, by [email protected] (https://hg.mozilla.org/projects/date/rev/4c33f8ccecf5)
* Bug 1319546, by [email protected] (https://hg.mozilla.org/projects/date/rev/70a23d243d2c)
* No Bug, by [email protected] (https://hg.mozilla.org/projects/date/rev/5d8ba3560ae9)
* No Bug, by [email protected] (https://hg.mozilla.org/projects/date/rev/37d9733a7174)

MozReview-Commit-ID: K1uOY4HOWPX
2016-12-21 11:21:06 -05:00
Dustin J. Mitchell a9378c6eb6 Bug 1326547: require that regexps in by-* match entire string; r=Callek
MozReview-Commit-ID: GxVAGHtCrzf
2017-01-03 18:43:48 -05:00
Dustin J. Mitchell cf95e9c69c Bug 1326547: replace get_keyed_by with resolve_keyed_by; r=Callek
MozReview-Commit-ID: FS1nbVyykXV
2017-01-05 13:42:14 -05:00
Dustin J. Mitchell 82fc3c5fa5 Bug 1302192: combine the android-test and desktop-test kinds into the test kind; r=wcosta r=jmaher
This makes heavy use of by-test-platform to distinguish the various platforms, since Android
mozharness invocations differ substantially from desktop.

MozReview-Commit-ID: GsZFij6VPTf
2016-12-23 22:12:17 +00:00
Dustin J. Mitchell 78748b3a4b Bug 1316877: allow 'test-sets' in test-platforms.yml; r=jmaher
This adds a simple layer of indirection to avoid needless repetition of long
lists of tests.

MozReview-Commit-ID: 4hHyoNMwwGy
2016-12-04 15:38:14 -05:00
Wes Kocher bd2cccd1c5 Merge inbound to central, a=merge
MozReview-Commit-ID: I54WGOLqHI2
2016-12-22 18:37:07 -08:00
Hammad Akhtar 5791a3a165 Bug 1325429 - fix formatting in transforms.rst; r=dustin
MozReview-Commit-ID: 5C85qk9Asqp
2016-12-23 00:27:40 +05:30
Sebastian Hengst a30693c808 Backed out changeset fe7303de56be (bug 1302763) for failing webdriver tests on Linux x64 debug (geckodriver.manifest fetch failed). r=backout 2016-12-19 21:15:07 +01:00
CuriousLearner 5ad707be1b Bug 1302763 - Move docker images out of testing/docker into taskcluster/docker; r=CuriousLearner
MozReview-Commit-ID: 7v1uCDB5qoN
2016-10-20 18:25:34 +05:30
Hammad Akhtar b7f4533590 Bug 1302800 - Verify taskgraph implementations against documentation; r=dustin
MozReview-Commit-ID: J8djr4ifvzm
2016-11-26 01:22:46 +05:30
Andrew Halberstadt 96cea74a5f Bug 1318438 - [taskcluster] "job" tasks should have ability to run on multiple platforms, r=dustin
This adds an optional "platforms" key to the job description. It can be used in conjunction with
"by-platform" like so:

platforms:
    - linux
    - windows
worker-type:
    by-platform:
        linux: ...
        windows: ...
worker:
    by-platform:
        linux: ...
        windows: ...

MozReview-Commit-ID: JwL1NAR4bnY
2016-11-18 15:07:56 -05:00
Hammad Akhtar 9d68fe27aa Bug 1302765 - Allow ./mach taskgraph .. --parameters P to take a URL. URL building mechanism fixed; r=dustin
MozReview-Commit-ID: 7reezQj9Bds
2016-11-24 01:15:33 +05:30
Gregory Szorc 5d56d07832 Bug 1318200 - Introduce task graph filtering; r=dustin
Previously, we ran a single "target task" function to mutate the full
task graph into a subset based on input parameters (try syntax,
repository being built for, etc). This concept is useful. But
the implementation was limiting because we could only have a single
"target tasks" function.

This commit introduces the concept of "filters." They conceptually
do the same thing as "target tasks methods" but you can run more than
1 of them.

Filters are simply functions that examine an input graph+parameters
and emit nodes that should be retained. Filters, like target tasks
methods, are defined via decorated functions in a module.

TaskGraphGenerator has been converted to use filters. The list of
defined filters can be defined in the parameters dict passed into
TaskGraphGenerator. A default filter list is provided in decision.py.

The intent is to eventually convert target tasks to filters. Until
that happens, we always run the registered target tasks method via
a filter proxy function.

No new tests have been added because we don't yet have any
functionality relying explicitly on filters. Tests will be added in
a subsequent commit once we add a new filter.

While I was here, I also snuck in some logging on the size of the
graphs.

MozReview-Commit-ID: ERn2hIYbMRp
2016-11-17 15:53:30 -08:00
Dustin J. Mitchell 45eb10a983 Bug 1296842: make target-task related parameters a fixed set; r=jmaher
The `from_parameters` method was never used, and let do confusion over the role
of these parameters.  Now there are only two, and they are always required.

MozReview-Commit-ID: AbPqijXucu5
2016-11-07 19:13:34 +00:00
Dustin J. Mitchell 579055d782 Bug 1296842: document triggered_by property; r=jmaher
MozReview-Commit-ID: 8sAsWbCpUft
2016-11-07 15:26:44 +00:00
Dustin J. Mitchell 6696cddd8b Bug 1296842: better parameter documentation to help readers; r=jmaher
MozReview-Commit-ID: N9EHe2s6PS
2016-11-07 15:02:13 +00:00
Jordan Lund 9b9318450f Bug 1314795 - introduce build_date to params that defaults to pushdate, r=dustin
MozReview-Commit-ID: AviPKtw3BiY
2016-11-02 19:23:27 -07:00
CuriousLearner f27a0ad144 Bug 1302763 - Move docker images out of testing/docker into taskcluster/docker; r=dustin r=CuriousLearner
MozReview-Commit-ID: 7v1uCDB5qoN
2016-10-20 18:25:34 +05:30
Gregory Szorc d8c36bdacc Bug 1312475 - Add a version parameter to checkouts cache; r=dustin
ff5a4bab0813 (bug 1311791) and 332a08725ed0 (bug 1292071) changed
behavior of the VCS caches. First, the store cache / path was merged
into the checkouts cache. Then the path of the Mercurial shared store
was moved within the cache to always be rooted at the cache root.

Caches are shared across tasks. Tasks can execute on any revision
configured to use a cache. So, when interacting with caches, it is
important to consider how every revision configured to use that
cache will interact with it.

Take this scenario for example.

A worker executes a task where the hg shared store is rooted at
/home/worker/checkouts/src/hg-shared. Then the worker executes a
task where the hg shared store is rooted at
/home/worker/checkouts/hg-store. `hg robustcheckout` will see the
checkout from the first task. But then it sees that the store
it is pointing to is at an unexpected location
(checkouts/src/hg-shared instead of checkouts/hg-store). `hg
robustcheckout` aggressively normalizes state to ensure
consistency. So when it sees this mismatch, it blows away the
checkout and creates one from checkouts/hg-store to replace it.
That's a lot of overhead. And this cycle can repeat itself if
the right combination of revisions run on the worker!

A solution to this problem is to create a clean break from caches
when cache semantics change. In TaskCluster, that means using a
different cache.

This commit introduces a "version" component to the checkouts
cache name. By doing so, we create a clean break from all previous
caches, ensuring all revisions this point forward won't encounter
an hg shared store at an unexpected location. This also paves the
road for easily making additional clean breaks in the future.

MozReview-Commit-ID: JT8yuULKpch
2016-10-24 09:58:01 -07:00
Gregory Szorc f277d5ebce Bug 1306641 - Remove TaskCluster automation related to b2g; r=dustin
This definitely isn't all of it. But I got the obvious chunks. Still
need to clean up mozharness.

MozReview-Commit-ID: JTZBydP3i2r
2016-09-30 09:21:09 -07:00
Gregory Szorc af5fb4af80 Bug 1292071 - Put Mercurial store on same cache as checkout; r=dustin
We were seeing issues with the Mercurial working directory not being
pristine. While I can't reproduce this, I have a hunch it is due to
mixing and matching stores and checkouts in TaskCluster. For example,
if a worker supports running concurrent tasks and 2 tasks arrive at
the same time, the caches for the store and checkout may look like:

  (store0, checkout0)
  (store1, checkout1)

However, the next task may get:

  (store1, checkout0)

This may confuse Mercurial.

This commit eliminates the "hg-shared" cache and places the shared
stores as a sibling directory of the checkout.

MozReview-Commit-ID: 8SzyS6wWf9C
2016-10-18 09:46:55 -07:00
Dustin J. Mitchell 75bcd003cf Bug 1302776: document caches; r=gps
MozReview-Commit-ID: Dy9aXGo5O4u
2016-10-20 14:44:26 +00:00
Greg Mierzwinski 9bb8846dd6 Bug 1305242 - Disable linux64-jsdcov and linux64-ccov from running on try with '-u all'. r=dustin
This patch prevents tests which have the 'run_on_projects' attribute assigned to an empty set from running when the try message contains '-p all' and '-u all' together. It also makes the 'match_test' function a little more readable and updates the 'attributes.rst' document to reflect the changes that were made.

MozReview-Commit-ID: IMk0cmSza8U
2016-09-24 14:31:25 -04:00
Dustin J. Mitchell 4f33c816c7 Bug 1307571: more detail on loading tasks and transforms; r=kmoir
In particular, this makes a stronger push for readers to consult the source
files, which honestly have all the good stuff in them anyway.

MozReview-Commit-ID: 9dGWQw59h1L
2016-10-04 21:06:17 +00:00
Dustin J. Mitchell 049006765a Bug 1307571: dissuade use of templates; r=Callek
MozReview-Commit-ID: C3PZItmMJcs
2016-10-04 21:05:43 +00:00
Dustin J. Mitchell 9b07124e41 Bug 1307571: move reference docs to a sub-TOC; r=mshal
MozReview-Commit-ID: DUeMZ11TZc0
2016-10-04 19:59:05 +00:00
Dustin J. Mitchell 7ed3c4223f Bug 1307571: fix lost action-tasks docs; r=martianwars
MozReview-Commit-ID: HDs8J3EmmVB
2016-10-04 19:48:31 +00:00