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

478 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown 8538ff6458 Bug 1414063 - Increase mochitest/reftest default output timeout to 370 seconds; r=jmaher 2017-11-03 12:08:29 -06:00
Henrik Skupin e3c38148be Bug 1411913 - Enable Marionette trace log for mochitest/reftest by default. r=jmaher
MozReview-Commit-ID: 1cGy3YlJml1

--HG--
extra : rebase_source : 23106578640a64848c164121a96cdddebd13cad8
2017-10-26 13:05:17 +02:00
Dan Minor 8583436ea5 Bug 1407203 - Wait for websocketProcessBridge to exit; r=jmaher
We are seeing failures starting websocketProcessBridge due to the port being
in use. It is most likely a previously started websocketProcessBridge process that
is using the port.

On Windows, mozprocess.kill() calls TerminateJobObject/TerminateProcess and
GetExitCodeProcess, but these are asynchronous and don't wait for the process to
actually exit. Adding a wait call should guarantee the process has exited before
continuing which will hopefully ensure the port is free by the time we start an
additional websocketProcessBridge.

MozReview-Commit-ID: HGyjEsy1Ons

--HG--
extra : rebase_source : f56034e1fc0febae07d9b2728eded0a48975baca
2017-10-16 15:47:58 -04:00
Mark Banner 77fa87faaa Bug 1409769 - Properly disable idle-daily for mochitests, to avoid background interactions. r=jmaher
MozReview-Commit-ID: 6yS6zwFjphd

--HG--
extra : rebase_source : a3652de9807376a24f576cce6b627f10d014e337
2017-10-18 16:29:37 +01:00
Geoff Brown 3f04ade908 Bug 1409062 - Update mochitest and reftest harnesses for --verify on Android; r=jmaher 2017-10-17 08:00:52 -06:00
Brendan Dahl 95fd4f75d9 Bug 1399956 - Add headless flag for mochitests. r=jmaher
MozReview-Commit-ID: Kqk0sw4ykEm
2017-10-16 16:15:45 -07:00
Geoff Brown b38743f640 Bug 1405369 - Ensure new profile used throughout test verification; r=jmaher 2017-10-05 12:47:11 -06:00
Mark Banner 79b29f1549 Bug 1402248 - Disable idle-daily during mochitests to avoid possible background interactions that might cause intermittents. r=jmaher
Set the idle preference to be the current time, so that idle-daily won't kick in for 24 hours.

MozReview-Commit-ID: 6OJCSm8RaeZ

--HG--
extra : rebase_source : 71217263ddd5b9299e8463254f48ad2d9918b8a2
2017-10-02 11:10:15 +01:00
Geoff Brown 308a809310 Bug 1403501 - Do not kill non-orphan xpcshell/ssltunnel; r=bc 2017-09-29 10:40:24 -06:00
Sebastian Hengst 73fac0091d Backed out changeset dbe60b600dc0 (bug 1397853) for failining linter py-compat at testing/mochitest/runtests.py:2236. r=backout 2017-09-28 14:58:36 +02:00
Andrew Halberstadt 35b752c904 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

--HG--
extra : rebase_source : 3d2cdda125205e76f86235eb373074899fe0789a
2017-09-26 16:36:43 -04:00
Steve Armand f8318d16e8 Bug 1397853 - Enable py2 and py3 linter on testing/mochitest. r=ahal
MozReview-Commit-ID: EhkNhyFHDox

--HG--
extra : rebase_source : 5200a985034c7ca0a494bc7d02a4c842e85dec3a
2017-09-24 21:28:25 -04:00
Henrik Skupin abd06348eb 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

--HG--
extra : rebase_source : a4a9455402b01db8ef1dbafccc7a726d2927ec03
2017-09-27 21:07:44 +02:00
Geoff Brown 1e26b50be4 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
Greg Mierzwinski 1c079bc66d Bug 1400683 - Add 'coverage' field to mozinfo to disable tests on linux64-jsdcov. r=jmaher
This patch makes it possible to disable mochitest-devtools tests on linux64-jsdcov through the 'coverage' flag.

MozReview-Commit-ID: 1gkgbFo19MZ

--HG--
extra : rebase_source : 9c6d311cb467e4424d42848e1caf024f9702b8cd
2017-09-17 16:00:07 -04:00
Henrik Skupin 03d4b0f51c 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

--HG--
extra : rebase_source : 9d3c623c49deb92d68c40ba4410c812c864e06bd
2017-09-14 16:18:58 +02:00
Geoff Brown 080cbb4052 Bug 1399769 - Do not modify runtests.py return code for failed tests; r=jmaher
Bug 1394910 modified the runtests.py return code when one or more tests
failed, but that causes mozharness to emit a starrable error. This patch
returns to the old behavior of normally returning 0 from runtests.py when
tests fail. To allow for test verification, verifyTests() is updated to
explicitly check for failed tests, instead of relying on the runTests()
return code.
2017-09-14 11:07:48 -06:00
Geoff Brown 59295bdd27 Bug 1394910 - Return failed status from mochitest harness when one or more tests fail; r=jmaher 2017-09-13 08:27:18 -06:00
Kris Maglione e99cced382 Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
MozReview-Commit-ID: D5KyHcg8Ujk

