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

173 Коммитов

Автор SHA1 Сообщение Дата
Mitchell Hentges 51b1c98bf1 Bug 1680802: Install marionette requirements with legacy resolver r=sheehan
Marionette requirements fail to install with the new pip resolver due
to a conflict between `h2` and `wptserve`.
Use the legacy resolver with Marionette until the dependencies are
reorganized by the Marionette maintainers.

Depends on D99940

Differential Revision: https://phabricator.services.mozilla.com/D100811
2021-01-08 18:52:14 +00:00
Bob Clary 1584100fb2 Bug 1681096 - python3 - pylint --py3k - W1618: from __future__ import absolute_import r=perftest-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D98939
2020-12-14 17:50:17 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Joel Maher 4dd326cbea Bug 1670995 - run android mochitest/wpt on -qr by default. r=jnicol
run android mochitest/wpt on -qr by default

Differential Revision: https://phabricator.services.mozilla.com/D94334
2020-10-21 19:16:06 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
James Graham ec26b652e7 Bug 1668458 - Load specialPowers web extension in gecko-only wpt tests, r=jmaher,twisniewski,whimboo
Lack of support for specialPowers is often cited as a reason for
developers to write mochitests rather than wpt. Although using
specialPowers means that the tests can't be upstreamed, having it
available in gecko-only tests should reduce the need to write
mochitests and potentially means that a patch which previously would
be written with just mochitests would instead be written with just
wpt, a fraction of which would be unsuitable for sharing.

Nevertheless a gecko-only specialPowers-using test should be
considered the option of last resort when cross-browser APIs such as
testdriver aren't sufficient.

This patch installs the specialPowers extension when the path to the
XPI is provided via a --specialpowers-path command line argument. To
ensure this only happens for gecko-only tests, the url_base is added
to the Test object, and the firefox settings() method is updated to
contain a specialpowers setting, which uses the url_base of the test
to determine if this is a gecko-only test.

Because the extension has to be enabled using marionette, we also need
to route this setting through the to executor, along with the provided
XPI path.

Differential Revision: https://phabricator.services.mozilla.com/D92035
2020-10-06 14:01:24 +00:00
Bogdan Tara 50effb1629 Backed out changeset 5f2252c9e774 (bug 1668458) for wpt failures CLOSED TREE 2020-10-06 16:32:01 +03:00
James Graham d248b39a61 Bug 1668458 - Load specialPowers web extension in gecko-only wpt tests, r=jmaher,twisniewski,whimboo
Lack of support for specialPowers is often cited as a reason for
developers to write mochitests rather than wpt. Although using
specialPowers means that the tests can't be upstreamed, having it
available in gecko-only tests should reduce the need to write
mochitests and potentially means that a patch which previously would
be written with just mochitests would instead be written with just
wpt, a fraction of which would be unsuitable for sharing.

Nevertheless a gecko-only specialPowers-using test should be
considered the option of last resort when cross-browser APIs such as
testdriver aren't sufficient.

This patch installs the specialPowers extension when the path to the
XPI is provided via a --specialpowers-path command line argument. To
ensure this only happens for gecko-only tests, the url_base is added
to the Test object, and the firefox settings() method is updated to
contain a specialpowers setting, which uses the url_base of the test
to determine if this is a gecko-only test.

Because the extension has to be enabled using marionette, we also need
to route this setting through the to executor, along with the provided
XPI path.

Differential Revision: https://phabricator.services.mozilla.com/D92035
2020-10-06 12:54:36 +00:00
Noemi Erli 112f24b054 Backed out 2 changesets (bug 1668458) for causing web platform test failures CLOSED TREE
Backed out changeset 8739d75e13dc (bug 1668458)
Backed out changeset e45a73a47c37 (bug 1668458)
2020-10-05 18:24:36 +03:00
James Graham e30a02602c Bug 1668458 - Load specialPowers web extension in gecko-only wpt tests, r=jmaher,twisniewski
Lack of support for specialPowers is often cited as a reason for
developers to write mochitests rather than wpt. Although using
specialPowers means that the tests can't be upstreamed, having it
available in gecko-only tests should reduce the need to write
mochitests and potentially means that a patch which previously would
be written with just mochitests would instead be written with just
wpt, a fraction of which would be unsuitable for sharing.

