Commit Graph

1045 Commits

Author SHA1 Message Date
Wes Kocher
ea40157e54 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
c9e960f859 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

--HG--
extra : rebase_source : ab5a2ef2e450b9bbdc6bc3c9487ed5dfda2c1d4b
2017-05-10 10:51:10 +01:00
Carsten "Tomcat" Book
736f72b667 Backed out changeset ab715ee9ef99 (bug 1363879) 2017-06-23 12:15:25 +02:00
David Anderson
a3a1ca6937 Add Advanced Layers to the reftest sandbox. (bug 1363879 part 24, r=mattwoodrow)
--HG--
extra : rebase_source : f5014d9533cb7f160192c9ec43c4822dc155b078
2017-06-22 21:12:21 -07:00
Andrew Halberstadt
6d1819c652 Bug 1372981 - Limit reftest to 4 attempts at recovering after a crash, r=jmaher
MozReview-Commit-ID: IEfM1b6FTHD

--HG--
extra : rebase_source : 3ed87e0bd8f09f6c7bb2599edd44af882777458a
2017-06-14 13:25:59 -04:00
Andrew Halberstadt
f67d4de397 Bug 1372922 - Don't log suite_start a second time in reftest if recovering from a crash, r=jmaher
MozReview-Commit-ID: 45lYTfrCyxN

--HG--
extra : rebase_source : 1398191fdff646133bb5064025c0f97192ef3071
2017-06-14 12:10:10 -04:00
Andrew Halberstadt
c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
Olli Pettay
5591c27af9 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, tweaks to keep reftest memory usage lower, r=mccr8
--HG--
extra : rebase_source : 850e4f25ef1ac18b768dc50dc4fa9b77f0743080
2017-06-10 02:41:06 +03:00
Olli Pettay
ce6010c7d6 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
--HG--
extra : rebase_source : 2ee14a0cc890b91f405a5b4741030dbad6989018
2017-06-10 02:38:50 +03:00
Wes Kocher
43acd1b6e6 Backed out 2 changesets (bug 1367905) for a spike in Windows reftest failures a=backout
Backed out changeset c5aaa3f7b79e (bug 1367905)
Backed out changeset 1c66da2b1e88 (bug 1367905)

MozReview-Commit-ID: IX632WoWHrO
2017-06-08 16:09:28 -07:00
Carsten "Tomcat" Book
b9d94b34d4 merge mozilla-inbound to mozilla-central a=merge 2017-06-08 14:43:56 +02:00
Olli Pettay
82540e59a6 bug 1367905, trigger GC/CC even more often in reftests, r=bustage 2017-06-08 03:14:27 +03:00
Xidorn Quan
8ade7dbdaa Bug 1370840 - Make regexp more general for capturing lines. r=dbaron
This change additionally support lines like:
(from Android)
> ... 11:39:13     INFO -  REFTEST TEST-UNEXPECTED-FAIL | http://...
(from Windows)
> 11:25:29    ERROR -  REFTEST TEST-UNEXPECTED-FAIL | file:///...

MozReview-Commit-ID: IVBvdxjp0MD

--HG--
extra : rebase_source : e979f9c6cfa256cfbda7970be82728226f2fa5ad
2017-06-07 20:14:18 +10:00
Olli Pettay
5361fd6640 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8 2017-06-07 23:46:31 +03:00
Carsten "Tomcat" Book
8fb20a5801 Backed out changeset ff33e6c6f6a5 (bug 1367905) for memory leaks 2017-06-07 15:13:37 +02:00
Olli Pettay
03c8a070c4 Bug 1367905 - Try to run GC/CC slices, including forgetSkippable, during idle time, r=mccr8
--HG--
extra : rebase_source : b7248c5b45fe43eb733d73965a49c1cd69a1c72d
2017-06-06 20:41:34 +03:00
Dão Gottwald
8a952aed25 Bug 1367076 - Set datareporting.policy.firstRunURL by default to replace data choices infobar with privacy policy in a background tab on first run. r=Gijs
MozReview-Commit-ID: 9r5el0I2HrA

--HG--
extra : rebase_source : d5bc0f8a5dea60d4d3bbaaf5332d8f022693d381
2017-05-31 13:48:06 +02:00
Wes Kocher
0d038d6513 Merge autoland to m-c a=merge
MozReview-Commit-ID: Fjt5XIDd0p6
2017-06-02 17:21:39 -07:00
Andrew Swan
7656140373 Bug 1369525: Make sure reftests still run when legacy extensions are disabled r=jmaher
This won't be an issue until the 57 release but at that time, the
reftest extensions will only load if the extensions.legacy.enabled
preference is set to true and Cu.isInAutomation, which depends on
another preference, is true.  Set the appropriate prefs here for reftests.

MozReview-Commit-ID: JUWCPTsuJU

--HG--
extra : rebase_source : 042a5696d1926e7ca434a7c4213395176a080549
2017-06-01 21:18:33 -07:00
Kartikaya Gupta
748457c51a Bug 1252361 - Produce UNEXPECTED-PASS results for fuzzy tests that are overfuzzed. r=dbaron
This catches a common problem where somebody adds a fuzzy annotation on
a test to work around some minor differences. Later the differences go
away, but since the test harness doesn't catch that, nobody is the
wiser. Subsequently a "real" regression can reintroduce differences
which are hidden by the stale fuzzy annotations.