--HG--
extra : rebase_source : 1a74ccb2963f2946a49c8bf720af595151b48fd1
2017-09-12 11:54:47 -07:00
Geoff Brown fcaf64fa27 Bug 1398953 - Set runUntilFailure in mochitest with --verify option; r=jmaher 2017-09-12 08:51:19 -06:00
Wes Kocher a8e6d0bd2c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7XpmaFg1k8N
2017-08-29 16:17:13 -07:00
Geoff Brown 0c1b12715e 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
Botond Ballo dc075dbdbc Bug 1390964 - Do not clobber an existing LD_LIBRARY_PATH in the mochitest harness. r=ted
MozReview-Commit-ID: 7uQ71Jpq1lM

--HG--
extra : rebase_source : 2383db7abceea790dbb837ddfa501626492159b4
2017-08-16 13:25:01 -04:00
J. Ryan Stinnett a3ff9bdc0e Bug 1393234 - Add --disable-stylo for desktop tests. r=jmaher
MozReview-Commit-ID: 3wBxpOjYqC1

--HG--
extra : rebase_source : 3fb96b85e743d74d22dd0c74473a66b7ef640809
2017-08-24 16:16:40 -05:00
Sebastian Hengst 85113c4391 Backed out changeset fa04de352d99 (bug 1390964) for linting failure at gecko/testing/mochitest/runtests.py:420: test for membership should be 'not in'. r=backout 2017-08-28 20:42:37 +02:00
Botond Ballo 0427d1e846 Bug 1390964 - Do not clobber an existing LD_LIBRARY_PATH in the mochitest harness. r=ted
MozReview-Commit-ID: 7uQ71Jpq1lM

--HG--
extra : rebase_source : 451b8117427609f9528ed6549937d5be817e6e53
2017-08-16 13:25:01 -04:00
Eric Rahm 0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Wes Kocher 1d9f00cb8d Merge inbound to m-c a=merge
MozReview-Commit-ID: CQeEqtGlaXh
2017-08-17 16:16:51 -07:00
Gian-Carlo Pascutto f4a0bc4497 Bug 1386826 - Whitelist the objdir, so _tests gets covered. r=jmaher
MozReview-Commit-ID: 8SHk1Pfy37I

--HG--
extra : rebase_source : 3944e20e310dda395e67ba9b1e33747413dea84e
2017-08-16 19:03:09 +02:00
Geoff Brown 86e38e0e40 Bug 1390884 - Do not use chaos mode for test verification; r=jmaher
Chaos mode for test verification doesn't quite work -- it is a bit flaky still.
I intend to come back to it at a later date.
2017-08-16 16:42:41 -06:00
Geoff Brown dad38365b5 Bug 1389500 - Fix |mochitest --verify| by not popping prefs; r=ahal 2017-08-11 14:30:25 -06:00
Bob Owen 00eaf28579 Bug 1386502 - Whitelist paths added via pref for files opened in the content process during some tests. r=jimm
--HG--
extra : rebase_source : a34c7e1d445154843e8efd0146824dff0bdfda9b
2017-08-07 17:42:00 +01:00
Andrew Halberstadt c2f15eecbf Bug 1328830 - Add ability to set prefs from the DEFAULT section of a mochitest manifest, r=jmaher
This will only work if runByManifest is enabled, otherwise the harness will error out. It's also
illegal to set this on an individual test, it must be on the entire manifest.

MozReview-Commit-ID: LWYa3Sk1uyW

--HG--
extra : rebase_source : ea4add087c795324745a0a5fc18b3ef50b2292b0
2017-07-20 09:31:32 -04:00
Andrew Halberstadt 8aa5097ff5 Bug 1328830 - Switch mochitest's --run-by-dir feature to --run-by-manifest, r=gbrown
MozReview-Commit-ID: LWYa3Sk1uyW

--HG--
extra : rebase_source : d6ef206b47cdade4f316e52508030ab8c3c6d0da
2017-07-20 12:10:15 -04:00
Geoff Brown 6f5c694369 Bug 1357520 - Minor changes for mochitest verifications; r=jmaher
Two small changes: 1. Test verification uses a copy of the runtests.py
options, so that any changes made to the options object in one step do
not affect the next step. 2. Use mochitest url format
.../tests?testname=xxx instead of .../xxx?... when a single test is
being run, regardless of --repeat; this is required so that other
options, notably --keep-open, are respected.
2017-08-02 11:08:34 -06:00
Geoff Brown 3a54608bbd Bug 1357520 - Support --verify option in mochitest harness; r=jmaher
--verify runs tests many times, in various configurations, in hopes of
finding intermittent failures. This option is added mostly for the -
coming soon! - test-verify task in automation, but can be used from
mach too, as a convenient way to stress tests of interest.
2017-08-02 11:08:31 -06:00
Carsten "Tomcat" Book 679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Xidorn Quan c4c6fbf75a Bug 1383980 - Enable animation mochitests in mochitest-style task. r=birtles
MozReview-Commit-ID: 38Ir2MG7IMO

