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

101 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen a0995b33db Bug 1355888 - Remove marionette.enabled pref from wptrunner; r=jgraham
MozReview-Commit-ID: IzASL0SBCsR

--HG--
extra : rebase_source : 2614e902138a6e370c024be0680458e61388d344
2017-04-13 15:09:11 +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
Andreas Tolfsen 53fa70a502 Bug 1352463 - Increase wdspec timeouts; r=jgraham
Increases WPT wdspec timeouts to more realistic values.  Because wdspec
tests interact with the browser from an OOP program, they require more
time to run.  Interactive browser tests are also known for generally
being more expensive to run.

25 seconds for the default timeout and 120 seconds for the long timeout
are values picked out of the air and likely needs to be further refined
in the future.  It is however the current belief that this moves us in
the right direction.

Further improvements to this approach may involve letting wdspec tests
define timeouts on a per-file or a per-test function level through the
use of pytest-timeouts, but this is purely speculative at this point.
It is the current recommendation to adjust the number of tests and the
runtime duration of the tests in a file according to these new defaults.

MozReview-Commit-ID: 4I3Xz9G6lzv

--HG--
extra : rebase_source : 5ec7439e736dc9978828e420bd31195e63130fed
2017-03-31 17:42:26 +01:00
Andreas Tolfsen 6564760558 Bug 1352463 - Define WPT timeouts on the test type level; r=jgraham
Certain test types have a need for other defaults than the
wpttest.DEFAULT_TIMEOUT and wpttest.LONG_TIMEOUT values.  This patch
changes wptrunner to define default- and long timeouts on a test type
level.  This allows a test type to override the default durations defined
in the abstract Test.default_timeout and Test.long_timeout.

Concrete classes, such as ReftestTest and WdspecTest, may override these
class properties.

MozReview-Commit-ID: IS6df5vuIDC

--HG--
extra : rebase_source : a3f37d4524902f2b0d54e14126b57da327f0ec06
2017-03-31 17:38:35 +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 f7b044df6e Bug 1352351 - Fix infinite loop getting next test with --run-by-dir, r=ato
If getting a test from the queue failed, we would loop forever rather
than trying the next queue.

MozReview-Commit-ID: K5YxCZPtx4l
2017-04-10 13:44:15 +01:00
James Graham 729ae33ced Bug 1352357 - Add leak checking support for web-platform-tests, r=automatedtester
Implement gecko leak checking for web-platform-tests, but do not
enable it yet due to oranges. Allows disabling leak checks for a
specific test using a 'leaks' key in test metadata. This causes the
browser to restart before running the (group of) tests with leak
checking disabled. The feature can be enabled by passing --leak-check
on the command line.

MozReview-Commit-ID: 1kBnJkOaeu8

--HG--
extra : rebase_source : 2ad24889743a9a76a5027d68c46223617abd0f72
2017-01-30 08:18:36 -08:00
Sebastian Hengst 9115045faf Backed out changeset 024d5d30566d (bug 1352351) for frequently failing resume-timer-on-history-back.html on Windows. r=backout a=backout
MozReview-Commit-ID: JSU0OCtbAOe
2017-04-01 19:13:16 +02:00
James Graham 3264854ac3 Bug 1352351 - Fix infinite loop getting next test with --run-by-dir, r=ato
If getting a test from the queue failed, we would loop forever rather
than trying the next queue.

MozReview-Commit-ID: K5YxCZPtx4l

--HG--
extra : rebase_source : f30618d0b26b740ba9748b912507fd03558f6d47
2017-03-23 22:30:35 +00:00
James Graham e06a4a3599 Bug 1338397 - Use timeout multipler to adjust browser startup timeout in wpt, r=maja_zf
For gecko builds with --disable-optimize everything is very very slow;
enough that the fixed 60s timeout for the browser to start is
insufficient, and various marionette timeouts may also be hit. To
alleviate this problem either disable timeouts or multiply them by the
timeout multiplier which is generally set to around 3 for debug
builds. This seems sufficient to solve the problem on the hardware
developers actually have.

