Граф коммитов

105 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 54820db49c bug 1540655: moztest: add test path resolution for Puppeteer tests; r=ahal
Makes it possible for mach to resolve test paths for Puppeteer,
so that individual tests can be run from the command line using
"./mach test", as such:

	% ./mach test remote/test/puppeteer/test/screenshot.spec.js

As the Puppeteer test suite is imported from upstream and we cannot
change this directory at will (i.e. to add test manifest files),
we take the same approach as for WPT and populate the manifest by
recursively walking the remote/test/puppeteer/test/**/*.spec.js file tree.

Differential Revision: https://phabricator.services.mozilla.com/D37013

--HG--
extra : moz-landing-system : lando
2019-08-16 12:58:21 +00:00
Ciure Andrei 8a1785a6cc Backed out 11 changesets (bug 1540655) for test_resolve.py perma failures CLOSED TREE
Backed out changeset 1a23d770d8a1 (bug 1540655)
Backed out changeset 641a7cb25298 (bug 1540655)
Backed out changeset 73236f81da44 (bug 1540655)
Backed out changeset 8d7bad30be46 (bug 1540655)
Backed out changeset bb012df3018b (bug 1540655)
Backed out changeset 8c67b494e207 (bug 1540655)
Backed out changeset c0a80d37576d (bug 1540655)
Backed out changeset 939ce2afcf0b (bug 1540655)
Backed out changeset 3b3a2a9fbc8b (bug 1540655)
Backed out changeset b96dede008ad (bug 1540655)
Backed out changeset 997d1568d944 (bug 1540655)
2019-08-14 18:53:36 +03:00
Andreas Tolfsen 5f375cf773 bug 1540655: moztest: add test path resolution for Puppeteer tests; r=ahal
Makes it possible for mach to resolve test paths for Puppeteer,
so that individual tests can be run from the command line using
"./mach test", as such:

	% ./mach test remote/test/puppeteer/test/screenshot.spec.js

As the Puppeteer test suite is imported from upstream and we cannot
change this directory at will (i.e. to add test manifest files),
we take the same approach as for WPT and populate the manifest by
recursively walking the remote/test/puppeteer/test/**/*.spec.js file tree.

Differential Revision: https://phabricator.services.mozilla.com/D37013

--HG--
extra : moz-landing-system : lando
2019-08-14 14:58:05 +00:00
Andrew Halberstadt 3336efcb3f Bug 1473498 - Fixing Py3 compatibility errors reachable from testing/mach_commands.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37762

--HG--
extra : moz-landing-system : lando
2019-07-16 01:21:55 +00:00
Alexandre Poirot d73b8a9739 Bug 1545147 - Run remote agent's mochitests in a distinct "remote" job. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D32028

--HG--
extra : moz-landing-system : lando
2019-06-17 13:57:03 +00:00
b4hand 09aeeca068 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-20 08:59:56 +00:00
Narcis Beleuzu 1aace747e3 Backed out changeset 0883716b330e (bug 1532607) for conflicting with the backout of Bug 1542963. a=backout
--HG--
extra : histedit_source : 7f0a46319ac36c899d3f57b1ee6efcedf443992c
2019-05-17 11:27:16 +03:00
b4hand 906a369fe2 Bug 1532607 - Add configuration to run telemetry tests directly; r=raphael,ahal
Differential Revision: https://phabricator.services.mozilla.com/D30663

--HG--
extra : moz-landing-system : lando
2019-05-16 14:40:13 +00:00
Sebastian Hengst a9f493f1cb Bug 1546459 - remove subsuite=clipboard from manifests: remove obsolete reference to mochitest clipboard in test causing mozbase test failure
--HG--
extra : rebase_source : 7937f393f3db43fbf094ce8b125d4c9460cfc7d8
2019-05-01 12:42:05 +02:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Andrew Halberstadt e108b019b8 Bug 1547983 - [mochitest] Fix running a single mochitest-plain-clipboard/gpu test locally, r=jmaher
This was a regression from bug 1546100.

Differential Revision: https://phabricator.services.mozilla.com/D29390

--HG--
extra : moz-landing-system : lando
2019-04-30 21:09:16 +00:00
Andrew Halberstadt 060e1d37f0 Bug 1546100 - [mochitest] Error out when running 'a11y' or 'chrome' with e10s, r=jmaher
Previously we would silently change the value of "e10s" from False to True.
This can cause confusion and lead people to falsely think mochitest-chrome/a11y
work with e10s (they do not).