Nevertheless a gecko-only specialPowers-using test should be
considered the option of last resort when cross-browser APIs such as
testdriver aren't sufficient.

This patch installs the specialPowers extension when the path to the
XPI is provided via a --specialpowers-path command line argument. To
ensure this only happens for gecko-only tests, the url_base is added
to the Test object, and the firefox settings() method is updated to
contain a specialpowers setting, which uses the url_base of the test
to determine if this is a gecko-only test.

Because the extension has to be enabled using marionette, we also need
to route this setting through the to executor, along with the provided
XPI path.

Differential Revision: https://phabricator.services.mozilla.com/D92035
2020-10-02 19:34:10 +00:00
Tom Prince bd8a8ba4cd Bug 1492362: [mozharness] Set reasonable `avds_dir` values; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D86671
2020-08-25 01:35:29 +00:00
Henrik Skupin f00a1ae811 Bug 1651297 - [web-platform] Run tests for Windows7 debug with a single Firefox process. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D84524
2020-07-27 09:23:56 +00:00
Bob Clary fe58efcb2d Bug 1653094 - mozharness Android configs should invoke start-emulator action after create-virtualenv r=gbrown
Depends on D83699

Differential Revision: https://phabricator.services.mozilla.com/D83700
2020-07-16 22:11:36 +00:00
Narcis Beleuzu 1eb115035d Backed out 20 changesets (bug 1486004, bug 1653094) for wrench bustages. CLOSED TREE
Backed out changeset 120c64ebdea3 (bug 1486004)
Backed out changeset b10f105b1c36 (bug 1486004)
Backed out changeset 7f186e6bcccc (bug 1486004)
Backed out changeset cdda7b349cd8 (bug 1486004)
Backed out changeset 650c47e81402 (bug 1486004)
Backed out changeset 2bcca7cf3f1b (bug 1486004)
Backed out changeset e1df276f8a8d (bug 1486004)
Backed out changeset f6f5e7f2bd0a (bug 1486004)
Backed out changeset 1c56cb03ce53 (bug 1486004)
Backed out changeset 582cd190f174 (bug 1486004)
Backed out changeset 7c162e1b3a79 (bug 1486004)
Backed out changeset d1088e178216 (bug 1486004)
Backed out changeset 40763f4afd26 (bug 1486004)
Backed out changeset f20eb5b5a670 (bug 1486004)
Backed out changeset 6349ee0bd63f (bug 1486004)
Backed out changeset 7c23729053f6 (bug 1486004)
Backed out changeset 49586014bd29 (bug 1486004)
Backed out changeset 07971e82ae85 (bug 1653094)
Backed out changeset 47e7295e9c19 (bug 1653094)
Backed out changeset 57a25bbeec37 (bug 1653094)
2020-07-16 17:58:09 +03:00
Bob Clary 88e7edec7d Bug 1653094 - mozharness Android configs should invoke start-emulator action after create-virtualenv r=gbrown
Depends on D83699

Differential Revision: https://phabricator.services.mozilla.com/D83700
2020-07-15 21:20:24 +00:00
Edwin Takahashi 4e16b8cde4 Bug 1646885 - add backlog flag to be passed to mozharness and set timeout multiplier appropriately r=jmaher
Changes:
  - add new flag in `web_platform_tests.py`, with name `backlog` that is a boolean value.
  - simplify the timeout multiplier conditional to check for presence of the `backlog` flag.
  - add the new flag to the `mozharness_extra_options` flag in `web-platform.yml`

Differential Revision: https://phabricator.services.mozilla.com/D81184
2020-06-26 18:28:45 +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
Edwin Takahashi a4ca63453e Bug 1643177 - apply timeout multiplier reduction to web-platform-tests-reftest-backlog and reduce chunks r=jmaher
Changes:

Previous patch to apply the reduced timeout multiplier was only applicable to vanilla `web-platform-tests`. This patch reduces the chunk count for `web-platform-tests-reftest` and applies the reduction multiplier.

Differential Revision: https://phabricator.services.mozilla.com/D80520
2020-06-22 19:50:34 +00: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
Edwin Takahashi a01041037c Bug 1643177 - web-platform-tests-backlog to set timeout-multiplier of 0.25 r=jmaher
Changes:

If the web-platform-tests runtype is `backlog` (as noted by the lack of `skip-implementation: backlog`), set a timeout multiplier of 0.25.

Differential Revision: https://phabricator.services.mozilla.com/D79356
2020-06-17 00:29:37 +00:00
Razvan Maries 08aad2dacd Backed out 2 changesets (bug 1643177) for multiple webdriver perma failures. CLOSED TREE
Backed out changeset 745ca9baa9c8 (bug 1643177)
Backed out changeset 3acd697a9131 (bug 1643177)
2020-06-17 01:52:28 +03:00
Edwin Takahashi b7ab107bb1 Bug 1643177 - web-platform-tests-backlog to set timeout-multiplier of 0.25 r=jmaher
Changes:

If the web-platform-tests runtype is `backlog` (as noted by the lack of `skip-implementation: backlog`), set a timeout multiplier of 0.25.

Differential Revision: https://phabricator.services.mozilla.com/D79356
2020-06-16 20:01:15 +00:00
Edwin Takahashi 9515ccc297 Bug 1634554 - Part 2: pass file containing MOZHARNESS_TEST_PATHS to web-platform-tests harness r=ahal,jgraham
Changes:
  - if MOZHARNESS_TEST_PATHS is defined, write the contents of that directory to a JSON file.
  - append `--run-by-dir` only if `--test-groups` flag is not set.

Differential Revision: https://phabricator.services.mozilla.com/D78820
2020-06-15 19:31:53 +00:00
Edwin Takahashi a779c60ef5 Bug 1634554 - Part 1: download decision task artifact and strip out non-WPT tests in mozharness/web_platform_tests.py r=ahal,jgraham
Changes:
  - add new environment variable `TESTS_BY_MANIFEST_URL` referencing the tests-by-manfiest.json.gz artifact generated by decision task.
  - add new method `download_manifest` in mozharness/web_platform_tests.py to download the artifact, then remove non-web-platform-test manifests.
  - the processed artifact is then saved as JSON file containing only web-platform-tests for downstream harnesses to use.

Differential Revision: https://phabricator.services.mozilla.com/D78318
2020-06-15 20:27:21 +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 783151f608 Bug 1634554 - Part 2: pass file containing MOZHARNESS_TEST_PATHS to web-platform-tests harness r=ahal,jgraham
Changes:
  - if MOZHARNESS_TEST_PATHS is defined, write the contents of that directory to a JSON file.
  - append `--run-by-dir` only if `--test-groups` flag is not set.

Differential Revision: https://phabricator.services.mozilla.com/D78820
2020-06-15 18:32:03 +00:00
Edwin Takahashi 0c1148f15a Bug 1634554 - Part 1: download decision task artifact and strip out non-WPT tests in mozharness/web_platform_tests.py r=ahal,jgraham
Changes:
  - add new environment variable `TESTS_BY_MANIFEST_URL` referencing the tests-by-manfiest.json.gz artifact generated by decision task.
  - add new method `download_manifest` in mozharness/web_platform_tests.py to download the artifact, then remove non-web-platform-test manifests.
  - the processed artifact is then saved as JSON file containing only web-platform-tests for downstream harnesses to use.

Differential Revision: https://phabricator.services.mozilla.com/D78318
2020-06-15 18:41:08 +00:00
Geoff Brown 9d3645ef54 Bug 1640758 - Use multiple errorsummary and raw logs for test-verify; r=jmaher
In all mozharness scripts running test-verify (or per-test coverage), use distinct
file names for errorsummary and raw logs. This usually means that the command needs
to be built inside the per-test loop.

Differential Revision: https://phabricator.services.mozilla.com/D77746
2020-06-02 22:56:14 +00:00
Joel Maher 5e6f06d6f5 Bug 1636120 - don't run timeouts on autoland. r=jgraham
don't run expected TIMEOUT web-platform-tests on autoland.

