Commit Graph
71 Commits
Author SHA1 Message Date
James Graham bcd5186877 Bug 1401613 - Don't require test type in wpt expectation manifest, r=maja_zf
The test type is already in the MANIFEST.json file and requiring it in
the expectation data doesn't make much sense. It isn't used execpt
during updates and so people often forget to add it. Therefore it
makes a lot of sense to just use the data from the main manifest.

MozReview-Commit-ID: HyOoN6T28qc
2017-09-23 15:03:36 +01:00
James Graham 58f84ddd62 Bug 1402002 - Update web-platform-tests to revision b88862e6e574c2116f8efea0e982f6776a3c4b22, a=testonly
MozReview-Commit-ID: FlhL7aMvsiY
2017-09-23 15:03:31 +01:00
James Graham b31f4b84a3 Bug 1393366 - Increase the marionette connect timeout in wptrunner, r=maja_zf
This switches to using a timeout of 120s * timeout_multplier, which is
twice the current value. The Marionette startup_timout value is
removed because it turns out that's only used when marionette starts
the Firefox instance and therefore is ignored in this case.

MozReview-Commit-ID: 4VA8yB6M1d5
2017-09-21 17:56:43 +01:00
Maja Frydrychowicz 6a029b4dd6 Bug 1401684 - Add option to disable unstable tests with wpt-update; r=jgraham
Add a --stability option to wpt-update. If test results are inconsistent
across many runs, the test is disabled for the condition(s) indicated by
the corresponding log files. The --stability option is used to specify
a reason for disabling the tests (typically a bug number), which is
recorded in metadata. Disabled test paths are printed to stdout.

MozReview-Commit-ID: DEIqRkN7NzR
2017-09-20 15:26:47 -04:00
Ben Kelly ca6fb39e6c Bug 1399214 Make WPT try to fix stacks even if a symbol dir is not explicitly passed. r=jgraham 2017-09-12 12:02:09 -07:00
James Graham 74224881b8 Bug 1373444 - Fix typo in wpt harness, r=maja_zf
MozReview-Commit-ID: 3x0JxmvRAvV
2017-09-07 12:07:12 +01:00
James Graham c75428c5d9 Bug 1397215 - Fix --exclude and --include arguments to wptrunner, r=me
We need to set_default when creating an empty IncludeManifest so that skip is set.
This is pretty unfortunate.

MozReview-Commit-ID: 43Vwtu2bhvn
2017-09-07 12:50:50 +01:00
James Graham b66557fb77 Bug 1397215 - Update web-platform-tests to revision 7abe12a95a33cf1906182c1e56da37a32effce3f, a=testonly
MozReview-Commit-ID: 7EKrQudqd4D
2017-09-07 12:50:49 +01:00
James Graham 78df7ee625 Bug 1373444 - Look for NoSuchWindowException when waiting for manual browser close in wpt, r=maja_zf
This method works by running a long-running script and catching the exception when
it is interrupted. But the exception changed so we must make a corresponding change here.

MozReview-Commit-ID: EdZZAOVZ0Sw
2017-09-05 17:23:22 +01:00
James Graham 76fc4ab52f Bug 1373444 - Ignore exceptions during wpt test teardown, r=maja_zf
In general these exceptions are the result of something unexpected in
the environment, but shouldn't themseslves cause the test to error.

MozReview-Commit-ID: 5XjJoT4UwnC
2017-09-05 17:23:21 +01:00
J. Ryan Stinnett fccc276492 Bug 1393234 - Add --disable-stylo for WPT. r=jmaher
MozReview-Commit-ID: AUwMbjOinvY
2017-08-24 16:41:08 -05:00
Andreas Tolfsen 7fbbace069 Bug 1391662 - Disable pytest cache provider in WPT. r=jgraham
The pytest cache provider lets you have access to --last-failed and
--failed-first based on a cache file it puts in .cache/v/lastfailed.
This can be useful for iterating on a set of failures, but not a feature
we want to support through wptrunner.

