Commit Graph

66 Commits

Author SHA1 Message Date
James Graham
cb9bf32b03 Bug 1509983 - Enable wpt android reftests on try/m-c, r=gbrown,ato
Depends on D13089

Differential Revision: https://phabricator.services.mozilla.com/D13090
2018-11-30 15:31:50 +00:00
James Graham
5364532a67 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
2018-11-20 11:04:30 +00:00
Geoff Brown
c3d7308f77 Bug 1507502 - Check for correct installed package when running mach wpt --package; r=kwierso 2018-11-19 08:28:15 -07:00
James Graham
484bedd512 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
2018-11-15 20:41:18 +00:00
James Graham
f3c543b3c7 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
2018-10-18 13:39:23 +00:00
James Graham
98541d31a4 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
2018-10-18 13:44:36 +00:00
James Graham
97accfbd5e 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
2018-10-15 14:44:08 +00:00
Wes Kocher
f0858df5b0 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
2018-10-11 22:07:45 +00:00
Wes Kocher
5d1061cc0b Bug 1496627 - Run the emulator automatically r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D8260
2018-10-10 23:49:35 +00:00
James Graham
4664295473 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
7d6a97d5c6 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
2018-09-29 14:51:44 +00:00
James Graham
05327741a2 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
2018-09-29 14:49:25 +00:00
James Graham
26fa8e0db0 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
4899452b23 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
2018-09-25 19:42:46 +00:00
Bob Clary
aaca285fe3 Bug 1492601 - Use MachCommandCondition.is_firefox_or_android, r=ahal. 2018-09-23 15:08:56 -07:00
Ahilya Sinha
f3418087d2 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
2018-09-20 12:07:58 +00:00
shindli
b146b9b29a 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
480df43e37 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
2018-09-19 06:57:50 +00:00
James Graham
49042b2f2c 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
2018-07-10 10:09:43 +01:00
James Graham
95095ef8cd 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
2018-07-20 13:29:05 +01:00
Maja Frydrychowicz
21ba7eedbd 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
4ffcf5c1f3 Bug 1466514 - download the uploaded wpt-manifest, r=jgraham
MozReview-Commit-ID: BP4A9S5xG7M
2018-06-04 18:16:28 +05:30
James Graham
09ee86dd6c 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
1f9fc7bf5f Bug 1402970. Make mach wpt-create work correctly again. r=bzbarsky 2017-09-26 16:13:04 -04:00
Jeremy Chen
69d1c511dc 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
2017-09-14 19:07:23 +08:00
James Graham
7b0afb8078 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
2017-08-16 15:42:30 +01:00
Makoto Kato
74f4aa0c7b 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
2017-08-02 12:35:53 +09:00
James Graham
7a5f7da488 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
600029a419 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
2017-07-03 15:39:20 +01:00
James Graham
58de50c827 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
2017-07-03 15:38:10 +01:00
James Graham
ca59c69886 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
83195d41fb 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
bf0dbcdff7 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-01 15:20:11 +01:00
James Graham
d0dd87c178 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
2017-06-19 19:20:41 +01:00
James Graham
aeeac65dff Bug 1370936 - Skip directories when updating metdata, r=ato
MozReview-Commit-ID: HLFo9vhYS8p
2017-06-16 10:45:55 +01:00
James Graham
c4a3e10f6e 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
2017-06-08 18:15:31 +01:00
James Graham
ca3a21cb71 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
2017-06-05 16:39:45 +01:00
Andreas Tolfsen
4e061c9735 Bug 1368264 - Have mach pick up geckodriver from dist/bin r=jgraham
MozReview-Commit-ID: Fs9F6o7jNDP
2017-06-05 11:30:59 +01:00
James Graham
476559fe7c 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
2017-06-05 13:29:47 +01:00
James Graham
0f647feeb5 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
c1091c94a8 Backed out changeset 64ff9b546c6e (bug 1367041) 2017-05-31 14:21:53 +02:00
James Graham
ab88477020 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
c9e2963092 Backed out changeset 448b7c4ed09e (bug 1367041) 2017-05-31 10:47:06 +02:00
James Graham
50a506c06f 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
c8c8b2d03d 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
47a18b6c89 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
f154bd014a 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
e39f9b11fe 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
2016-11-11 18:09:22 +00:00
James Graham
49901b952b 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
James Graham
bdf83f2ddc Bug 1238043 - Enable assert stack fixup for wpt, r=ted
MozReview-Commit-ID: GLZ4nMLilel
2016-10-12 23:04:58 +01:00