Commit Graph
1276 Commits
Author SHA1 Message Date
Andrew Halberstadt 9d85bdcbc9 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc
2017-09-26 10:47:22 -04:00
Marina Samuel 334759afdc Bug 1403695: Send a generic health telemetry ping through Ping Centre for Activity Stream. r=k88hudson
MozReview-Commit-ID: CJGX1aihFuV
2017-09-27 16:29:06 -04:00
Sebastian Hengst 95c011a9f0 Backed out changeset ddfc127526b2 (bug 1403222) for failing python/mozbuild/mozbuild/test/frontend/test_reader.py::TestBuildReader::test_schedules, at least for Linux asan opt builds. r=backout on a CLOSED TREE 2017-10-02 16:03:12 +02:00
Andrew Halberstadt 5c9a4c3849 Bug 1403222 - Add test suite families to SCHEDULES.exclusive r=dustin
MozReview-Commit-ID: JWKB7eOgfWc
2017-09-26 10:47:22 -04:00
Geoff Brown d952752d7f Bug 1403501 - Do not kill non-orphan xpcshell/ssltunnel; r=bc 2017-09-29 10:40:24 -06:00
Andrew Halberstadt a64e516fb3 Bug 1403983 - Fix reftest regression where screenshots aren't being output and add a test, r=jmaher
MozReview-Commit-ID: 8ZqmukDtWpO
2017-09-28 12:26:51 -04:00
Andrew Halberstadt d2f677c035 Bug 1403325 - Use a single --sandbox-read-whitelist argument in mochitest and reftest, r=Alex_Gaynor
The main bug this fixes is that on reftest, the objdir needs to be added to the
whitelist on Windows. However, this only happens when running on Linux for some
reason.

Changing the --work-path and --obj-path arguments to --sandbox-read-whitelist
was more of a drive-by cleanup than anything necessary.

MozReview-Commit-ID: Dq8ZLETMzeM
2017-09-26 16:36:43 -04:00
Sebastian Hengst d72657649c Backed out changeset 6a527c7a89a0 (bug 256180) 2017-09-28 11:30:38 +02:00
Henri Sivonen cd6d40a679 Bug 256180 layout part - Increase MAX_REFLOW_DEPTH to reduce the probability of content going silently missing. r=bz
MozReview-Commit-ID: 7Ui0tVlLEQM
2017-09-14 11:01:06 +03:00
Henrik Skupin 4bbce6072a Bug 1403616 - Defer logging of Marionette IOError to after post-test checks. r=gbrown
If Firefox crashes while mochitests or reftests are running, Marionette
will trigger an IOError exception which currently gets logged immediately,
and causes no post-test checks to be performed. This results in missing
crash and leak checks, and an unclear failure message on Treeherder.

With this change only the IOError from Marionette gets deferred until
all post-test checks are done. This fixes the failure messages, and will
put PROCESS_CRASH or leak log output first.

MozReview-Commit-ID: JCYP5LlPE1m
2017-09-27 21:07:44 +02:00
Kartikaya Gupta 92e025e91d Bug 1403559 - Remove random-if(webrender) annotations for layers-specific reftests and instead skip the layers checks in the reftest harness. r=mstange
MozReview-Commit-ID: 8Xtx3aGIx8
2017-09-27 10:12:10 -04:00
Sebastian Hengst 04df8b9c3d Backed out changeset 5572e837e2d0 (bug 1403559) 2017-09-27 20:19:11 +02:00
Kartikaya Gupta e4ce24c84a Bug 1403559 - Remove random-if(webrender) annotations for layers-specific reftests and instead skip the layers checks in the reftest harness. r=mstange
MozReview-Commit-ID: 8Xtx3aGIx8
2017-09-27 10:12:10 -04:00
Andrew Halberstadt ce97de80b1 Bug 1373745 - Fix structured logging problems in reftest, r=jmaher
Currently reftest.jsm uses logger.testEnd(..) to log all kinds of different
potential failures, from proper test failures to harness issues. This means
there are all kinds of edge cases that would cause multiple testEnd messages to
get logged, something the structured log protocol is supposed to prevent.

This modifies the reftest harness to instead use testStatus for everything. The
testEnd call will always be logged with status "OK". This required some changes
to the reftest formatter and reftest selftests.

