Commit Graph
214 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
Sebastian Hengst 1f22e7f4c1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02: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
Andreas Tolfsen 688bc94a1b Bug 1396838 - Remove window state from wdpsec tests. r=jgraham
MozReview-Commit-ID: 7zogEgoABnV
2017-09-05 17:02:41 +01:00
Andreas Tolfsen dfea6a730a Bug 1396831 - Update wdclient and wdspec expected error codes. r=jgraham
MozReview-Commit-ID: IwydIfDWRwC
2017-09-05 16:11:17 +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 488a927396 Bug 1391691 - Fix undefined variable error with client.Session#position(). r=automatedtester
The x and y variables are not defined but needs to be extracted from
new_position.

MozReview-Commit-ID: Ds8cPlufjUa
2017-08-18 18:34:44 +01:00
Andreas Tolfsen f59199d2bf Bug 1391691 - Add wdclient documentation for window manipulation. r=automatedtester
MozReview-Commit-ID: 758QOhUfJzs
2017-08-18 18:33:52 +01:00
Wes Kocher 14df70e770 Backed out 10 changesets (bug 1391691) for wpt failures a=backout
Backed out changeset 666ac679317e (bug 1391691)
Backed out changeset 46f82e1e2cde (bug 1391691)
Backed out changeset 1fd98ace1473 (bug 1391691)
Backed out changeset 5bddbd90ec7c (bug 1391691)
Backed out changeset 4653134d01ef (bug 1391691)
Backed out changeset fd88b612ac2e (bug 1391691)
Backed out changeset 6306abc0b5e9 (bug 1391691)
Backed out changeset 649b0e761c87 (bug 1391691)
Backed out changeset 6c48daaad075 (bug 1391691)
Backed out changeset 17aeed1f6454 (bug 1391691)

MozReview-Commit-ID: 6Cw1QibNQKM
2017-08-21 09:19:10 -07:00
Andreas Tolfsen c30803e0b1 Bug 1391691 - Fix undefined variable error with client.Session#position(). r=automatedtester
The x and y variables are not defined but needs to be extracted from
new_position.

MozReview-Commit-ID: Ds8cPlufjUa
2017-08-18 18:34:44 +01:00
Andreas Tolfsen fb99a6ae58 Bug 1391691 - Add wdclient documentation for window manipulation. r=automatedtester
MozReview-Commit-ID: 758QOhUfJzs
2017-08-18 18:33:52 +01:00
Wes Kocher f4e87a1fb3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
James Graham 313e754657 Bug 1391582 - Update web-platform-tests to revision b039c00a086291f97df9caa6b999e9d123c91b27, a=testonly
MozReview-Commit-ID: 1n6P2WJZJy3
2017-08-18 17:26:53 +01: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
Andreas Tolfsen 07ffb94a86 Bug 1388365 - Add minimize and fullscreen to client.Window. r=whimboo
MozReview-Commit-ID: KMqJmnAwGEY
2017-08-08 15:36:38 +01:00
Andreas Tolfsen 312af58518 Bug 1388365 - Add client.Window#state and #rect. r=whimboo
Introduces two new APIs on client.Window in the WPT WebDriver client:
client.Window#state and client.Window#rect.  The latter is used to reduce
raw calls amongst client.Window's shorthands to GET window/rect.

MozReview-Commit-ID: Kf4P2q93QaL
2017-08-08 14:59:09 +01:00
Andreas Tolfsen 6995f170b2 Bug 1381876 - Skip resetting namespaced interfaces in client.Session. r=automatedtester
Resetting these interfaces means they will not be set up again if the
client.Session instance is reused.

MozReview-Commit-ID: 7JW61VrMFpD
2017-08-01 18:23:47 +01:00
Andreas Tolfsen 060da27410 Bug 1381876 - Make client.Session#maximize a method. r=automatedtester
The Maximize Window command is a POST endpoint and should consequently
be a method, not a property.

MozReview-Commit-ID: DJfKdhMIX75
2017-08-01 18:22:52 +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
David Burns 52cfcc03e9 Bug 1364389 - Update capabilities with value returned from the remote end r=ato
When a new session is created the server returns a few details of the
remote end. It replaces the contents of the capabilities variable with
what is returned so that it can be used when accessing it from the
session object.

MozReview-Commit-ID: DB4iMpYMKXU
2017-07-27 21:45:59 +01:00
Sebastian Hengst 6bc1a67e1a Backed out changeset d04626de94f3 (bug 1364389) 2017-08-02 00:14:43 +02:00
David Burns 7a4806d1c2 Bug 1364389 - Update capabilities with value returned from the remote end r=ato
When a new session is created the server returns a few details of the
remote end. It replaces the contents of the capabilities variable with
what is returned so that it can be used when accessing it from the
session object.

MozReview-Commit-ID: DB4iMpYMKXU
2017-07-27 21:45:59 +01:00
Sebastian Hengst 0963b4d841 Backed out changeset 468dc861fec0 (bug 1364389) 2017-08-01 22:42:15 +02:00
David Burns 729ed5e4a0 Bug 1364389 - Update capabilities with value returned from the remote end r=ato
When a new session is created the server returns a few details of the
remote end. It replaces the contents of the capabilities variable with
what is returned so that it can be used when accessing it from the
session object.

MozReview-Commit-ID: DB4iMpYMKXU
2017-07-27 21:45:59 +01:00
Andreas Tolfsen a13fc19522 Bug 1385873 - Add client.Element#selected to WebDriver client. r=automatedtester
MozReview-Commit-ID: 7UhRpsE07b1
2017-07-31 15:43:00 +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
Henri Sivonen cc83c1cd0f Bug 1266495 - Remove <isindex>. r=wchen
MozReview-Commit-ID: KM0sTMM1GaD
2017-07-05 11:42:04 +03: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