MozReview-Commit-ID: I3zHJGXlpnd

--HG--
extra : rebase_source : 78b14a7b48b8ddfd0ad249a84b8cc94872639cfd
2017-03-23 17:50:19 +00:00
William Lachance d0176afdb9 Bug 1350905 - Add --setpref option to wpt/mach command line r=jgraham
MozReview-Commit-ID: 970rspZ7c8a

--HG--
extra : rebase_source : e0ae5073d3c70f1835f3436639f2286d128fcbe0
2017-03-27 11:20:27 -04:00
Andreas Tolfsen 869b1b932a Bug 1344748 - Rename and register Marionette prefs; r=maja_zf
This change renames the following Marionette preferences:

    	marionette.defaultPrefs.enabled	marionette.enabled
    	marionette.defaultPrefs.port	marionette.port
    	marionette.force-local		marionette.forcelocal
    	marionette.logging		marionette.log.level

The old preference names are still usable, but are henceforth considered
deprecated.  They will be removed when Firefox 55 ships.

It also registers these preferences in Firefox so that they are
discoverable through about:config.

This patch also refactors testing/marionette/components/marionette.js.

MozReview-Commit-ID: 1dAMQS2e0og

--HG--
extra : rebase_source : e59a9e656442d8e8cebeaf5e741dc8306436bc22
2017-03-09 11:12:53 +00:00
James Graham 4828a08abf Bug 1333114 - Refactor wpt TestRunner, r=automatedtester,Ms2ger
In order to support leak checking in web-platform-tests, we have to
support restarting the browser before a test starts, which is
complicated by the architecture of wptrunner that puts the TestRunner
and associated Executor in a separate process. In the previous
architecture the Executor process grabbed the test to run from the
queue so it wasn't possible to restart the browser once the test was
known without considerable difficulty.

The primary goal of this refactor is to give the TestRunner access to
the test before it is passed to the executor. However imlementing this
was complicated by the poor structure of the existing code. To make
things more comprehensible the TestRunner class is factored into a
more explicit state machine, with a run() loop that either transitions
the runner into the next state or waits for an external command which
causes such a state transition.

MozReview-Commit-ID: 7cvSkYlCSKe

--HG--
extra : rebase_source : 47eaeb69f4cf97d7b560dac301585a7df77475fc
2017-01-30 08:06:44 -08:00
Shawn Huang 4f6cfa8bc7 Bug 1348214 - Clear storage per origin when loading storage test cases, r=jgraham
MozReview-Commit-ID: ndsajg7Glb

--HG--
extra : rebase_source : 847950b2eaf7f9e1cf779ed5d3c707bc745dd11c
2017-03-20 18:34:15 +08:00
James Graham 87874aeec7 Bug 1346782 - Use full path when searching for wpt directory metadata, r=Ms2ger
This avoids a cache collision between directories in the main test set
and vendor-specific tests under some different metadata root.

MozReview-Commit-ID: 5WaEtaLJkVD
2017-03-17 14:42:22 +00:00
James Graham 74aa2f1086 Bug 1346772 - Pass wpt hostnames to firefox when starting webdriver tests, r=ato
Ensure that the webdriver tests can access the web-platform.test
hostnames in the same way as other tests by setting the necessary
Firefox pref as part of the capabilities.

MozReview-Commit-ID: At5ENJY7UXA
2017-03-17 14:35:33 +00:00
James Graham 1b47ac1eff Bug 1345490 - Update to latest wptrunner, a=testonly
MozReview-Commit-ID: HeIGX0kPRFx
2017-03-17 14:35:31 +00:00
Sebastian Hengst f19322a8ec Backed out changeset 5f0452991bcd (bug 1345490) 2017-03-15 19:23:11 +01:00
Sebastian Hengst 75a34e8f10 Backed out changeset a2d3dacaac0b (bug 1346772) 2017-03-15 19:23:06 +01:00
Sebastian Hengst aa17b19b50 Backed out changeset c96c8279f39b (bug 1346782) 2017-03-15 19:22:32 +01:00
James Graham 57353300a4 Bug 1346782 - Use full path when searching for wpt directory metadata, r=Ms2ger
This avoids a cache collision between directories in the main test set
and vendor-specific tests under some different metadata root.