Now we explicitly error out in this case. This might be slightly less
convenient for the developer (e.g they might need to re-run the command), but
the downside of needing to rerun a test command is less than the risk of
misunderstanding what is being tested.

Note: when running |mach test| or |mach mochitest| on a directory that contains
both chrome/a11y and another suite, we'll still do the right thing and
implicitly set "e10s=False".

Differential Revision: https://phabricator.services.mozilla.com/D28538

--HG--
extra : moz-landing-system : lando
2019-04-26 18:25:21 +00:00
Andrew Halberstadt 48648a7344 Bug 1523303 - Align mozharness suite names with the ones in 'moztest.resolve', r=gbrown
This officially makes 'moztest.resolve' the source of truth when it comes to
suite names. It aligns that file with the names used in both the
desktop_unittest and android_emulator_unittest scripts.

Differential Revision: https://phabricator.services.mozilla.com/D27555

--HG--
extra : moz-landing-system : lando
2019-04-22 22:32:34 +00:00
Andrew Halberstadt 6b482c7f2e Bug 1541527 - Remove "-e10s" from treeherder group symbols and task labels, r=jmaher,gbrown
Since e10s is the default configuration, we shouldn't explicitly mark things
with the "-e10s" suffix. Instead we should mark things that *don't* run with
'e10s. This patch removes '-e10s' from all treeherder group symbols and task
labels, adds the "-1proc" suffix to tasks that are non-e10s.

Differential Revision: https://phabricator.services.mozilla.com/D25958

--HG--
extra : moz-landing-system : lando
2019-04-15 18:18:33 +00:00
Mike Shal e28f6db31f Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-10 22:14:27 +00:00
Andreea Pavel a7f868ac25 Backed out changeset 95b3298fd2d4 (bug 1537574) for windows task timeouts a=backout
--HG--
rename : python/mozbuild/mozbuild/gen_test_backend.py => build/gen_test_backend.py
2019-04-08 22:23:03 +03:00
Mike Shal 96425af79a Bug 1537574 - Use mozbuild's backend-out-of-date logic for RecursiveMake; r=firefox-build-system-reviewers,chmanchester
If mozbuild parsing fails due to a missing file (eg: a file not existing
in UNIFIED_SOURCES), then no Makefiles are written out, but
config.status exists. This would cause mozbuild to think that configure
doesn't need to run, and rely on make to perform the backend-out-of-date
check in rebuild-backend.mk. Unfortunately since no Makefiles were
written, the make command fails immediately and no attempt is made to
re-create the backend. Note that this is only a problem if the first
mozbuild parsing from a clobber build fails, otherwise there is
typically a top-level Makefile from a previous build to call into (at
which point make can determine it is out-of-date, and re-invoke itself).

The fix is to have the RecursiveMake backend re-use the same logic that
was introduced into mozbuild for alternate backends, and remove
rebuild-backend.mk. This way, mozbuild can always determine if the
backend needs to be regenerated, even if the initial parsing failed.

Test code was also relying on rebuild-backend.mk to generate the
TestBackend, but moving backend_out_of_date() into MozbuildObject allows
this code to be shared.

Differential Revision: https://phabricator.services.mozilla.com/D26262

--HG--
rename : build/gen_test_backend.py => python/mozbuild/mozbuild/gen_test_backend.py
extra : moz-landing-system : lando
2019-04-08 16:37:56 +00:00
Andrew Halberstadt 574b9b89ea Bug 1523303 - [tryselect] Define 'mozharness_name' key in relevant TEST_SUITE definitions, r=gbrown
Some of these were working with the '<flavor>-<subsuite>' mechanism that was
previously being used, but better to be explicit wherever possible.

Depends on D25077

Differential Revision: https://phabricator.services.mozilla.com/D25078

--HG--
extra : moz-landing-system : lando
2019-03-27 18:42:48 +00:00
Andrew Halberstadt 649b8284ce Bug 1523303 - [moztest] Exclude mochitest-webgl tasks from the mochitest-plain regexes, r=gbrown
We should use filter functions instead of regexes here. Would be a lot more robust.

Depends on D25076

Differential Revision: https://phabricator.services.mozilla.com/D25077

--HG--
extra : moz-landing-system : lando
2019-03-27 18:39:39 +00:00
Andrew Halberstadt 4bd2c3936b Bug 1523303 - [moztest] Split mochitest-gpu/mochitest-clipboard suite definitions into distinct flavors, r=gbrown
Depends on D25015

Differential Revision: https://phabricator.services.mozilla.com/D25076