This patch disables the cache provider so that these files are
not generated.  When calling wptrunner with --manifest-update, these
temporary files have had a tedency to be included in MANIFEST.json,
and this change will effectively prevent that from happening.

MozReview-Commit-ID: EU7zXAdxsfY
2017-08-18 16:16:45 +01:00
Wes Kocher df8bcfb77d Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: Ko3lhAvzMJN
2017-08-03 18:22:09 -07:00
James Graham 717ee6e534 Bug 1384063 - Improve crash detection in wpt with e10s enabled, r=ted
Set MOZ_CRASHREPORTER_SHUTDOWN so that the browser terminates
immediately in the case of a content crash. This causes an early
return from executeAsyncScript, which also happens in cases with an
unhandled alert dialog, so check  if the connection is still alive to
distinguish between a crash and an error.

MozReview-Commit-ID: 6FYDwt15tI4
2017-08-03 11:31:55 +01:00
James Graham 6df18e2f5f Bug 1386604 - Update web-platform-tests to revision 8b5316ad93c6c1238eea26a3d8052e32b34bbabd, a=testonly
MozReview-Commit-ID: 3HXcvTYpAkA
2017-08-03 11:31:54 +01:00
Michael Smith 018d260a4d Bug 1373739 - Set up automated test running for WPT in headless mode. r=jgraham
Currently these are enabled for Linux and Windows, using the corresponding WPT
symbols with an "H" suffix to match the Mn->MnH convention followed by the
Marionette tests.

For Linux, the tests are set to run with a simulated 1600x1200 screen
resolution, which matches the Docker configuration. The default 1366x768 for
headless mode results in some unexpected failures due to windows not being
able to reach the full sizes the web platform tests expect.

For Windows, the simulated screen resolution is set to 1024x768, which is what
I've determined to be the resolution that Windows VMs run under within our
testing infrastructure. Setting a different screen resolution causes some web
platform tests to unexpectedly pass (in particular, several in
open-features-non-integer-height.html).

A "headless" variable is added to the environment that the WPT metadata
(.ini) files can access, indicating whether or not the test is running in
headless mode. This is used to mark the reftest bdi-neutral-wrapped.html as an
expected pass on Linux under headless mode: it normally fails (spuriously) due
to differences in scrollbar sizing, but scrollbars aren't rendered in headless
mode.

MozReview-Commit-ID: 3usazOoxx3q
2017-06-21 15:14:05 -07:00
James Graham b896309369 Bug 1381858 - Ensure we have a valid window handle before trying to wait, r=ato
If we switched to a window that is now closed (possible in a reftest
run, for example), we might end up calling execute_async_script
without a valid current window. The runner window is always supposed
to be open (and if it isn't then waiting won't make much sense
anyway), so switch to that before executing script in wait().

MozReview-Commit-ID: ERoN4sz5SuH
2017-07-20 13:05:29 +01:00
James Graham d16b145c69 Bug 1381856 - Unbreak --include and --exclude command line arguments, r=ato
MozReview-Commit-ID: 39DzRhvnE3x
2017-07-20 13:05:28 +01:00
James Graham 4163e541cc Bug 1381842 - Update web-platform-tests to revision 85ae24e3dc80ee63b6dc2ed78a922cff68c6e819, a=testonly
MozReview-Commit-ID: DfvN9mAFYhI
2017-07-20 13:05:25 +01:00
J. Ryan Stinnett 3c49d1d237 Bug 1380082 - Check Stylo env var for WPT processing. r=jgraham
Test harnesses may use STYLO_FORCE_ENABLED, so we need to check this value when
building WPT test conditions.

MozReview-Commit-ID: HXZZqBkRdOv
2017-07-11 14:04:44 -05:00
Maja Frydrychowicz 87b2488a52 Bug 1376974 - Get all wpt test types working with --try-test-paths try syntax; r=jgraham
`try-test-paths` is set up to map anything under testing/web-platform
to the web-platform-tests flavour. By default, the web-platform-tests flavour
refers to the testharness test type for wptrunner, so we need to account for
reftest and wdspec test types.