MozReview-Commit-ID: 5WaEtaLJkVD
2017-03-15 15:20:53 +00:00
James Graham fd56849e08 Bug 1346772 - Pass wpt hostnames to firefox when starting webdriver tests, r=ato
Ensure that the webdriver tests can access the web-platform.test
hostnames in the same way as other tests by setting the necessary
Firefox pref as part of the capabilities.

MozReview-Commit-ID: At5ENJY7UXA
2017-03-15 15:20:53 +00:00
James Graham b8da4d601f Bug 1345490 - Update to latest wptrunner, a=testonly
MozReview-Commit-ID: HeIGX0kPRFx
2017-03-15 15:20:53 +00:00
Andreas Tolfsen 32ce7fb9b3 Bug 1319237 - Make session fixture module scoped; r=jgraham
I recently changed it to function scoped, which was a mistake.
pytest complains if it is not module scoped.

MozReview-Commit-ID: GYP9Ky1avks

--HG--
extra : rebase_source : 0776803493f7175d1c408c50f06fa6112c196abc
2016-11-21 23:39:42 +01:00
Andreas Tolfsen 613131d64a Bug 1319237 - Allow pytests to be skipped imperatively at runtime; r=jgraham
It is required to skip certain WebDriver tests imperatively at runtime,
such as for the Get Window Size and Get Window Position commands, which
are only available at certain configurations.

MozReview-Commit-ID: 9ERYkYm34iI

--HG--
extra : rebase_source : 5fed98284ab6f32009cdb1fa819cf2337adb4a73
2016-11-21 23:38:42 +01:00
Wes Kocher 10665c1427 Backed out 14 changesets (bug 1319237) for android xpcshell failures a=backout
Backed out changeset c85849b790c5 (bug 1319237)
Backed out changeset 9746878e5fc7 (bug 1319237)
Backed out changeset 1f7f75c57c59 (bug 1319237)
Backed out changeset 4dc796bbcfaa (bug 1319237)
Backed out changeset f8449c471b8f (bug 1319237)
Backed out changeset f2bdf078f39a (bug 1319237)
Backed out changeset 8df8cda56942 (bug 1319237)
Backed out changeset f651a9e54a57 (bug 1319237)
Backed out changeset 76c8aafbd933 (bug 1319237)
Backed out changeset a2096fa29cd7 (bug 1319237)
Backed out changeset af71a9376bef (bug 1319237)
Backed out changeset 778721edd8b9 (bug 1319237)
Backed out changeset feaf6ba3bd9a (bug 1319237)
Backed out changeset f5f206ed675b (bug 1319237)

MozReview-Commit-ID: EpmToL8Xqfz
2017-02-06 11:28:28 -08:00
Andreas Tolfsen 258e75ab6a Bug 1319237 - Make session fixture module scoped; r=jgraham
I recently changed it to function scoped, which was a mistake.
pytest complains if it is not module scoped.

MozReview-Commit-ID: GYP9Ky1avks

--HG--
extra : rebase_source : ad96a48fe19c987f3021225f11875d6e80858ccf
2016-11-21 23:39:42 +01:00
Andreas Tolfsen 1025eac334 Bug 1319237 - Allow pytests to be skipped imperatively at runtime; r=jgraham
It is required to skip certain WebDriver tests imperatively at runtime,
such as for the Get Window Size and Get Window Position commands, which
are only available at certain configurations.

MozReview-Commit-ID: 9ERYkYm34iI

--HG--
extra : rebase_source : e30e2fa1473e25511dcec0361ad4a7eecce04e67
2016-11-21 23:38:42 +01:00
Maja Frydrychowicz f965cd20c8 Bug 1328726 - Add server fixture to pytestrunner; r=ato,jgraham
MozReview-Commit-ID: B64A6ZR2Sz8