--HG--
extra : moz-landing-system : lando
2019-03-27 20:05:25 +00:00
Rob Wu 0e858ea76c Bug 1498636 - Separate "include" variables from manifest defaults r=ahal
Test manifests may be included by multiple other manifests, optionally
with additional variables below the `[include:...]` section header.
These additional variables are specific to the manifest that contained
the "include" section, and should not inadvertently be shared with other
manifests that also happen to include this manifest.

To achieve that, store the defaults for included manifests in a (path to
parent manifest, path to included manifest) tuple instead of just the
included manifest.

Differential Revision: https://phabricator.services.mozilla.com/D18086

--HG--
extra : moz-landing-system : lando
2019-02-07 15:10:25 +00:00
Csoregi Natalia 20b9fad77e Backed out changeset 4fcae0e31524 (bug 1498636) for multiple browser-chrome failures e.g browser_ext_browserAction_popup_resize.js. CLOSED TREE 2019-02-04 15:27:06 +02:00
Rob Wu 54d525e007 Bug 1498636 - Separate "include" variables from manifest defaults r=ahal
Test manifests may be included by multiple other manifests, optionally
with additional variables below the `[include:...]` section header.
These additional variables are specific to the manifest that contained
the "include" section, and should not inadvertently be shared with other
manifests that also happen to include this manifest.

To achieve that, store the defaults for included manifests in a (path to
parent manifest, path to included manifest) tuple instead of just the
included manifest.

Differential Revision: https://phabricator.services.mozilla.com/D18086

--HG--
extra : moz-landing-system : lando
2019-02-04 12:09:54 +00:00
Narcis Beleuzu 52eeb30676 Backed out changeset 8040640ee1cd (bug 1515245) for mozbase failures 2018-12-31 03:19:29 +02:00
Wes Kocher fba1da92d1 Bug 1515245 - Make sure windows paths are supported for wpt via generic 'mach test' r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D15497

--HG--
extra : moz-landing-system : lando
2018-12-30 23:42:06 +00:00
Narcis Beleuzu 9f5727ff2a Backed out changeset 1923d02bb66d (bug 1515245) for build bustages. CLOSED TREE 2018-12-30 22:21:31 +02:00
Wes Kocher 13023dcd09 Bug 1515245 - Make sure windows paths are supported for wpt via generic 'mach test' r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D15497

--HG--
extra : moz-landing-system : lando
2018-12-30 19:19:19 +00:00
Andrew Halberstadt fea1d97f08 Bug 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D14901

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:12 +00:00
Andrew Halberstadt ce87b08ac4 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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:20:16 +00:00
Marco Castelluccio 65ca4461a5 Bug 1489100 - Specify tests per suite in MOZHARNESS_TEST_PATHS. r=ahal
--HG--
extra : rebase_source : 09d05ca38ad25ce6178172e607ce0207525ea484
2018-11-15 17:54:13 +01:00
Marco Castelluccio 70b7e86a2b Bug 1507767 - Add task_regex for crashtest. r=ahal
--HG--
extra : rebase_source : 0813092c2c665f25600a839fff5091efbdb260dc
extra : source : c6507666343929310b54cbe3ccf5c27b9a453782
2018-11-16 14:26:27 +01:00
Marco Castelluccio deae482814 Bug 1480141 - Add task_regex for Marionette. r=ahal
--HG--
extra : rebase_source : 7a16868ef97624d36b6fed0e608acc97592f9603
extra : source : 936e7792e7557d02becaa2932be2c1f0dbb0df26
2018-11-16 17:27:28 +01:00
Ciure Andrei 7a12d4d6e9 Backed out 2 changesets (bug 1480141, bug 1507767) for linting failre at resolve.py CLOSED TREE
Backed out changeset c65076663439 (bug 1507767)
Backed out changeset 936e7792e755 (bug 1480141)
2018-11-19 21:23:35 +02:00
Marco Castelluccio c2f6bd655c Bug 1507767 - Add task_regex for crashtest. r=ahal
--HG--
extra : rebase_source : d8e4f1b54234b85abcfe6a9b739045155ad8e2e4
2018-11-16 14:26:27 +01:00
Marco Castelluccio fc2dda0c5f Bug 1480141 - Add task_regex for Marionette. r=ahal
--HG--
extra : rebase_source : 6121b6373b8594fe0d3b56d3bdf844f488f1bdde
2018-11-16 17:27:28 +01:00
Andreea Pavel e3299fd2db 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 b03e2aa337 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