This change causes mozharness to omit the test-type argument to wptrunner when
try-test-paths is being used, therefore making wptrunner determine the
appropriate test type for each requested test.

MozReview-Commit-ID: 7TDAShdDM4g
2017-06-28 11:13:39 -04:00
James Graham 30c9cb3609 Bug 1376228 - Pass group_metadata through the running state, r=maja_zf
MozReview-Commit-ID: CZUxRLh7j6B
2017-06-26 16:37:47 -07:00
James Graham 3f9cc78d13 Bug 1363428 - Use the internal reftest implementation by default on Linux and OSX, r=ato
This is faster and works better in some cases (e.g. with SVG). However
it doesn't work correctly on Windows yet, so remains disabled there by default.

MozReview-Commit-ID: AXyeFUGfVgx
2017-06-24 12:03:30 +01:00
James Graham c73097283f Bug 1363428 - Add per-test-queue metadata to wptrunner, r=ato,maja_zf
This adds a metadata object associated with each test queue, and uses
it to pass cache information into the marionette internal reftest
implementation so that we are able to cache only those canvases that
will be reused.

MozReview-Commit-ID: zASrlvnri3
2017-06-24 12:03:11 +01:00
James Graham 255a1ed594 Bug 1363428 - Switch wptrunner to use a deque for test groups, r=ato,jdm
Initially wptrunner had a single test queue that was shared between
all processes. Then for --run-by-dir it changed to a queue of
queues. This change makes it a queue of deques, which is simpler,
since the test queues themselves are no longer shared between
processes. It also changes the implementation when we aren't using
--run-by-dir but are using multiple processes to pre-group the tests
into N queues rather than sharing a single queue between all
processes. This is necessary to use the deque of course, but
importantly anticipates a change in which we will pre-compute per
queue metdata for each queue; that doesn't work well with one shared
queue. The downside of this change is that there is no work stealing,
so it may be less efficient if we randomly assign many slow jobs to
one particular process.

MozReview-Commit-ID: 7e0Odk7yDwr
2017-06-24 12:03:11 +01:00
James Graham 4aa5577d7a Bug 1363428 - Support Marionette reftest implementation in wptrunner, r=maja_zf
Add an InternalReftestImplmentation that runs reftests using the
built-in Marionette reftest primitives rather than screenshots. This
is actiivated using the --internal-reftest switch, although that may
become the default in the future.

MozReview-Commit-ID: 6HxGuBsTITf
2017-06-24 12:03:11 +01:00
James Graham fff575a843 Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-24 12:03:11 +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 4788206dcd Bug 1363428 - Use the internal reftest implementation by default on Linux and OSX, r=ato
This is faster and works better in some cases (e.g. with SVG). However
it doesn't work correctly on Windows yet, so remains disabled there by default.

MozReview-Commit-ID: AXyeFUGfVgx
2017-06-16 18:05:50 +01:00
James Graham 89b55ad34b Bug 1363428 - Add per-test-queue metadata to wptrunner, r=ato,maja_zf
This adds a metadata object associated with each test queue, and uses
it to pass cache information into the marionette internal reftest
implementation so that we are able to cache only those canvases that
will be reused.

MozReview-Commit-ID: zASrlvnri3
2017-05-10 14:56:20 +01:00
James Graham 5a163a1c1a Bug 1363428 - Switch wptrunner to use a deque for test groups, r=ato,jdm
Initially wptrunner had a single test queue that was shared between
all processes. Then for --run-by-dir it changed to a queue of
queues. This change makes it a queue of deques, which is simpler,
since the test queues themselves are no longer shared between
processes. It also changes the implementation when we aren't using
--run-by-dir but are using multiple processes to pre-group the tests
into N queues rather than sharing a single queue between all
processes. This is necessary to use the deque of course, but
importantly anticipates a change in which we will pre-compute per
queue metdata for each queue; that doesn't work well with one shared
queue. The downside of this change is that there is no work stealing,
so it may be less efficient if we randomly assign many slow jobs to
one particular process.