--HG--
extra : rebase_source : 9e4de01da5910030b61ec34669b56d9549e4f536
2017-01-09 18:34:30 -05:00
Wes Kocher abd222ddc9 Backed out 8 changesets (bug 1328726) for webdriver bustage a=backout CLOSED TREE
Backed out changeset 1039c2ca90ee (bug 1328726)
Backed out changeset de5830f1b8ab (bug 1328726)
Backed out changeset c039479ce446 (bug 1328726)
Backed out changeset 6d9673eedd91 (bug 1328726)
Backed out changeset be79eb6f9d64 (bug 1328726)
Backed out changeset 6be0203f1a26 (bug 1328726)
Backed out changeset 4430151d0cb4 (bug 1328726)
Backed out changeset 2143f1aa8087 (bug 1328726)

MozReview-Commit-ID: GrWBTO2rhXm
2017-01-25 10:51:08 -08:00
Maja Frydrychowicz 39f82971a9 Bug 1328726 - Add server fixture to pytestrunner; r=ato,jgraham
MozReview-Commit-ID: B64A6ZR2Sz8

--HG--
extra : rebase_source : 9e4de01da5910030b61ec34669b56d9549e4f536
2017-01-09 18:34:30 -05:00
Wes Kocher 26b0e2ee32 Backed out 7 changesets (bug 1328726) for lint failures a=backout
Backed out changeset 93218dc2249f (bug 1328726)
Backed out changeset 0e6e8d3fccec (bug 1328726)
Backed out changeset 5606cc9b0654 (bug 1328726)
Backed out changeset 40fceb2644d7 (bug 1328726)
Backed out changeset 0c10680f0705 (bug 1328726)
Backed out changeset a2520d52c7cc (bug 1328726)
Backed out changeset ec1a2cd38ffe (bug 1328726)

MozReview-Commit-ID: KnktbcccJoR
2017-01-24 13:55:07 -08:00
Maja Frydrychowicz 8d28c860ef Bug 1328726 - Add server fixture to pytestrunner; r=ato,jgraham
MozReview-Commit-ID: B64A6ZR2Sz8

--HG--
extra : rebase_source : 9e4de01da5910030b61ec34669b56d9549e4f536
2017-01-09 18:34:30 -05:00
James Graham aa476ef0f3 Bug 1331899 - Capture the full viewport for reftest screenshots, r=gsnedders
MozReview-Commit-ID: H3k1ckIWBCD
2017-01-19 14:24:28 +00:00
James Graham 20f892ddce Bug 1331899 - wptrunner changes to support v4 manifests, r=Ms2ger
The manifest changes came with some trivial API changes, mostly
removing unused arguments.

MozReview-Commit-ID: G9RZNds4MIE
2017-01-19 14:23:46 +00:00
Thomas Charles acf2f9d4dd Bug 1316975 - Correct function definition style in Marionette components; r=ato
No functional changes.

MozReview-Commit-ID: 25cWAnpRB9H

--HG--
extra : rebase_source : c8b14bf47a476488568f54d3640b51bbeed5b04b
2016-12-04 12:42:52 +01:00
Andreas Tolfsen 0e34276dbf Bug 1316622 - Move wptrunner to new Marionette timeouts API; r=jgraham
MozReview-Commit-ID: 2ZnodSJ8L4S

--HG--
extra : rebase_source : 3238346e6dac3879303927514dde90a9f7c99ba5
2016-11-10 21:05:28 +00:00
Ryan VanderMeulen c2e0dbedb5 Merge m-c to inbound. a=merge 2016-11-18 15:48:29 -05:00
James Graham 1938144b4e Bug 1318666 - Update to latest wptrunner, a=testonly
MozReview-Commit-ID: 9HnoUTtAf4l
2016-11-18 15:07:38 +00:00
James Graham 92bba80dea Bug 1312676 - Reuse the same window for reftests, r=Ms2ger
MozReview-Commit-ID: kGIoK8QfAe