With this patch, if the annotations are set up properly, the test
harness will flag tests as "UNEXPECTED-PASS" when the differences go
away. This will require the patch author to reduce the allowed fuzziness
parameters, and will make it easier to catch subsequent regressions.

MozReview-Commit-ID: B3rGPFLXkCu
2017-06-02 09:28:33 -04:00
Kartikaya Gupta
5fec8bb434 Bug 1252361 - Modify the fuzzy and fuzzy-if reftest annotations to accept ranges as well. r=dbaron
This patch extends the "fuzzy" and "fuzzy-if" annotations so that they
accept a range of fuzziness values, much like the "asserts" and
"asserts-if" annotations. If the test produces differences that are
within the specified range, the test is considered as passing. Any
differences outside the ranges are considered failures. If the test is
marked as a "!=" test, then the opposite is true.

If the range given to "fuzzy" or "fuzzy-if" is a single value, it is
interpreted as being a range from zero to the specified value. This is
in contrast to "asserts" and "asserts-if" which match exactly the value
specified. The reason for this is mostly for backwards compatibility
with existing reftest annotation semantics.

MozReview-Commit-ID: 6qUU6FQ5mYP
2017-06-02 09:27:09 -04:00
Kartikaya Gupta
cf9c954c8d Bug 1368508 - Log actual and allowed fuzz values when a reftest passes by fuzzy matching. r=dbaron
This simply augments the logging in the reftest harness so that if a reftest
passes due to fuzzy matching, it reports both the actual fuzz numbers and the
maximum allowed fuzz numbers.

MozReview-Commit-ID: G356vBRXYUc
2017-05-30 16:31:05 -04:00
Shing Lyu
8883e34b50 Bug 1367636 - Make reftest "stylo" condition match only non-styloVsGecko mode. r=heycam
MozReview-Commit-ID: 7wAFofMkaB6
2017-05-26 10:27:27 +08:00
Shing Lyu
8196904840 Bug 1361645 - Added the styloVsGecko reftest condition r=dbaron
MozReview-Commit-ID: CJlly5Ffclq

--HG--
extra : rebase_source : a1c236d07474e63df2bd82c40701d9fc73daa87b
2017-05-03 11:36:21 +08:00
Shing Lyu
65cb773340 Bug 1359288 - Enable Android reftest to resume from crashes. r=jmaher
MozReview-Commit-ID: EqTOdEwfTWi

--HG--
extra : rebase_source : 36837b43159f484f911cf5183d81c3440d59736a
2017-05-10 10:38:48 +08:00
Mike Cooper
94879bdf84 Bug 1361578 - Remove SelfSupport, since it is obsoleted by shield-recipe-client. r=Gijs
MozReview-Commit-ID: 1FCqNa5wxZk

--HG--
extra : rebase_source : a7a20b4376ecaf2d4e91da27a7b7b32091f03dbd
2017-05-19 10:02:11 -07:00
Francois Marier
39b6d88744 Bug 1364959 - Clean up Safe Browsing preferences in tests. r=dimi
Remove the forbiddenURI pref which was removed in bug 1274893 as well
as browser.safebrowsing.enabled which got renamed in bug 1025965.

Set dummy URLs for all of the network endpoints.

MozReview-Commit-ID: Efk2fv6cC3g

--HG--
extra : rebase_source : 9fbb3eb0fa7f002fe24577a8a0870ec4d1b7cf31
2017-05-18 16:18:59 -07:00
Geoff Brown
d844ac12ec Bug 1364228 - Increase marionette startup timeout for Linux mochitests; r=ato
Our linux32-debug build is very slow to startup when running mochitests on aws.
Sometimes we see similar behavior on other linux platforms. Intermittently,
in this environment, startup takes longer than the 120 seconds that marionette
waits, resulting in test failures in bug 1261598. Increasing the marionette
startup timeout to 180 seconds appears to effectively avoid these failures.
2017-05-17 10:30:32 -06:00
Bobby Holley
c2a4477658 Bug 1364863 - Make stylo property of reftests dependent on the pref, not just the define. r=heycam 2017-05-16 10:57:21 +02:00
Ed Lee
b7eda53134 Bug 1241390 - Remove Suggested Tiles and related features. r=adw,emtwo
Remove suggested and enhanced tiles along with related campaign, frequency-cap, inadjacency, pings, preferences, strings, styles, tests.

MozReview-Commit-ID: FkjaSpSFQHu

--HG--
extra : rebase_source : 1c58ac542180f0abb290639ec1c61b9edf3d0a51
2017-05-02 17:09:16 -07:00
James Graham
1c354cb585 Bug 1362811 - Don't require REFTEST prefix in unstructured reftest analyzer, r=dbaron
This prefix can't be produced by the standard structured logging
formatters because it doesn't know that the tests are
reftests. Therefore the reftest harness has a hack to add this prefix,
and the unstructured analyzer doesn't work with wpt reftests. This can
simply be solved by making the prefix optional, but looking for the
"INFO - " prefix that mozharness adds, when present, to identify the
start of the TEST- string.

