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

148 Коммитов

Автор SHA1 Сообщение Дата
Edwin Takahashi d70822c675 Bug 1608837 - change the name attribute of web-platform-test test object to use test.id from the manifest r=ahal
Changes:

Use the value from `test.id` instead of `test.path_parts[-1]` for the test object attribute `name`.

In effect, this will change the value as follows:

`about-blank-cannot-host.html` -> `/portals/about-blank-cannot-host.html`

Differential Revision: https://phabricator.services.mozilla.com/D73141
2020-04-30 17:08:29 +00:00
Edwin Takahashi ac3143d26d Bug 1633782 - disable manifestupdate logger so it does not pollute taskgraph generation output r=ahal
Changes:

The patch at D70727 is now triggering the resolving of web-platform-test suites when `cram(try)` was being run.

It appears the easiest way to ensure green runs for `cram(try)` is to simply suppress the log output from `manifestupdate`. It can be argued that those log outputs were not providing any useful information for taskgraph generation.

Differential Revision: https://phabricator.services.mozilla.com/D73152
2020-04-30 13:11:50 +00:00
Edwin Takahashi 9804646f41 Bug 1608837 - add tests from web-platform-tests manifests into list of supported tests r=ahal
This change will permit the `TestResolver` to add web-platform-tests into the list of supported tests.

Changes:
  - add web-platform-test test objects to the list of supported tests.
  - adjust value of attributes name, manifest, manifest_relpath.

Differential Revision: https://phabricator.services.mozilla.com/D70727
2020-04-27 20:33:45 +00:00
Joel Maher 18ac0dd2f1 Bug 1632822 - create webrender list of crashtests to have focused tests on android phones. r=bc
create webrender list of crashtests to have focused tests on android phones

Differential Revision: https://phabricator.services.mozilla.com/D72570
2020-04-27 18:06:47 +00:00
Joel Maher f8875234b3 Bug 1621095 - add reftest-qr to run focused webrender reftests on android phones. r=bc
add reftest-qr to run focused webrender reftests on android phones.

Differential Revision: https://phabricator.services.mozilla.com/D72312
2020-04-24 18:54:51 +00:00
Bogdan Tara a5112d03db Backed out changeset 97280448a042 (bug 1621095) for test_ext_test.html failures CLOSED TREE 2020-04-24 17:09:37 +03:00
Joel Maher b9a6e9d31c Bug 1621095 - add reftest-qr to run focused webrender reftests on android phones. r=bc
add reftest-qr to run focused webrender reftests on android phones.

Differential Revision: https://phabricator.services.mozilla.com/D72312
2020-04-24 12:35:12 +00:00
Joel Maher 87cf0d2b49 Bug 1631534 - Fix moztest to support windows paths for running wpt tests locally. r=jgraham
moztest assumes os.path but that fails for windows to compare against inputs that use mozpath commands with a posix slash.

Differential Revision: https://phabricator.services.mozilla.com/D71619
2020-04-20 19:04:26 +00:00
Edwin Takahashi e35338238b Bug 1608837 - add build_flavor and subsuite information to web-platform-tests r=ahal
Changes:

  - add build_flavor attribute in order to support writeruntimes and resolve().
  - add subsuite attribute to web-platform-tests in resolve.py so that resolve() does not filter out test objects.

Differential Revision: https://phabricator.services.mozilla.com/D71086
2020-04-17 17:44:33 +00:00
Edwin Takahashi a853d06380 Bug 1608837 - fix incorrect names of reftest/crashtest variants of web-platform-tests r=ahal
The definition for reftest/crashtest variants of web-platform-tests in web-platform.yml has a trailing `s` which is technically incorrect.

This causes problems when querying ActiveData for the runtimes for these subsuites since the suite name recorded in ActiveData has the trailing s.

Changes:

  - remove the trailing `s` from the definitions

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

--HG--
extra : moz-landing-system : lando
2020-03-31 20:41:17 +00:00
Edwin Takahashi 6bd1266774 Bug 1603842 - separate mochitest-gpu tasks into mochitest-chrome-gpu and mochitest-plain-gpu r=ahal,gbrown
Changes:

Remove references to `mochitest-browser-chrome-gpu` as this suite does not exist.

In `test-sets.yml`, split existing `mochitest-gpu` task into `plain` and `chrome` variants.

In `mochitest.yml` split the existing `mochitest-gpu` task into `plain` and `chrome` variants with separate symbols on treeherder.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 13:36:28 +00:00
Andrew Halberstadt 31e8f2e640 Bug 1615333 - [taskgraph] Upload an artifact from the decision task mapping tests to manifests r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D62822

--HG--
extra : moz-landing-system : lando
2020-03-13 20:30:09 +00:00
Kartikaya Gupta 232e9231e5 Bug 1618353 - Rename the mochitest jobs to mochitest-plain. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D64733

--HG--
extra : moz-landing-system : lando
2020-03-02 15:23:13 +00:00
Jeff Gilbert dfde69a462 Bug 1585683 - Add mochitest-webgpu jobs, add subsuite = webgpu. r=jmaher,kvark
Differential Revision: https://phabricator.services.mozilla.com/D58892

--HG--
extra : moz-landing-system : lando
2020-01-07 22:42:07 +00:00
Bogdan Tara c0e1f5a876 Backed out changeset 33ccfb45bb3f (bug 1585683) on jgilbert's request 2020-01-07 23:21:45 +02:00
Jeff Gilbert 4d2067b9ca Bug 1585683 - Add mochitest-webgpu jobs, add subsuite = webgpu. r=jmaher,kvark
Differential Revision: https://phabricator.services.mozilla.com/D58892

--HG--
extra : moz-landing-system : lando
2020-01-07 20:58:37 +00:00
James Graham 512caca24e Bug 1605381 - Schedule wpt crashtests in CI, r=ahal
This is a new test type identified by --test-type=crashtest

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

--HG--
extra : moz-landing-system : lando
2020-01-02 17:13:54 +00:00
Andrew Halberstadt b9e9d2e942 Bug 1603844 - Remove ability to 'install-to-subdir' from test objects, r=firefox-build-system-reviewers,rstewart
There was only a single use of 'install-to-subdir' in all our manifests (which
was removed in the previous commit). All the comments around it suggest that it
was a giant hack. Removing it cleans up a lot of complexity and saves me the
trouble of needing to support it in the new sourcedir based TestResolver.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 16:48:00 +00:00
Andrew Halberstadt 9e97c79054 Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 21:19:45 +00:00
Mihai Alexandru Michis 3f8e4cc2e1 Backed out 3 changesets (bug 1600314) for causing bc and dt failures regarding manifest filters. CLOSED TREE
Backed out changeset 4c4e74df38bd (bug 1600314)
Backed out changeset 3c4063b93ce7 (bug 1600314)
Backed out changeset d28d71c964c7 (bug 1600314)
2019-12-02 16:44:35 +02:00
Andrew Halberstadt c66002dc20 Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 16:16:09 +00:00
Edwin Takahashi 58c1a14caa Bug 1428718 - make moztest syntax python3 compatible r=gbrown,mozbase
Changes:

Replace `<list>.items()` calls with `six.iteritems()`.

Remove `try/except` handling of `unittest` import as we have standardized on python2.7 in CI.

Use `six` to handle metaclass changes while python2/3 intercompatibility is required.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 21:12:18 +00:00
Andrew Halberstadt 61fd53eabe Bug 1583364 - Create a 'build_flavor' key mapping 'moztest.resolve.TEST_SUITES' to their build flavor, r=gbrown
Build flavors are defined in 'python/mozbuild/mozbuild/testing.py'.

This change is needed by D52729 but it's also a good way to tell which suites
are integrated into the TestManifestBackend in the build system. So I'm landing
it here instead.

Depends on D53030

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

--HG--
extra : moz-landing-system : lando
2019-11-27 13:57:20 +00:00
Edwin Takahashi a202b3bcbf Bug 1428718 - remove moztest/moztest/output directory r=gbrown,mozbase
Changes:

These files do not appear to be referred to by anything as searched on searchfox.

I believe we are safe to remove them.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 19:43:17 +00:00
Cosmin Sabou 4b33ed7836 Backed out 6 changesets (bug 1583364) for making bug 1593402 near permafail.
Backed out changeset b22b8ed60c0c (bug 1583364)
Backed out changeset ed4d544f3db4 (bug 1583364)
Backed out changeset 6ce87f7cc6f8 (bug 1583364)
Backed out changeset fd9f3064ec85 (bug 1583364)
Backed out changeset 20a16191cee2 (bug 1583364)
Backed out changeset 38314b60638c (bug 1583364)

--HG--
rename : testing/runtimes/writeruntimes => testing/runtimes/writeruntimes.py
extra : rebase_source : c4de0a09adfe4a94e45827860da68328ef33da6b
2019-11-23 05:36:20 +02:00
Andrew Halberstadt a1d66863ae Bug 1583364 - Create a 'build_flavor' key mapping 'moztest.resolve.TEST_SUITES' to their build flavor, r=gbrown
Build flavors are defined in 'python/mozbuild/mozbuild/testing.py'.

This change is needed by D52729 but it's also a good way to tell which suites
are integrated into the TestManifestBackend in the build system. So I'm landing
it here instead.

Depends on D53030

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

--HG--
extra : moz-landing-system : lando
2019-11-19 00:30:21 +00:00
Andrew Halberstadt 418f34f9f7 Bug 1583353 - [moztest.resolve] Add ability to resolve manifest paths, r=gbrown
While not strictly necessary for this series, this patch allows:
./mach test path/to/manifest.ini

Which will be especially useful to have now that we are switching to running
tasks by manifest.

Depends on D52241

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

--HG--
rename : testing/mozbase/moztest/tests/data/srcdir/apple/mochitest.ini => testing/mozbase/moztest/tests/data/srcdir/apple/a11y.ini
extra : moz-landing-system : lando
2019-11-08 16:01:28 +00:00
Andrew Halberstadt 64c3a4f64d Bug 1583353 - [moztest.resolve] Add ability to resolve only tests *without* a subsuite, r=gbrown
This gives us the ability to retrieve all browser-chrome tests (no flavor) but
not devtools-chrome (have a flavor).

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

--HG--
extra : moz-landing-system : lando
2019-11-08 16:04:27 +00:00
Andrew Halberstadt 99f6a2c376 Bug 1583353 - [moztest.resolve] Implement a TestLoader that doesn't rely on the build system, r=gbrown
This loader uses 'reader.find_variables_from_ast' to parse all *_MANIFESTS variables from
moz.build files using the abstract syntax tree. This means it will find all such variables
regardless of the current buildconfig.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 17:13:20 +00:00
Andrew Halberstadt fc9cc8ceed Bug 1583353 - [moztest] Simplify the test data in test_resolve.py, r=egao
Test test data looks like it was pulled from a live all_tests.pkl file. There
are way more path components than necessary.

This simplifies the test paths so they are easy to manipulate/add/inspect. It
will also make it easier to craft a fake "sourcedir" to test the
TestManifestLoader in the next commit such that the data from both matches.

I decided to use a fruit theme for directories because:

1. Using real directories will pollute grep/searchfox/etc queries with junk.
2. Using a 'dirA', 'dirB', 'dirC' scheme is hard to read.
3. Why not?

This change does not functionally modify what is being tested.

Depends on D51832

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

--HG--
extra : moz-landing-system : lando
2019-11-05 19:37:33 +00:00
Andrew Halberstadt 241303e38f Bug 1583353 - [moztest] Use a fixture to generate the test data in test_resolve.py, r=egao
I'm making this refactor now because a future commit is going to completely re-write the
test data (so that it matches the data that a future TestManifestLoader is going to use).