--HG--
extra : rebase_source : 2138a5488ab3b9135a0096b630c1066855a5300b
2016-10-19 10:44:07 +01:00
James Graham 53e100ab0d Bug 1312675 - Try harder to close existing windows after each testharness test, r=ato
MozReview-Commit-ID: DVV5PAfRxII
2016-10-25 18:11:42 +01:00
James Graham 053e1545f8 Bug 1238043 - Enable assert stack fixup for wpt, r=ted
MozReview-Commit-ID: GLZ4nMLilel

--HG--
extra : rebase_source : 8eaedf4538bf3da0737e7b3f89d35888feb1441f
2016-10-12 23:04:58 +01:00
Gregory Szorc c9cba5b688 Bug 1305877 - Change WPT chunking default to directory hash; r=jgraham
Before this, the default of "equal_time" resulted in W7 jobs on Windows
debug builds executing over 6 times slower than the shortest chunk.
Chunking by hash of test directory makes the chunk sizes more consistent.
They aren't as consistent as a full path hashing or random chunking. But
it is an improvement.

MozReview-Commit-ID: 7bUSxY8GhH7

--HG--
extra : rebase_source : daa42b3e757a18fef1233338c0686154b387851d
extra : source : c4ae7809108445a184168a62dac6dab894c7f292
2016-09-30 20:40:03 -07:00
Gregory Szorc e0e9651cdb Bug 1305877 - Add a directory hash chunker; r=jgraham
Per discussion in the bug, we want automation to behave like local
development mode with regards to running tests in a directory. That
means we want all tests in a directory to be executed together.

We introduce a directory hash chunker. It is like the HashChunker
except it hashes the directory of the test (not the full path). This
ensures that all tests in the same directory end up in the same
chunk.

Compared to HashChunker, this will likely make slow directories
contribute to higher variance in chunk execution times.

MozReview-Commit-ID: CeV0Gi6NRRp

--HG--
extra : rebase_source : 88279fbad4a2f0ae3fd6d27621ecc0d3c7e6d8ca
2016-09-29 14:42:50 -07:00
Gregory Szorc 0b9bb32229 Bug 1305877 - Make HashChunker stable; r=jgraham
The built-in hash() function uses the backing memory address for
hashing. This is essentially random. Switch to md5 so input is
consistently hashed across processes.

MozReview-Commit-ID: D52uzttE5hc

--HG--
extra : rebase_source : b7f15e519ec0ba05d0a310fe0470d82893a0a07c
extra : source : 4c8e1c96a27df961c1dd2e984745d06757e8a2d4
2016-09-27 16:31:26 -07:00
James Graham ffbb3958e1 Bug 1304046 - Pass absolute test path in to pytest, r=Ms2ger
MozReview-Commit-ID: 5XpFQoNPP5t

--HG--
extra : rebase_source : ad147c9770859360e120c8c5b5c0c58d3b8ae97e
2016-09-23 16:09:45 +01:00
James Graham f74badcbd1 Bug 1304046 - Update geckodriver command line arguments for v0.11, r=ato
MozReview-Commit-ID: QIBvXwOd2c

--HG--
extra : rebase_source : fe1ea2ba398d08dc4aa8131b84ecea55cfbe3233
2016-09-23 13:25:34 +01:00
Aryeh Gregor 6072e242cb Bug 1213668 - wpt breaks with HTTP proxy; r=jgraham
./mach web-platform-tests tries to access the tests at
http://web-platform.test/.  If an HTTP proxy is configured, it tries to
access it via the proxy, which fails.  Disabling the proxy entirely
fixes the problem and should probably have no adverse effects, although
a cleaner solution would be to skip proxies only for that domain (as is
done with localhost).

MozReview-Commit-ID: IkIRLwbH16P
2016-08-21 16:06:13 +03:00
James Graham a21827ffd3 Bug 1279813 - Handle edge cases in wpt update better, r=Ms2ger
Better support for cases where tests get conflicting results and
where there is no expected value in a manifest.

MozReview-Commit-ID: EHYpPa64JJL
2016-06-23 10:36:47 +01:00