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

67 Коммитов

Автор SHA1 Сообщение Дата
James Graham a44e6d715d Bug 1511335 - Fix logging setup for ./mach wpt --product, r=ahal
When running non-Firefox products in wpt we go through the run.py
script from upstream. Therefore we need to initialise the logger in
that module as well as the one in wptrunner now that it's been
properly converted to use logging rather than print statements.

In addition, we change the run.py module to allow passing in logging
defaults for the case where nothing is specified on the command line
since the behaviour for wpt upstream is different to the behaviour for
gecko.

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

--HG--
extra : moz-landing-system : lando
2018-12-04 21:53:27 +00:00
James Graham 3319035104 Bug 1509983 - Enable wpt android reftests on try/m-c, r=gbrown,ato
Depends on D13089

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

--HG--
extra : moz-landing-system : lando
2018-11-30 15:31:50 +00:00
James Graham 95d5c415f6 Bug 1508593 - Update the manifest before doing a metadata update, r=ato
The manifest data is used to determine which tests exist, and what type they are

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

--HG--
extra : moz-landing-system : lando
2018-11-20 11:04:30 +00:00
Geoff Brown ca263cc2ba Bug 1507502 - Check for correct installed package when running mach wpt --package; r=kwierso 2018-11-19 08:28:15 -07:00
James Graham 0cda18decd Bug 1507532 - Set up mach defaults to match working wpt android reftest settings, r=KWierso
The fast internal reftest harness doesn't work yet, so in the meantime
default to the functional but slower external harness. Also ensure
that the Ahem font is installed by default.

Depends on D12035

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

--HG--
extra : moz-landing-system : lando
2018-11-15 20:41:18 +00:00
James Graham ab431fffbb Bug 1500001 - Fixup using non-firefox browsers via mach wpt, r=automatedtester
We need to pass in the extra kwargs that wpt run understands but
wptrunner does not. Ideally we could switch to using the run frontend
always and allow users to actually supply these kwargs, although that
might have some unwanted behaviour, and is a larger change. For now
this gets things working again.

Depends on D9081

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

--HG--
extra : moz-landing-system : lando
2018-10-18 13:39:23 +00:00
James Graham f1018bf278 Bug 1500081 - Use --install-fonts to install fonts for wptrunner, r=automatedtester
This replaces a previous Firefox-only method except on Windows 7 where
it seems that we have some issues with the registry.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 13:44:36 +00:00
James Graham c9dc26acbb Bug 1499061 - Only do wpt mozdevice imports when running fennec, r=gbrown
Otherwise some users see problems due to missing psutil.

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

--HG--
extra : moz-landing-system : lando
2018-10-15 14:44:08 +00:00
Wes Kocher ac5fd36c61 Bug 1496627 - Make sure fennec is granted all the permissions it needs to run wpt r=gbrown
Without this, the user must manually install fennec with expanded permissions with `adb install -g <apk>`.

With this patch, `./mach wpt` on its own handles everything from emulator setup to test running.

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

--HG--
extra : moz-landing-system : lando
2018-10-11 22:07:45 +00:00
Wes Kocher 14f83f337d Bug 1496627 - Run the emulator automatically r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D8260

--HG--
extra : moz-landing-system : lando
2018-10-10 23:49:35 +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
James Graham 7b657769c4 Bug 1494308 - Use consistent logger in wpt commands r=ato
Before we were using a different logger for the manifest download and the actual test run.
This caused timestamps to get reset in a confusing way. Now create the logger early and
share it for all the subseteps.

Depends on D7171

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

--HG--
extra : moz-landing-system : lando
2018-09-29 14:51:44 +00:00
James Graham a11c998bf1 Bug 1494960 - Remove wpt-reduce mach command r=ato
As far as I know this was unused and hasn't been well maintained since it's
not that useful.

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

--HG--
extra : moz-landing-system : lando
2018-09-29 14:49:25 +00:00
James Graham f108ff304e Bug 1494187 - Run the manifest download steps before trying to update the manifest, r=ato
This ensures that we always start from a partial manifest where possible and also ensures that the
configuration files are correctly created (a refactor to create these irrespective of whether we
do a download would make sense, but this fixes the immediate problem)