MozReview-Commit-ID: GxWVWOSkAUZ

--HG--
extra : rebase_source : fbd8afa860da0fba4925b6bf2fc715cbf6c2688c
2017-05-07 00:20:43 +01:00
Geoff Brown
78c5013b6a Bug 1359292 - Handle non-ascii characters in reftest logs; r=jmaher
Non-ascii characters in error messages can cause exceptions when processing
structured log messages. The mochitest MessageLogger already handles such
cases; this is a simpler implementation for the reftest OutputHandler.
2017-05-08 07:49:05 -06:00
Benjamin Smedberg
df806a1923 Bug 1335475 - Reftest harness needs to check for the test plugin without using navigator.plugins. r=dbaron
Previously the harness would check for navigator.plugins[Test Plug-in] in the browser window, but that is now blocked from working. Instead we can simply use an existing getTestPlugin function that enumerates the plugin through nsIPluginHost

MozReview-Commit-ID: Kp48u5iFkSa
2017-05-03 18:12:44 -03:00
Andrew Swan
79a787c063 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : f83472bc1c88dd0deadbe485d9002499027ff07f
2017-05-03 08:02:51 -07:00
Sebastian Hengst
a71bcd1f3c Backed out changeset 46dd4a4338a1 (bug 1352204) for timing out Talos suites g2, o and s. r=backout 2017-05-02 20:19:17 +02:00
Andrew Swan
efb4f22c33 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : 34aa762917566b052ade6372280caed72fbfbe9a
2017-05-01 10:34:27 -07:00
Shing Lyu
05ac48b1a2 Bug 1344132 - Make reftest run stylo-vs-gecko test without special reftest.list. r=heycam
MozReview-Commit-ID: 7gBGd5wzGbL
2017-04-28 11:15:45 +08:00
Sebastian Hengst
3e327c65cd Backed out changeset e0f41e4a4bc4 (bug 1344132) for failing reftest reftest-opaque-layer-fail.html. r=backout on a CLOSED TREE 2017-04-26 13:15:29 +02:00
Shing Lyu
f8f23bfc86 Bug 1344132 - Make reftest run stylo-vs-gecko test without special reftest.list. r=heycam
MozReview-Commit-ID: 3BpOWa9lEat
2017-04-26 18:21:39 +08:00
Shing Lyu
b9f91a773f Bug 1344991 - Continue reftest after a crash r=dbaron,jmaher
MozReview-Commit-ID: CTUaweql66d

--HG--
extra : rebase_source : 50a4673f3fd1ea83a58f5b2373c28c6c66f721ab
2017-03-09 10:49:20 +08:00
Alex Gaynor
fcd28c5b2a Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik
This patch does a few things:
a) Adds the resources location from the .app directory to the read whitelist
b) When it's a non-packaged build, mach run (and various mach tests) set an environment variable for the repo location which we allow reads from.

r=haik,froydnj

MozReview-Commit-ID: KNvAoUs5Ati

--HG--
extra : rebase_source : 81ba8bfee0ca96979cf8e30d75cdd47f06bc10ea
2017-04-07 14:53:19 -04:00
Sebastian Hengst
e7317789ad Backed out changeset 225683fed1d1 (bug 1294641) for breaking crashtests, reftests and Windows builds. r=backout on a CLOSED TREE 2017-04-17 16:29:52 +02:00
Alex Gaynor
fd11319799 Bug 1294641 - whitelist reads from the .app directory in the macOS sandbox r=froydnj,haik
This patch does a few things:
a) Adds the resources location from the .app directory to the read whitelist
b) When it's a non-packaged build, mach run (and various mach tests) set an environment variable for the repo location which we allow reads from.

r=haik,froydnj

MozReview-Commit-ID: KNvAoUs5Ati

--HG--
extra : rebase_source : f637acff32fc8582732de932503dd696abc57877
2017-04-07 14:53:19 -04:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Geoff Brown
f513cbe989 Bug 1355800 - Improve test web server shutdown to avoid delays; r=jmaher
This eliminates a 2 minute timeout seen at the end of Android mochitests
and reftests. Attempts to shutdown the web server were failing because
they were directed at IP 10.0.2.2 -- the loopback address for the
Android emulator.
2017-04-13 14:33:42 -06:00
Carsten "Tomcat" Book
3dc7a8afc0 Backed out changeset 6bbf9c0c5dac (bug 1344991) for causing bug 1356002 2017-04-13 09:47:01 +02:00
Wes Kocher
25d50f2c30 Merge inbound to central, a=merge 2017-04-12 14:39:09 -07:00
Geoff Brown
f8160809a8 Bug 1340233 - Take more care when killing browser before starting Android tests; r=jmaher
The devicemanager killProcess() is updated to use force-stop first, then
use kill if force-stop does not work.

Browser test harnesses are updated to check if killProcess() worked, and
warn if it failed.
2017-04-12 09:15:53 -06:00