MozReview-Commit-ID: 8RxsmHW49oy
2017-06-16 15:08:45 -04:00
Geoff Brown c4a230fcab Bug 1401035 - Avoid Android reftest restart after max run time exceeded; r=jmaher 2017-09-26 13:20:30 -06:00
Geoff Brown 1c833985c8 Bug 1390884 - Enable limited test chaos mode in test-verify; r=jmaher
This adds new test verification steps for mochitest/reftest/xpcshell tests
with MOZ_CHAOSMODE=3 (thread scheduling and network thread scheduling).
Enabling all chaos mode features seems to destabilize test verification
so I am only enabling these features for now.
2017-09-26 13:20:28 -06:00
Andrew Halberstadt 48abdb0e44 Bug 1399155 - Add reftest selftests for crashes, assertions, asan and leaks, r=jmaher
This installs specialpowers in the test runs so we can trigger crashes/assertions.

MozReview-Commit-ID: 8878OcHv8hU
2017-09-22 09:48:33 -04:00
Geoff Brown 4cb8dd5ad7 Bug 1396905 - Support reftests in test-verify; r=jmaher
Complications:
 - had to copy ReftestManifest into a test zip
 - reftest harness was emitting multiple suite_start log entries with --repeat
 - some extra path manipulation required to find reftests
2017-09-23 09:07:03 -06:00
Geoff Brown 5a5f4ec15f Bug 1401287 - Skip sandbox check for test plug-in on Android; r=dbaron
The test plugins - dom/plugins/test/testplugin - are not built on Android.
By assuming that the test plugin is not available on Android, a per-manifest
check and warning can be avoided.
2017-09-22 11:32:40 -06:00
Kartikaya Gupta a987c19954 Bug 1401997 - Always report pixel difference counts for reftests. r=jmaher
MozReview-Commit-ID: 5f2JPMA1ntP
2017-09-21 11:28:24 -04:00
Masatoshi Kimura 3ba8c78d50 Bug 1394233 - Reftest to ensure that uppercase class names work. r=test-only
MozReview-Commit-ID: K2RnB8JWfkK
2017-09-16 16:12:28 +09:00
Sebastian Hengst e0627a5b1e Backed out changeset cc0acc00d769 (bug 1394233) for frequently failing own test usercss-uppercase.html on Windows 7 debug. r=backout a=backout
MozReview-Commit-ID: GwVKJKGPzDS
2017-09-17 14:23:53 +02:00
Sebastian Hengst 20b8865206 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-16 11:39:27 +02:00
Masatoshi Kimura 5f8eb58b5f Bug 1394233 - Reftest to ensure that uppercase class names work. r=test-only
MozReview-Commit-ID: K2RnB8JWfkK
2017-09-16 16:12:28 +09:00
Henrik Skupin 1a01ebd6fd Bug 1399592 - Increase Marionette startup timeout for mochitest/reftest. r=gbrown
Currently the mochitest and reftest runners are forcing a timeout of 60s
(or 900s for valgrind or debug builds) when calling `start_session` of
Marionette. While this method still offers a timeout parameter, the
timeout should be set via the `startup_timeout` argument for Marionette.

Reason is that Marionette doesn't control the browser instance and
is getting called right after the application gets launched. As such
slow running builds can cause timeouts once it takes longer than 60s
for the Marionette server to get started.

By using `startup_timeout` the timeout will even be configurable via
the command line and mozharness config files.

MozReview-Commit-ID: EV7GklBcJjU
2017-09-14 16:18:58 +02:00
Andrew Halberstadt ec257dcef2 Bug 1392390 - Create a reftest selftest harness, r=jmaher
This just adds two basic tests, one for a passing test and another for a
failing one. In mochitest, we use privileged APIs to also tests crashes,
assertions, asan and leaks. But these APIs aren't available to reftests
so I'm not sure how we can test these things.

I figure it's not worth holding the framework up on this though, I'll file
a follow-up to figure out something to do for that.

MozReview-Commit-ID: 59TSbsugT5T
2017-09-11 16:08:01 -04:00
Chris Peterson 5cf992829f Bug 1394603 - Infer asserts-if(styloVsGecko, X*2) from asserts(X). r=jryans
MozReview-Commit-ID: BkvMyNYzpkO
2017-09-03 20:22:35 -07:00
Chris Peterson 41de3371f4 Bug 1394603 - Replace fails-if(!styloVsGecko) to fails. r=jryans
Skip tests that are expected to fail in both Stylo and Gecko modes. They would unexpectedly "pass" in styloVsGecko mode when comparing the two failures, which is not a useful result.

