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

179 Коммитов

Автор SHA1 Сообщение Дата
James Graham 30a1271c2d Bug 1644395 - Don't select print-reftests for testharness fuzzy jobs, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80702
2020-06-25 09:58:23 +00:00
Edwin Takahashi 507fa3db90 Bug 1647383 - chunk web-platform-tests-crashtest and web-platform-tests-wdspec in decision task r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80529
2020-06-24 18:23:39 +00:00
Mihai Alexandru Michis 5e50c08b10 Backed out changeset 47a06752bda8 (bug 1647383) as requested by jmaher. a=backout
DONTBUILD
2020-06-24 16:06:16 +03:00
Edwin Takahashi 0fc6588f5d Bug 1647383 - chunk web-platform-tests-crashtest and web-platform-tests-wdspec in decision task r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80529
2020-06-23 18:31:42 +00:00
James Graham 2ade9fa1fd Bug 1644395 - Add wpt print reftests to TC config, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D79082
2020-06-23 10:00:28 +00:00
Narcis Beleuzu a0c8ce672c Backed out 4 changesets (bug 1644395) for bc failures on browser_all_files_referenced.js . CLOSED TREE
Backed out changeset 582c1dd945ca (bug 1644395)
Backed out changeset 9dbba532a700 (bug 1644395)
Backed out changeset 59e998eb5e59 (bug 1644395)
Backed out changeset 035ddba4a4d9 (bug 1644395)
2020-06-23 00:56:49 +03:00
James Graham 5706e82bce Bug 1644395 - Add wpt print reftests to TC config, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D79082
2020-06-22 13:44:13 +00:00
James Graham 89be8b0d1e Bug 1646801 - Fix mach test with wpt, r=ahal
Don't require setting include as an empty list. Use the subsuite name if known.

Differential Revision: https://phabricator.services.mozilla.com/D80500
2020-06-22 18:17:00 +00:00
James Graham 4dedde15f9 Bug 1645057 - Fixup test expectations, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80217
2020-06-18 17:04:36 +00:00
James Graham 98ccd6be11 Bug 1645057 - Adjust task_regex so web-platform-tests only selects testharness, r=ahal
This should prevent unrelated tasks getting scheduled on try for
pushes with paths. The alternative would be to rename
web-platform-tests to web-platform-tests-testharness, but that seems
more likely to break other systems.

Differential Revision: https://phabricator.services.mozilla.com/D80079
2020-06-18 16:02:13 +00:00
Ricky Stewart ce17cf368b Bug 1645179 - Squash remaining dead code after removal of IMPACTED_TESTS r=ahal,froydnj
There is some remaining code in central originating from bug 1184405, which sought to associate source files with their "affected" test files. That ended up not panning out, and bug 1644228 removed a lot of that code, but left some remnants in the `Files` object which are still referenced in a couple different places. I'm deleting all of that code in `context.py` plus everything that references it for the following reasons:

1. Right now, `Files.{test_files,test_tags,test_flavors}` do get populated, but only ever with "default" values -- namely `moz.build` files that are above the files in question in the directory hierarchy. This is a heuristic that doesn't actually have anything to do with mapping source files to their corresponding test files, which is misleading.