With this method, updating the data will be a lot less tedious.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 20:13:35 +00:00
Andrew Halberstadt a7bb490dc3 Bug 1583353 - [moztest] Convert test_resolve.py to the pytest format, r=egao
Depends on D51174

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

--HG--
extra : moz-landing-system : lando
2019-10-31 14:43:56 +00:00
Andrew Halberstadt 930fe5fab6 Bug 1591512 - [moztest.resolve] Fix bug where loaded wpt tests were being overwritten r=automatedtester
Differential Revision: https://phabricator.services.mozilla.com/D50649

--HG--
extra : moz-landing-system : lando
2019-10-25 19:41:50 +00:00
Andrew Halberstadt 2a03d935f5 Bug 1590680 - [moztest.resolve] Fix edge case where puppeteer/wpt manifest data is requested before the main tests, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D50207

--HG--
extra : moz-landing-system : lando
2019-10-23 14:09:52 +00:00
Andrew Halberstadt e9369fc3d9 Bug 1583353 - [moztest.resolve] Move everything from TestMetadata into the TestResolver class (except the load_tests function) r=gbrown
Previously there was a somewhat strange setup where we had both TestResolver
and TestMetadata classes. Both had 'resolve_tests' function and the separation
of concerns between the two were not clear.

With this change, all of the logic that is related to manipulating and
resolving the loaded tests has been moved to the TestResolver class. Also, the
TestMetadata class has been renamed to TestLoader, and it is solely responsible
for loading the metadata (from the build backend).

Future commits will add other types of TestLoaders.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 14:31:50 +00:00
Andrew Halberstadt d7fb00cbc4 Bug 1583353 - [moztest.resolve] Move test_rewrites to a class property r=gbrown
A minor cleanup. Re-write paths will now automatically be joined to
self.topobjdir.

Depends on D49766

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:22:05 +00:00
Andrew Halberstadt 48488f8138 Bug 1583353 - [moztest.resolve] Use MozbuildObject.mozbuild_reader to resolve outgoing files r=gbrown
Similar to the vcs change, the MozbuildObject already has a reader attribute
available. So we can re-use that instead of creating our own.

Depends on D49765

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:26:08 +00:00
Andrew Halberstadt 79bb28fefb Bug 1583353 - [moztest.resolve] Move all mozbuild backend logic into the TestMetadata class r=gbrown
Encapsulates all the logic around generating and loading the build backend
metadata on the TestMetadata class. Previously the TestResolver would trigger
the generation if necessary, and TestMetadata would load it. Now both
generation and loading happens in TestMetadata.load_tests.

This change also adds some convenience properties to make it easier to query
the loaded data.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 21:36:08 +00:00
Andrew Halberstadt ca37f985b6 Bug 1583353 - [moztest.resolve] Create an 'is_puppeteer_loaded' flag r=gbrown
This prevents us from adding the puppeteer tests over and over again. It
follows the wpt example.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:24:06 +00:00
Andrew Halberstadt fb84f5763d Bug 1583353 - [moztest.resolve] Use 'MozbuildObject.repository' in the TestResolver class r=gbrown
Since TestResolver is a subclass of MozbuildObject, there's no need to create
separate repository object. It already has one.

Depends on D49761

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

--HG--
extra : moz-landing-system : lando
2019-10-21 14:20:10 +00:00
Andrew Halberstadt d59b14c3fa Bug 1583353 - [moztest.resolve] Remove unused 'tests_with_flavor' function from metadata class r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D49761

--HG--
extra : moz-landing-system : lando
2019-10-21 14:17:25 +00:00
Henrik Skupin 3886e9c12c Bug 1585274 - "mach test" for Puppeteer unit test has to default to non-headless mode. r=mozbase,ahal
Depends on D48823

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

--HG--
extra : moz-landing-system : lando
2019-10-10 12:53:42 +00:00
Andrew Halberstadt e1337a729d Bug 1567642 - [mozbase] Fix flake8 under py3 lint errors r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45243

--HG--
extra : moz-landing-system : lando
2019-09-09 23:55:32 +00:00
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