MozReview-Commit-ID: 3mOpjU225Q1
2017-09-01 20:39:44 -07:00
Tobias Schneider 90d53c199d Bug 1299848 - Add support for (real) print reftests. r=dholbert 2017-09-06 09:54:29 -07:00
Geoff Brown b76be0bdb3 Bug 1390889 - Support --verify option in reftest harness; r=jmaher 2017-09-05 16:55:34 -06:00
Gian-Carlo Pascutto 8ca3b153f0 Bug 1392640 - Only use preference based whitelisting for Linux. r=haik
MozReview-Commit-ID: IWNnRcLMreI
2017-08-30 13:40:10 +02:00
Geoff Brown 7ab4068a42 Bug 1394957 - Fix logging of number of tests when running chunked reftests; r=ahal 2017-08-30 10:11:28 -06:00
Kris Maglione 7d8f35e2b4 Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c
2017-08-30 01:50:27 -07:00
Geoff Brown 07535ce320 Bug 1386816 - Kill any xpcshell or ssltunnel already running at start of tests; r=jmaher
This renames killNamedOrphans to killNamedProc and removes the check for
parent proc id, so that any xpcshell or ssltunnel process is killed before
starting a mochitest or reftest run. For reftests, this is moved out of
the desktop harness and into the remote/android harness, since desktop
reftests do not use xpcshell or ssltunnel.
2017-08-29 15:44:18 -06:00
J. Ryan Stinnett f63e1a00f9 Bug 1393234 - Check STYLO_FORCE_DISABLED in reftests. r=jmaher
MozReview-Commit-ID: DEg817q0HOQ
2017-08-24 16:29:49 -05:00
Francois Marier 5384b32d74 Bug 1388938 - Disable channel annotation and flashblock in tests harnesses.r=hchang
Since these tests harnesses are already disabling Safe Browsing and tracking
protection, they should also disable the other two features that cause
lists to be downloaded from the Mozilla shavar server.

MozReview-Commit-ID: 2158qRU4XZx
2017-08-23 15:47:37 -07:00
Kris Maglione be161e68b4 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0
2017-08-19 13:32:58 -07:00
Wes Kocher 606dec98a4 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Nicholas Nethercote be5f8887c1 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).
2017-08-17 15:29:03 +10:00
Kartikaya Gupta bfd9a7fb71 Bug 1393015 - Disable KillHard timeout for reftests. r=smaug
MozReview-Commit-ID: LSPwGOXNnnW
2017-08-23 12:00:56 -04:00
Francois Marier e1e98ed348 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT
2017-08-22 17:56:20 -07:00
Wes Kocher ee18e318e9 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ
2017-08-22 17:22:41 -07:00
Francois Marier 3c3460e995 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT
2017-08-08 16:25:12 -07:00
Gregory Szorc ec207aa11d Bug 1392886 - Defer import reftestcommandline; r=mshal
This shouldn't be at module level.

This isn't technically needed for this series. I caught it during
an earlier attempt at teasing out all Python import dependencies
to run `mach`. Why let a good patch go to waste.

MozReview-Commit-ID: FwwdZqcKtpq
2017-07-19 11:27:10 -07:00
Gian-Carlo Pascutto 91a1d7c422 Bug 1386826 - Whitelist the objdir, so _tests gets covered. r=jmaher
MozReview-Commit-ID: 8SHk1Pfy37I
2017-08-16 19:03:09 +02:00
Geoff Brown 6c70e6a351 Bug 1388883 - Ensure a fresh necko cache for each mochitest and reftest run; r=bc 2017-08-16 06:55:49 -06:00
Bob Owen cdc7ca3dc5 Bug 1386502 - Whitelist paths added via pref for files opened in the content process during some tests. r=jimm 2017-08-07 17:42:00 +01:00
Masatoshi Kimura 2e32b0cc41 Bug 1375125 - Fix errors caused by mechanical replacement. r=froydnj
MozReview-Commit-ID: 1kOvLdeCJiR
2017-08-05 08:21:55 +09:00
Masatoshi Kimura 0af76969af Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
J. Ryan Stinnett 06518d5905 Bug 1386416 - Move all reftest vars above sandbox dump. r=kats
MozReview-Commit-ID: HDIr0FTbDNK
2017-08-01 16:16:17 -05:00