Differential Revision: https://phabricator.services.mozilla.com/D74283
2020-05-08 13:12:16 +00:00
Geoff Brown 02269c9305 Bug 1624649: Move android-em to pull emulator from toolchain instead of tooltool; r=wcosta,kats
This is very similar to wcosta's earlier patch, with a few adjustments to overcome
special cases:
 - remove the wrench override of adb path; handle in config instead
 - fix taskcluster config syntax in a couple of places
 - add android-sdk-linux fetch for test-verify

Differential Revision: https://phabricator.services.mozilla.com/D73157
2020-05-06 14:28:37 +00:00
James Graham 0c1885b368 Bug 1631982 - Support wpt test ids in MOZHARNESS_TEST_PATHS, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D73023
2020-04-29 14:07:09 +00:00
Joel Maher c788dd3c4b Bug 1572820 - run wpt components we are not implementing as tier-2 on m-c only. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D71746
2020-04-22 16:24:57 +00:00
James Graham b27b5505fe Bug 1626089 - Disable multiple processes for fission builds, r=jmaher
Running this made intermittents too frequent to manage on this platform.

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

--HG--
extra : moz-landing-system : lando
2020-04-10 16:02:08 +00:00
James Graham 76130a7bbf Bug 1626089 - Run two wpt processes in CI, r=jmaher
This runs wpt with --processes=2 in CI, excluding wdspec tests where this
causes obvious test failures and android where we can't have more than a
single instance. This should provide some speedup at the cost of possibly
increased instability. So following landing this it will be necessary to
look out for an increased rate of intermittents.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 10:52:04 +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
Noemi Erli 8a061c286b Backed out changeset 0eea7f51b16a (bug 1626089) for causing web platform failures in bundle.https.html CLOSED TREE
--HG--
extra : rebase_source : 1afd5f6c294daaf15613165851e18895a8dbf92a
2020-03-31 21:29:19 +03:00
James Graham 4d6e03604e Bug 1626089 - Run two wpt processes in CI, r=jmaher
This runs wpt with --processes=2 in CI, excluding wdspec tests where this
causes obvious test failures and android where we can't have more than a
single instance. This should provide some speedup at the cost of possibly
increased instability. So following landing this it will be necessary to
look out for an increased rate of intermittents.

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

--HG--
extra : moz-landing-system : lando
2020-03-30 23:03:12 +00:00
James Graham 4da3ae8341 Bug 1595515 - Don't run tests for things we aren't implementing in CI, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D65767

--HG--
extra : moz-landing-system : lando
2020-03-06 18:57:15 +00:00
James Graham d6cf83b811 Bug 1616015 - Enable wptrunner instrumentation in CI, r=gbrown
This will allow us to generate flamegraph-style output to see where wpt jobs
spend time

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

--HG--
extra : moz-landing-system : lando
2020-02-18 17:29:53 +00:00
Stephen Donner 14559f8276 Fix Bug 1607344; remove legacy stylo-seq linux64 jobs. r=erahm,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D59466

--HG--
extra : moz-landing-system : lando
2020-01-14 22:36:47 +00:00
Mihai Alexandru Michis 227405cbbd Backed out changeset fd1001cea260 (bug 1607344) for causing wpt failures regarding single_stylo_traversal.
CLOSED TREE
2020-01-11 09:55:56 +02:00
Stephen Donner 37fa3ade04 Fix Bug 1607344; remove legacy stylo-seq linux64 jobs. r=erahm,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D59466

--HG--
extra : moz-landing-system : lando
2020-01-11 07:20:50 +00:00
Daniel Varga 5546045f1c Backed out changeset 05f81cc8b39c (bug 1607344) for causing multiple failures at builds/worker/workspace/mozharness/mozharness/base/script.py
CLOSED TREE
2020-01-11 01:33:35 +02:00
Stephen Donner ace7e6d13b Fix Bug 1607344; remove legacy stylo-seq linux64 jobs. r=erahm,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D59466

--HG--
extra : moz-landing-system : lando
2020-01-10 21:39:19 +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
Geoff Brown 38dd21ea87 Bug 1593779 - Bail out of test-verify tasks faster when there is no work to do; r=bc
This minor optimization is easily implemented: If there are no tests to verify, call fatal(0).
However, I encountered a minor obstacle: If the task exits before creating the upload directory,
the task fails, regardless of exit value; the remaining changes overcome this by creating the
upload directory earlier.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 21:46:57 +00:00