Depends on D7088

Differential Revision: https://phabricator.services.mozilla.com/D7089
2018-09-28 11:36:46 +01:00
James Graham cc7b5832aa Bug 1438975 - Add tbpl-like output for failing refests to the mach formatter r=ahal
This allows the output to be used in the reftest anaylzer directly.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 19:42:46 +00:00
Bob Clary 0c8d65eb00 Bug 1492601 - Use MachCommandCondition.is_firefox_or_android, r=ahal. 2018-09-23 15:08:56 -07: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
James Graham 8a442a4848 Bug 1476053 - Add an option not to store state when running wpt-update, r=jdm
This adds some overhead and can be annoying since it requries explicitly aborting failed jobs.
The state storage isn't very useful for just udpating metadata (the typical gecko usecase), but
is useful for performing syncs (a typical servo usecase). Therefore add a --no-store-state option
and set it by default in the gecko mach frontend.

MozReview-Commit-ID: LhEcMkyuRHD

--HG--
extra : rebase_source : 0f5c22b2a1337f7ca370cae31514792528d234a3
2018-07-10 10:09:43 +01:00
James Graham 8dd59553eb Bug 1477256 - Use certificate files from upstream in web-platform-tests, r=cactusmachete
These files are duplicates of each other, so for simplicity we may as well use the
upstream copies to avoid falling out of sync.

MozReview-Commit-ID: JpG3joT8NNJ

--HG--
extra : rebase_source : d06c8969a9f8871b078c22e72947f7cd7584fb00
2018-07-20 13:29:05 +01:00
Maja Frydrychowicz 85c346289b Bug 1323620 - Add "fennec" product to wptrunner. r=jgraham
This allows running web-platform-tests on Fennec given a running emulator.
(Which is how we expect the tests to run in automation as well -- the
android_emulator_unittest mozharness script takes care of emulator
start-up.) It also hooks up ./mach wpt.

wptrunner sets up a profile for Fennec, forwards the marionette port
and starts up Fennec, etc.

= Usage =

Set your mozconfig to build fennec.

Start an emulator: `./mach android-emulator --version x86`
Install fennec: `./mach build && ./mach package && ./mach install`
Run the tests:

```
./mach wpt --product=fennec --testtype=testharness
--certutil-binary path/to/host/os/certutil path/to/some/tests
```

Differential Revision: https://phabricator.services.mozilla.com/D1587
2018-06-15 16:30:58 +00:00
Ahilya Sinha 7c7b4bfbed Bug 1466514 - download the uploaded wpt-manifest, r=jgraham
MozReview-Commit-ID: BP4A9S5xG7M

--HG--
extra : rebase_source : a8c5c7fe30ddd971260065c5b640bb9afca35ba4
2018-06-04 18:16:28 +05:30
James Graham 1cabd2b4ba Bug 1265584 - Use ujson where possible for faster metadata update, r=maja_zf
Profiling shows that switching to this library means we no longer
spend most of the update time parsing json (vs 80% or so before),
making other optimisations worthwhile. This is never used in
automation (except wptsync) so availability of the library in the
internal pypi isn't a problem.

MozReview-Commit-ID: U5gabb5lz8
2018-05-25 11:58:13 +01:00
James Graham f9f7848202 Bug 1402970. Make mach wpt-create work correctly again. r=bzbarsky 2017-09-26 16:13:04 -04:00
Jeremy Chen 4169d67990 Bug 1399805 - fix the default path of fix_macosx_stack.py for running wpt tests. r=jgraham
We try to find fix_macosx_stack.py on the wrong path, which leads us can't run
wpt tests without setting stack fix directory manually (--stackfix-dir).
In this patch, we fix this issue by pointing the path to @topobjdir/dist/bin.

MozReview-Commit-ID: 8JzWWgVM6fM