MozReview-Commit-ID: 7e0Odk7yDwr
2017-05-28 21:14:28 +01:00
James Graham 2db613ed92 Bug 1363428 - Support Marionette reftest implementation in wptrunner, r=maja_zf
Add an InternalReftestImplmentation that runs reftests using the
built-in Marionette reftest primitives rather than screenshots. This
is actiivated using the --internal-reftest switch, although that may
become the default in the future.

MozReview-Commit-ID: 6HxGuBsTITf
2017-05-10 11:41:33 +01:00
James Graham db586e4e5d Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-05-10 10:51:10 +01:00
James Graham 1ead171262 Bug 1375661 - Add a --list-tests option to wptrunner, r=ahal
MozReview-Commit-ID: 3SVF187zmrR
2017-06-14 13:18:01 +01:00
James Graham 044e547b15 Bug 1354750 - Disable loading mozlog plugin with pytest for wpt, r=ato
Loading mozlog from within the executor process makes us prone to
deadlocks since we can't guarantee that the log mutex isn't acquired
when we fork() the parent process, and the python multiprocessing
module doesn't respect posix guidelines about execv()ing a new process
after a fork().

To avoid this specific instance of the probelm we stop pytest loading
the mozlog plugin which we aren't actually using but is loaded by
default when mozlog is available.

MozReview-Commit-ID: IIllNZVOUJz
2017-06-21 16:46:39 +01:00
Wes Kocher 0942b0ec9f Merge inbound to m-c a=merge
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Carsten "Tomcat" Book 5922ad7889 Backed out 17 changesets (bug 1363428) for various testfailures
Backed out changeset 70ce0f808a66 (bug 1363428)
Backed out changeset 5a9a4960a48a (bug 1363428)
Backed out changeset a927531f40db (bug 1363428)
Backed out changeset f1114f4af79a (bug 1363428)
Backed out changeset 4ea37712ed33 (bug 1363428)
Backed out changeset 11692e3c22eb (bug 1363428)
Backed out changeset a85d3f3544cb (bug 1363428)
Backed out changeset 6a7985dda6a1 (bug 1363428)
Backed out changeset f09573370d2f (bug 1363428)
Backed out changeset 2b5ad17f890a (bug 1363428)
Backed out changeset c7086fa5816c (bug 1363428)
Backed out changeset d2f9bdba146c (bug 1363428)
Backed out changeset 014b9aeb9ac2 (bug 1363428)
Backed out changeset 41d682cbc05f (bug 1363428)
Backed out changeset e2e74e66ca3e (bug 1363428)
Backed out changeset 97db3b14fafd (bug 1363428)
Backed out changeset 42e2ae612663 (bug 1363428)
2017-06-21 15:16:00 +02:00
James Graham 6b70af7016 Bug 1363428 - Use the internal reftest implementation by default on Linux and OSX, r=ato
This is faster and works better in some cases (e.g. with SVG). However
it doesn't work correctly on Windows yet, so remains disabled there by default.

MozReview-Commit-ID: AXyeFUGfVgx
2017-06-21 11:25:59 +01:00
James Graham 779f9b8fa8 Bug 1363428 - Add per-test-queue metadata to wptrunner, r=maja_zf
This adds a metadata object associated with each test queue, and uses
it to pass cache information into the marionette internal reftest
implementation so that we are able to cache only those canvases that
will be reused.