--HG--
extra : rebase_source : 0997b7026a24cc271ad977db5ce233c393554dfa
2017-07-25 14:17:04 +10:00
Gian-Carlo Pascutto b4e7052362 Bug 1308400 - Whitelist paths with test files during testing. r=Alex_Gaynor
MozReview-Commit-ID: LMWAv3GP5c4

--HG--
extra : rebase_source : 80ae220e415510bb21c7f184eaaeb02ac27b91d0
2017-07-10 20:29:09 +02:00
Haik Aftandilian ce8f59e85d Bug 1380132 - Part 2 - Set MOZ_DEVELOPER_OBJ_DIR before launching Firefox. r=gps
MozReview-Commit-ID: CvSUt2KueHr

--HG--
extra : rebase_source : 7d621a1dc7ced33a2c00e906970401e152a70189
2017-07-12 17:01:56 -07:00
J. Ryan Stinnett 41bb39719f Bug 1380082 - Check Stylo env var for mochitest processing. r=ahal
Test harnesses may use STYLO_FORCE_ENABLED, so we need to fold this into mozinfo
for mochitest annotations.

MozReview-Commit-ID: JyadTE7apX6

--HG--
extra : rebase_source : 4eda1f150c012a8f5c0a58fdc921d8a6e03c4e68
2017-07-11 13:53:20 -05:00
Andrew Halberstadt 02ba790378 Bug 1372263 - Add ability to skip mochitest selftests based on mozinfo properties, r=jmaher
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 4b709c731f43e00dbc0e6596287811b739a3556c
extra : histedit_source : 71938673eecdb975e930d3b305433b3528acf7c7
2017-06-22 16:36:15 -04:00
Greg Mierzwinski 1a2d6fd412 Bug 1378239 - Change mozinfo 'coverage' flag to 'ccov' to avoid ambiguity. r=ahal
This patch renames the mozinfo flag 'coverage' to 'ccov' to avoid ambiguity in whether a test is being skipped for linux64-ccov or for linux64-jsdcov. It also removes the 'runtests.py' mozinfo hack and renames all occurrences of 'coverage' that are used for skipping tests in linux64-ccov.

MozReview-Commit-ID: IF2640bDQP7

--HG--
extra : rebase_source : 614020325e30d1ca9e01aaf08479b8a4ffaec888
2017-07-04 21:18:19 -04:00
Alex Gaynor b08206238c Bug 1374557 - Part 2 - Use the new preference to whitelist paths for reading that are needed by tests; r=gcp,haik,jmaher
MozReview-Commit-ID: 4IaTrHPHZaC

--HG--
extra : rebase_source : 28824735f74b369d5755b3bced0f61d22c7c8845
2017-06-21 10:24:16 -04:00
Sebastian Hengst c709e5f990 Backed out changeset 6b8840096867 (bug 1372263) 2017-07-01 00:33:10 +02:00
Andrew Halberstadt 51f70044ef Bug 1372263 - Add ability to skip mochitest selftests based on mozinfo properties, r=jmaher
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 88da98f77a04891a470d831e837bbeb8a8262a32
2017-06-22 16:36:15 -04:00
Christian Holler b8ee76ebd8 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS

--HG--
extra : rebase_source : 952043a441b41b2f58ec4abc51ac15fa71fc142f
2017-04-09 12:59:26 +02:00
Andrew Halberstadt 95c0561603 Bug 1372567 - Fix problems with mochitest structured logging, r=jgraham
The mochitest harness uses testEnd multiple times to log various failures. This can result
in several testEnd messages, which will soon cause mozlog to spit out an error. Instead,
these should be testStatus.

This also starts using mozlog's assertion_count log action to log test assertions (again,
instead of testEnd).

MozReview-Commit-ID: FFsyicSso5Y

--HG--
extra : rebase_source : 5e8d02714fcf24f2b86a9867b0403bbda0d00f91
2017-06-21 08:40:19 -04:00
Carsten "Tomcat" Book d8e080c10c Backed out changeset 07e0c4e4ae85 (bug 1373256) for breaking android tests 2017-06-28 14:47:55 +02:00
Christian Holler 9924ab3046 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS

--HG--
extra : rebase_source : 64aa804965d24bb90b103c00c692a2ac6859e408
2017-04-09 12:59:26 +02:00