--HG--
extra : rebase_source : a7822998d7668b976284852bdca86e70d615b611
2017-09-14 19:07:23 +08:00
James Graham 62407a872c Bug 1390896 - Make mach wpt compatible with latest upstream, r=maja_zf
Upstream wpt changed from having a wptrun script to a wpt script with
a run subcommand. This involved some internal movement of code which
broke the `mach wpt` command when used with a non-firefox
product. This commit changes the mach integration to be compatible
with the new upstream API.

MozReview-Commit-ID: 1hvmZedNHSX

--HG--
extra : rebase_source : decd24551c2c5eaaae21eb64c7c376110b3de5b7
2017-08-16 15:42:30 +01:00
Makoto Kato 2e5554c883 Bug 1386496 - Ahem.ttf is broken on web-platform-tests. r=jgraham
Ahem.ttf is copied to $(DIST)/bin/firefox/fonts, but this file is broken due to text mode copy.  So we should use binary mode instead.

MozReview-Commit-ID: KP7yNyPiejU

--HG--
extra : rebase_source : 2de749f458a6d4650f9044f1912ff97835c5b795
2017-08-02 12:35:53 +09:00
James Graham 5d62758e55 Bug 1341078 - Run CSS tests on Linux, r=ahal
These are initially run on Linux only for capacity reasons.

MozReview-Commit-ID: Ge4nu1NGDdr
2017-07-20 13:05:26 +01:00
James Graham 50eabaa44d Bug 1377886 - Improve handling of reftests in mach wpt-create, r=automatedtester
Create an emmpty reference file if one doesn't exist, and open it in
the editor.

MozReview-Commit-ID: 5aBLp2AdnzY

--HG--
extra : rebase_source : bae3df50689895e6ac02cc740acea57be5c24b2e
2017-07-03 15:39:20 +01:00
James Graham 04a7d622fd Bug 1377886 - Don't start Firefox with mach wpt-create, r=automatedtester
This confuses people and isn't needed to update the manifest these days.

MozReview-Commit-ID: 4t4zdXLMob5

--HG--
extra : rebase_source : 9c43570073b15d11b3a52c830f9f3fd1f9f063c7
2017-07-03 15:38:10 +01:00
James Graham 105552d940 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-24 12:03:12 +01:00
Wes Kocher ea40157e54 Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE
Backed out changeset e86d6d5c2a25 (bug 1363428)
Backed out changeset a0687a63e7b9 (bug 1363428)
Backed out changeset 858dc97498c7 (bug 1363428)
Backed out changeset 582a8dce7932 (bug 1363428)
Backed out changeset 26ae2fd48587 (bug 1363428)
Backed out changeset 7fa8e20fe001 (bug 1363428)
Backed out changeset 829c13a75667 (bug 1363428)
Backed out changeset a94d2c400b04 (bug 1363428)
Backed out changeset ec4a6b343b37 (bug 1363428)
Backed out changeset c27b94038e71 (bug 1363428)
Backed out changeset d1c03b96d270 (bug 1363428)
Backed out changeset 60c1c95b46ca (bug 1363428)
Backed out changeset b0604d88973f (bug 1363428)
Backed out changeset f0b218979773 (bug 1363428)
Backed out changeset 1d359561373c (bug 1363428)
Backed out changeset 956d6c0a646e (bug 1363428)

MozReview-Commit-ID: K8EBA8ACZLC
2017-06-23 14:13:27 -07:00
James Graham 047b39e813 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp

--HG--
extra : rebase_source : 7e544fe8d66806e32d100196fbb411b1bfaebdba
2017-06-01 15:20:11 +01:00
James Graham 4480587bb8 Bug 1294820 - Add support for running wpt from one-click loaner mach environment, r=ahal
Allow running |mach wpt| on one click loaners in order to run
web-platform-tests tests.

This implementation is just like the one for other testsuites using
thee packaged tests rather than the checkout that we get with wpt, at
least on Linux. That's also where the tests run from so it seems
reasonable for now. Moving to the checkout in the future could remove
some of the logic here by using a fake mozbuild environment so that
the testsuite itself doesn't have to implement anything much.