--HG--
extra : moz-landing-system : lando
2018-11-15 00:49:45 +00:00
James Graham c32b272c7a Bug 1496452 - Don't log wpt manifest update when resolving tests r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D7732

--HG--
extra : moz-landing-system : lando
2018-10-05 16:46:52 +00:00
James Graham 8df230bb58 Bug 1495372 - Unify wpt manifest download and update, r=ato
The previous code split a lot of logic between the update and download
parts, and exposed two different mach commands. In order to simplify
things it's better to have a single entry point for manifest download
and update, and ensure that's called consistently.

Differential Revision: https://phabricator.services.mozilla.com/D7497
2018-10-04 14:19:38 +01:00
Andrew Halberstadt 9e9fc55acc Bug 1470266 - [moztest.resolve] Make task regexes more resilient to change, r=jmaher
These regexes are used for things like determining which tasks to run given a
"path" int |mach try|. Previously, we used patterns like:

mochitest-chrome-(?:e10s)?(?:-1)?$

This would match both e10s and non-e10s versions of a task with either no
chunks, or only selecting chunk 1. But we keep adding other configurations, e.g
-gpu, -no-accel, -sw, etc.  Each time we create a new possibility we need to
remember to update these task regexes (or else lose test coverage when using
paths with |mach try|).

Instead of individually listing every possibility, let's use a pattern like
this:

mochitest-chrome($|.*(-1|[^0-9])$)

This also selects tasks that are either chunk 1 or don't have any chunks.  But
it allows for arbitrary strings in-between. This regex doesn't need to be
updated when we add configurations like -sw.

Depends on D7119

Differential Revision: https://phabricator.services.mozilla.com/D7120

--HG--
extra : moz-landing-system : lando
2018-09-28 07:15:36 +00:00
Andrew Halberstadt aebcf45519 Bug 1470266 - [moztest.resolve] Create a unittest for the task regexes, r=jmaher
I almost forgot to update the regexes in moztest.resolve when creating the -sw
variant of task. This adds a test to make sure we don't forget more things in
the future.

Differential Revision: https://phabricator.services.mozilla.com/D7119

--HG--
extra : moz-landing-system : lando
2018-09-28 06:59:39 +00:00
James Graham caad927e35 Bug 1493674 - Fix up test resolver with out of tree manifest r=ahal
mach try fuzzy has some stronger requirements compared to mach test.

Depends on D6673

Differential Revision: https://phabricator.services.mozilla.com/D6674

--HG--
extra : moz-landing-system : lando
2018-09-25 09:40:56 +00:00
Ahilya Sinha 8f5e322404 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

Differential Revision: https://phabricator.services.mozilla.com/D5312

--HG--
extra : moz-landing-system : lando
2018-09-20 12:07:58 +00:00
shindli d8f561f92f Backed out changeset dd80de19f142 (bug 1473915) for mb failures in testing/mozbase/moztest/tests/test_resolve.py CLOSED TREE 2018-09-19 18:13:48 +03:00
Ahilya Sinha 67be437f68 Bug 1473915 - Set up infra so we can move the wpt-manifest out of tree r=gps
Changes the wpt manifest path to the topobjdir instead so it can be moved out of tree.
Other changes so that the manifest download and update, and |mach wpt| and |mach test <wpt-test>| work with the new path.
The manifest is also downloaded and updated when creating the tests-archive to ensure that it exists when we run tests on TC.

MozReview-Commit-ID: Fp6UsKJjhTU

Differential Revision: https://phabricator.services.mozilla.com/D5312

--HG--
extra : moz-landing-system : lando
2018-09-19 06:57:50 +00:00
Chris AtLee 182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Andrew Halberstadt 578b5805ba Bug 1478050 - [moztest] Clean up broken symlinks when setting up test_harness_root r=gbrown
It's unclear how this situation can actually happen, but it has caused a couple of
intermittents.

Differential Revision: https://phabricator.services.mozilla.com/D2355

--HG--
extra : moz-landing-system : lando
2018-07-25 19:05:50 +00:00
Bogdan Tara 6eafe1c00b Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee 8745339529 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-07-03 18:33:02 +00:00
Jeff Gilbert 000829776c Bug 1471112 - Split mochitest-gl into mochitest-webgl[1,2]-[core,ext] - r=gbrown
Also include webgl2-deqp, which we would like to run eventually, but not yet.

MozReview-Commit-ID: CY4hYCI95ws

--HG--
extra : rebase_source : 9973df0f905bb65d2e8b8c66a6a57e8869e527c1
2018-06-25 20:23:33 -07:00