2. Those attributes are accessed in two places. The first is in the `mach file-info dep-tests` command. This command isn't referenced anywhere else in tree and I don't have any evidence anyone ever uses it. Even if they do, I would claim that doing so is a mistake (because the results of the command aren't meaningful and are just populated by the "defaults" described above), and that person's workflow should be migrated to something else that *is* meaningful.

3. The second place where this metadata is accessed is in `testing/mozbase/moztest/moztest/resolve.py`; that method is invoked in `tools/tryselect/selectors/syntax.py`, but only if you pass `--detect-paths` to `mach try syntax`. This is [entirely broken](https://bugzilla.mozilla.org/show_bug.cgi?id=1614614), and even if we made an effort to fix it, it wouldn't do anything resembling what the documentation of `--detect-paths` suggests it would do (again, because the data isn't populated meaningfully). So I'm deleting the command line option entirely.

Differential Revision: https://phabricator.services.mozilla.com/D79711
2020-06-17 13:30:49 +00:00
Edwin Takahashi 99dacab80b Bug 1634554 - Part 0: TestResolver to use the path to web-platform-tests up to maximum depth of 3 r=ahal
Changes:
  - when generating the `groups` in TestResolver for web-platform-tests, use the paths to the test files up to a maximum depth of 3 by default.

Differential Revision: https://phabricator.services.mozilla.com/D79355
2020-06-15 19:31:54 +00:00
Bogdan Tara 30c59d36db Backed out 5 changesets (bug 1634554) for lint failure CLOSED TREE
Backed out changeset e8db70067dbf (bug 1634554)
Backed out changeset ae24c9902708 (bug 1634554)
Backed out changeset 177cc940d57f (bug 1634554)
Backed out changeset 3240acbd85b6 (bug 1634554)
Backed out changeset 71aa576ada8b (bug 1634554)
2020-06-15 22:25:12 +03:00
Edwin Takahashi 2c64566bab Bug 1634554 - Part 0: TestResolver to use the path to web-platform-tests up to maximum depth of 3 r=ahal
Changes:
  - when generating the `groups` in TestResolver for web-platform-tests, use the paths to the test files up to a maximum depth of 3 by default.

Differential Revision: https://phabricator.services.mozilla.com/D79355
2020-06-12 20:41:42 +00:00
Andrew Halberstadt c10f9d3fbf Bug 1638430 - [moztest] Use proper group and test ids for WPT from TestResolver.tests_by_manifest, r=egao
For most test suites, the manifest id is the same as its relative path from
mozilla-central.  But for WPT they are different. We decided to store the ids
in the 'manifest' attribute rather than 'manifest_relpath' since the latter
implies it is a file system path (which WPT manifest ids are not).

This patch takes this difference into account in
'TestResolver.tests_by_manifest'. It will consequently get the proper manifest
ids stored in the Decision task's 'tests-by-manifest.json.gz'.

Depends on D79338

Differential Revision: https://phabricator.services.mozilla.com/D79339
2020-06-11 18:56:49 +00:00
Andrew Halberstadt e7e61bbad5 Bug 1638430 - [moztest] Add ability to test web-platform-tests in the TestResolver, r=egao
WPT loads test metadata after the fact (and it is the same regardless of the
loader being used). This adds a file called 'wpt_manifest_data.json' which,
combined with the related fixture, can mock out what WPT's manifestupdate
script returns.

Differential Revision: https://phabricator.services.mozilla.com/D79338
2020-06-11 18:58:25 +00:00
Rob Wu 07386a9fc0 Bug 1644223 - Fix path normalization to correctly inherit manifest defaults on Windows r=gbrown
Note: the bug is fixed by the change in resolve.py.

manifestparser.py has no behavioral changes. It was refactored to make
the type (i.e. normalized absolute path) of `parentmanifest` more
obvious, and as a nice bonus the manifest_relpath value is generated
only once, instead of anew for every section in the test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D78921
2020-06-10 15:12:33 +00:00
Rob Wu f962d4cade Bug 1644223 - Add unit test to verify that manifest_defaults are correctly read from test-defaults.pkl r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D78920
2020-06-09 17:45:17 +00:00
Rob Wu 9d0da35952 Bug 1644223 - Avoid unnecessary rebuild in test_resolve.py r=gbrown
test_resolve.py spends too much time on running. This is because the
backend was regenerated using data from the whole tree, at every test
despite the test fixture.

Differential Revision: https://phabricator.services.mozilla.com/D78919
2020-06-09 17:15:33 +00:00
Geoff Brown d0f02440a4 Bug 1422005 - Fix 'mach test cppunittest'; r=jmaher
Correct typo in parameter name to enable 'mach test cppunittest'.

Differential Revision: https://phabricator.services.mozilla.com/D78984
2020-06-09 22:32:21 +00:00
Geoff Brown 446e3be5f6 Bug 1516847 - Update help and remove support for 'mach test' with no arguments; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D78804
2020-06-09 19:35:19 +00:00
James Graham d8ee17bdef Bug 1644025 - Try to rebuild manifest if we get a ManifestError when loading, r=Ms2ger
Differential Revision: https://phabricator.services.mozilla.com/D78651
2020-06-08 14:18:00 +00:00
Sebastian Hengst b22cf04e2b Bug 1644025 - Force rebuild for wpt data. a=supposed-bustage-fix CLOSED TREE 2020-06-07 19:09:35 +02:00
Nils Ohlmeier [:drno] 18ef0cb66a Bug 1641289: Bye, bye Steeplechase. r=dminor,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D77114
2020-05-29 03:19:27 +00:00
egao 45a93dd0b7 Bug 1637011 - refactor web-platform-tests chunking process in chunking.py r=ahal
Changes:

  - for web-platform-tests codepath, no longer perform filtering of the runtimes information to a list of key:value.
  - for web-platform-tests codepath, load runtimes information into an OrderedDict in order from highest to lowest runtime.
  - if any test paths remain after initial chunking by runtime information, distribute such paths across all chunks.

Differential Revision: https://phabricator.services.mozilla.com/D76538
2020-05-27 20:21:48 +00:00
egao a8d0e51833 Bug 1637463 - writeruntimes script to output runtime information into nested dictionary r=ahal
Changes:

Update `writeruntimes` script so that each suite is in its own nested dictionary and add the ability to query `web-platform-tests-reftest`.

Differential Revision: https://phabricator.services.mozilla.com/D75229
2020-05-23 01:46:42 +00:00
Mihai Alexandru Michis 74ff68a9a5 Backed out 3 changesets (bug 1637463) for causing bc jobs to timeout.
CLOSED TREE

Backed out changeset 93efb53380c2 (bug 1637463)
Backed out changeset 5c8ccda5f1b1 (bug 1637463)
Backed out changeset a5fc1b604238 (bug 1637463)
2020-05-23 02:35:26 +03:00
Geoff Brown f39c1aeb51 Bug 1428718 - [moztest] Support python 3; r=egao
I noticed one more moztest issue in bug 1638993: sorting an array of dict is
poorly defined on py2 and not tolerated on py3; adding the lambda clarifies
the behavior. With this resolved, I think we can bump the moztest version and
close this bug.

Differential Revision: https://phabricator.services.mozilla.com/D76486
2020-05-22 16:12:05 +00:00
egao cf9f527a4f Bug 1637463 - writeruntimes script to output runtime information into nested dictionary r=ahal
Changes:

Update `writeruntimes` script so that each suite is in its own nested dictionary and add the ability to query `web-platform-tests-reftest`.

Differential Revision: https://phabricator.services.mozilla.com/D75229
2020-05-20 22:01:47 +00:00
Geoff Brown 7e002b7daf Bug 1599261 - [moztest] Enable test_resolve.py on py3; r=egao
This test is passing now on python 3, both locally and on try.

Differential Revision: https://phabricator.services.mozilla.com/D76370
2020-05-22 16:17:47 +00:00
Andrew Halberstadt a87fdb1bdb Bug 1634551 - [taskgraph] Move WPT group assignment into the TestResolver, r=egao
This moves the creation of WPT groups into the TestResolver, where all kinds of
other consumers will be able to access them.

Differential Revision: https://phabricator.services.mozilla.com/D76085
2020-05-20 17:51:20 +00:00
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