MozReview-Commit-ID: CaewrdjJ2ef

--HG--
extra : rebase_source : 491b8014d48f06ff5bd41b28cc985608981fbdf4
2017-06-19 19:20:41 +01:00
James Graham da37bf2cf8 Bug 1370936 - Skip directories when updating metdata, r=ato
MozReview-Commit-ID: HLFo9vhYS8p

--HG--
extra : rebase_source : 91cf679c342f1478c718e2a41a853bd0db02d4cd
2017-06-16 10:45:55 +01:00
James Graham e14e7c3ce8 Bug 1371358 - Don't check the webdriver binary exists before running wpt tests, r=ato
This ensures that developers can run the majority of tests with the
default config, but makes things a little more confusing for marionette
developers.

MozReview-Commit-ID: 9wd761ZgCyx

--HG--
extra : rebase_source : d601fa10d1896afd3c450b2d44a2024b9963096f
2017-06-08 18:15:31 +01:00
James Graham 1043e6ecc4 Bug 1369109 - Add --rebuild option to mach wpt-manifest-update, r=maja_zf
This is required for cases where files have not changed but the
manifest logic has changed.

MozReview-Commit-ID: E46HtouILS2

--HG--
extra : rebase_source : f9d350018752f866052cf6a7a1ffd8f1d5f4ee39
2017-06-05 16:39:45 +01:00
Andreas Tolfsen e28e599370 Bug 1368264 - Have mach pick up geckodriver from dist/bin r=jgraham
MozReview-Commit-ID: Fs9F6o7jNDP

--HG--
extra : rebase_source : 828d8aab4cba6c951768bbf3e6de5a55af889918
2017-06-05 11:30:59 +01:00
James Graham 0465b8008b Bug 1370203 - Check hosts are configured with |mach wpt|, r=farre
For Chrome and Edge we don't have any way to set the DNS configuration
to include web-platform.test, so we need to error if this isn't already set.

MozReview-Commit-ID: BHRsTiuV28x

--HG--
extra : rebase_source : cfd3c35a513f98b47a7ffc9328058e6d104d2b2e
2017-06-05 13:29:47 +01:00
James Graham c91c59475c Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 15:45:47 +01:00
Carsten "Tomcat" Book 85e7cbd833 Backed out changeset 64ff9b546c6e (bug 1367041) 2017-05-31 14:21:53 +02:00
James Graham e2b80fffd2 Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 10:58:35 +01:00
Carsten "Tomcat" Book 8074efcb96 Backed out changeset 448b7c4ed09e (bug 1367041) 2017-05-31 10:47:06 +02:00
James Graham b70f59720d Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 09:09:39 +01:00
James Graham beabf923ac Bug 1356227 - Add support for excluding paths when doing a wpt sync, r=ato
MozReview-Commit-ID: 6zadFuRDmVD
2017-04-20 10:49:21 +01:00
Sebastian Hengst 24eec01c4e Backed out changeset c9919c878c14 (bug 1356227) for neverending W(7) jobs on Windows 7 VM debug. r=backout a=backout
MozReview-Commit-ID: 9y1GTQnUMMG
2017-04-14 17:19:25 +02:00
James Graham 621c088a9b Bug 1356227 - Add support for excluding paths when doing a wpt sync, r=ato
MozReview-Commit-ID: 6zadFuRDmVD
2017-04-13 16:22:32 +01:00
James Graham ba37a80fb5 Bug 1316667 - Use a path that exists when resolving stackfix dir, r=jmaher
This fixes a bug on Windows where we try to append .exe to the path
and so get an invalid, non-existing path by using the Fx binary as the
path and then stripping off the filename.

MozReview-Commit-ID: 8EWGGcz40iw

--HG--
extra : rebase_source : b4a54cc7197a40b55937c8f94ec01f75314581b0
2016-11-11 18:09:22 +00:00
James Graham 003f075ff9 Bug 1309932 - Allow wpt sync script to work with non-merge PRs, r=Ms2ger
MozReview-Commit-ID: DsrFzoBnfbp
2016-10-25 18:10:30 +01:00