MozReview-Commit-ID: zASrlvnri3
2017-06-21 11:25:58 +01:00
James Graham 91d9dfd0c1 Bug 1363428 - Switch wptrunner to use a deque for test groups, r=maja_zf, jdm
Initially wptrunner had a single test queue that was shared between
all processes. Then for --run-by-dir it changed to a queue of
queues. This change makes it a queue of deques, which is simpler,
since the test queues themselves are no longer shared between
processes. It also changes the implementation when we aren't using
--run-by-dir but are using multiple processes to pre-group the tests
into N queues rather than sharing a single queue between all
processes. This is necessary to use the deque of course, but
importantly anticipates a change in which we will pre-compute per
queue metdata for each queue; that doesn't work well with one shared
queue. The downside of this change is that there is no work stealing,
so it may be less efficient if we randomly assign many slow jobs to
one particular process.

MozReview-Commit-ID: 7e0Odk7yDwr
2017-06-21 11:25:57 +01:00
James Graham c9b99e7fbc Bug 1363428 - Support Marionette reftest implementation in wptrunner, r=maja_zf
Add an InternalReftestImplmentation that runs reftests using the
built-in Marionette reftest primitives rather than screenshots. This
is actiivated using the --internal-reftest switch, although that may
become the default in the future.

MozReview-Commit-ID: 6HxGuBsTITf
2017-06-21 11:25:57 +01:00
James Graham eb02cbde1e Bug 1363428 - Add reftest-specific endpoints to Marionette, r=ato
This adds commands to start a reftest session, run a test, and end the
session. It as assumed that after you start a reftest session you will
just run reftests until you end the session. When starting a session
the user provides a string indicating when screenshots should be
taken, and an object mapping urls to a count of the number of times
that url is expected to be used in the session, to help with
caching. Running the tests takes a url to a test, an expected status,
a timeout, and a nested list of possible references, in which each
entry at a specific level is combined by OR and nested references are
combined by AND.

The implementation is heavilly inspired by the existing reftest
harness, starting a minimal window with no tabs, and loading the urls
directly in there. In order to get a screenshot in the e10s case we
have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the
screenshot.

For performance we heavily cache canvases; for references that will be
repeated we cache the full canvas with image, and we also cache a
single canvas to use for all other screenshots to avoid the overhead
of repeatedly creating a new canvas element.

MozReview-Commit-ID: JOFvtmH7tg
2017-06-21 11:25:57 +01:00
Andreas Tolfsen f023aa8347 Bug 1370863 - Remove log() call from WPT Marionette executor; r=jgraham
MozReview-Commit-ID: G1EKpTswJ8h
2017-06-09 14:23:56 +01:00
Joel Maher a0d2e3df46 Bug 1374743 - allow wpt-update to work on windows and not rewrite newlines. r=jgraham
MozReview-Commit-ID: EHl6l7OGECg
2017-06-20 17:52:03 -04:00
James Graham 27733b2d4a Bug 1370461 - Allow setting number of stylo threads in wpt, r=maja_zf
MozReview-Commit-ID: C5xBEglB4fm
2017-06-06 13:58:46 +01:00
James Graham 0a469d743c Bug 1370461 - Add support for stylo metadata in wpt, r=maja_zf
MozReview-Commit-ID: FdrZtQpb0KB
2017-06-06 13:51:55 +01:00
James Graham 155bec6a3e Bug 1373709 - Don't infinite loop when a test expects to crash, r=ato
In order to avoid the leak checker complaining about missing output,
we restart the browser before running tests that are expected to
crash. But as part of that restart we end up checking again if a
restart is required and so end up in an infinite loop. To break out of
that loop we simply check if this is the same test as during the last
iteration, and don't ask to restart in that case.

MozReview-Commit-ID: 90gsmqVCRsD
2017-06-16 16:34:44 +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 7c35958786 Bug 1370936 - Default to not creating a commit when updating wpt metadata, r=ato
MozReview-Commit-ID: FaYNn0hkXkD
2017-06-16 10:43:16 +01:00
James Graham a61667c45c Bug 1370936 - Use platform agnostic check for an absolute path, r=ato
MozReview-Commit-ID: 9G4yzsSBciD
2017-06-16 10:32:37 +01:00