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
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
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
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
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
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
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
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
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
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
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
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
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
`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
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
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
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
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
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
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