Commit Graph
1112 Commits
Author SHA1 Message Date
Valentin Gosu 19163d7fa3 Bug 1543201 - DoH Privacy Enhancement: Do not set the User-Agent header for DoH requests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D55934
2019-12-05 19:17:28 +00:00
Andrew Halberstadt c3d757b6ba Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

Differential Revision: https://phabricator.services.mozilla.com/D55283
2019-12-02 21:19:45 +00:00
Mihai Alexandru Michis e7aa64886b Backed out 3 changesets (bug 1600314) for causing bc and dt failures regarding manifest filters. CLOSED TREE
Backed out changeset 4c4e74df38bd (bug 1600314)
Backed out changeset 3c4063b93ce7 (bug 1600314)
Backed out changeset d28d71c964c7 (bug 1600314)
2019-12-02 16:44:35 +02:00
Andrew Halberstadt 5a3cc55109 Bug 1600314 - [manifestparser] Make 'ancestor_manifest' a relative path, r=gbrown
Also rename the key from 'ancestor-manifest' to 'ancestor_manifest' to be
consistent with other keys.

Differential Revision: https://phabricator.services.mozilla.com/D55283
2019-11-29 16:16:09 +00:00
Sylvestre Ledru 1a521debcf Bug 1598971 - codespell: Fix typos in the doc r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,ato
Depends on D54430

Differential Revision: https://phabricator.services.mozilla.com/D54431
2019-11-25 10:06:12 +00:00
Geoff Brown cb86c09988 Bug 1598737 - Retry get_prop for xpcshell abi; r=jmaher
When running xpcshell on the x86_64 emulator, there are infrequent intermittent
test failures ultimately caused by an incorrect (blank) value being returned
from 'adb shell getprop ro.product.cpu.abi'. Reproduction of the issue on try
suggests that a simple retry avoids the issue.

Differential Revision: https://phabricator.services.mozilla.com/D54581
2019-11-25 18:50:49 +00:00
Geoff Brown 382c5c38e0 Bug 1596967 - In Android xpcshell tests, do not push tests to existing directory; r=bc
Currently the xpcshell harness ensures the remote scripts directory, /sdcard/tests/xpc, is
deleted, then re-creates it, then pushes to it. In this bug, confusion arises when a pre-push
check for directory existence intermittently fails (reports the directory does not exist
when in fact it does). Let's simplify this sequence by simply ensuring that the directory
has been deleted, then push to it.

Differential Revision: https://phabricator.services.mozilla.com/D53684
2019-11-18 18:55:45 +00:00
Valentin Gosu d8014c7712 Bug 1596234 - TRR: Check that pushed entry is not used after DNS suffix list changes r=JuniorHsu
- changes moz-http2.js so that the pushed entry is created using dnsPacked.encode in order to make the code clearer
- the pushed TRR entry is not push.example.org (instead of push.example.com) so the pushed entry is not same origin with the DoH endpoint.
- makes sure that when checking DnsSuffixInMode(3) we have the bootstrap address set

Differential Revision: https://phabricator.services.mozilla.com/D52912
2019-11-15 16:00:28 +00:00
Alexandre Poirot 0b911b4ed7 Bug 1576115 - Expose processes from xpcshell test DebuggerServer. r=jdescottes
With Fission, we expect RootActor.listProcesses to return a list of all process actors.

Differential Revision: https://phabricator.services.mozilla.com/D52646
2019-11-13 09:51:01 +00:00
Valentin Gosu 9b3d52e05e Bug 1584397 - Make http2 proxy code execute in a separate process r=mayhemer
* Adds a new moz-http2-child.js file which gets spawned into a new process. When calling NodeServer.execute, the code gets passed to the existing moz-http2.js process which then sends it to be evaluated in the child process. Any crash in the child should not be able to kill the main node process.
* Moves the proxy creation code into test_http2-proxy.js
* Adds the new NodeServer.fork() and NodeServer.kill() static methods to spawn a new server
* Makes it easier to isolate a test's behaviour from another's. It also opens the way to moving some of the logic to individual unit tests, like we do for the proxy creation code, rather than keeping it all in moz-http2.js

Differential Revision: https://phabricator.services.mozilla.com/D49961
2019-11-05 15:51:43 +00:00
Valentin Gosu fac0364e43 Bug 1544724 - Do not set the 'accept-language' header for DoH requests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D51694
2019-11-05 10:45:21 +00:00
Ciure Andrei a85898957c Backed out changeset 2a40bdf17bea (bug 1584397) for causing test_http2-proxy.js to permafail CLOSED TREE 2019-11-05 02:14:35 +02:00
Valentin Gosu d5e0813487 Bug 1584397 - Make http2 proxy code execute in a separate process r=mayhemer
* Adds a new moz-http2-child.js file which gets spawned into a new process. When calling NodeServer.execute, the code gets passed to the existing moz-http2.js process which then sends it to be evaluated in the child process. Any crash in the child should not be able to kill the main node process.
* Moves the proxy creation code into test_http2-proxy.js
* Adds the new NodeServer.fork() and NodeServer.kill() static methods to spawn a new server
* Makes it easier to isolate a test's behaviour from another's. It also opens the way to moving some of the logic to individual unit tests, like we do for the proxy creation code, rather than keeping it all in moz-http2.js

Differential Revision: https://phabricator.services.mozilla.com/D49961
2019-11-04 14:32:45 +00:00
Andrew McCreight 9d4b699b5a Bug 1586393, part 1 - Add test-complete observer notification. r=mconley
This allows generic code, like a testing JSM, to do clean up when a
test completes, in a way that will work in different test suites.

Differential Revision: https://phabricator.services.mozilla.com/D50648
2019-10-29 21:25:02 +00:00
Geoff Brown 369a1b6ee5 Bug 1517686 - Increase xpcshell harness timeout for selftest.py; r=bc
Increase the selftest.py timeout from 15 to 30 seconds in hopes of avoiding
intermittent xpcshell timeouts seen only in selftest on slower platforms.

Differential Revision: https://phabricator.services.mozilla.com/D48874
2019-10-10 16:03:38 +00:00
Perry Jiang 385174751e Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

Differential Revision: https://phabricator.services.mozilla.com/D43170
2019-10-08 23:47:48 +00:00
Daniel Varga 6338668641 Backed out 6 changesets (bug 1456995) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js. On a CLOSED TREE
Backed out changeset 2237ceb903a4 (bug 1456995)
Backed out changeset 5ce169fa82fb (bug 1456995)
Backed out changeset e64553b959f9 (bug 1456995)
Backed out changeset 7c53d7ca5ef7 (bug 1456995)
Backed out changeset 67e23c511201 (bug 1456995)
Backed out changeset e127b732bab0 (bug 1456995)
2019-10-05 01:58:08 +03:00
Perry Jiang a858a82fe1 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

Differential Revision: https://phabricator.services.mozilla.com/D43170
2019-10-04 14:34:48 +00:00
Geoff Brown b28e5f9558 Bug 1580036 - Verify that xpcshell plugins directory created; r=bc
Add simple wait-and-retry logic for the plugins directory creation, in hopes
of addressing low frequency intermittent failures. Add logging too, so that
there will be more information if this does not work.

Differential Revision: https://phabricator.services.mozilla.com/D47840
2019-10-02 14:19:59 +00:00
Valentin Gosu 1bf72066c8 Bug 1582515 - Add ability for httpd.js to execute code moz-http2.js and spawn new servers r=mayhemer,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46496
2019-09-26 09:53:04 +00:00
Valentin Gosu 8110f5f2e6 Bug 1582051 - Use Buffer.from and Buffer.alloc in moz-http2.js & friends r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D46260
2019-09-18 13:44:16 +00:00
Kevin Jacobs 1cfee9647f Bug 1562773 - Add delegated credentials tests r=keeler,jcj
Add xpcshell tests for Delegated Credentials

Differential Revision: https://phabricator.services.mozilla.com/D37918
2019-09-17 23:31:36 +00:00
Razvan Maries e654f3f1f1 Backed out 2 changesets (bug 1562773) for build bustages. CLOSED TREE
Backed out changeset 154b23d4a214 (bug 1562773)
Backed out changeset f32f7a644981 (bug 1562773)
2019-09-11 04:40:29 +03:00
Kevin Jacobs d4964912b3 Bug 1562773 - Add delegated credentials tests r=keeler,jcj
Add xpcshell tests for Delegated Credentials

Differential Revision: https://phabricator.services.mozilla.com/D37918
2019-09-10 20:15:12 +00:00
Geoff Brown 04a0b2abd7 Bug 1553225 - Run Android 7.0 xpcshell tests against geckoview apk; r=jmaher
Switch the target apk for Android 7.0 xpcshell-test to geckoview. At the same time,
update the mach command for local runs to select the geckoview apk rather than the
fennec one, by default.

Differential Revision: https://phabricator.services.mozilla.com/D42904
2019-08-21 18:24:08 +00:00
Mark Banner e161f18782 Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop
These are raised as redeclares or unused variables by ESLint 6.

Differential Revision: https://phabricator.services.mozilla.com/D37268
2019-08-19 07:11:56 +00:00
J.C. Jones 826e1599ce Bug 1573662 - Rename sanctions test routines to make it easier to add new ones r=keeler
1) Multipurpose-ing the TLSServer specialization to `SanctionsTestServer`
2) Renaming the `security/manager/ssl/tests/unit/test_symantec_apple_google` folder of certs to `test_sanctions`
3) Prepend a `symantec-` to the start of all relevant certs in the new `test_sanctions` folder
4) Renaming the existing xpcshell test to `test_sanctions_symantec_apple_google.js`

Differential Revision: https://phabricator.services.mozilla.com/D39942
2019-08-13 20:59:17 +00:00
Geoff Brown b2e37c26c9 Bug 1572610 - Change xpcshell android_version to string type; r=jmaher
Change the xpcshell android_version to string type, consistent with mochitest:
https://searchfox.org/mozilla-central/rev/9775cca0a10a9b5c5f4e15c8f7b3eff5bf91bbd0/testing/mochitest/runtestsremote.py#102
test_backgroundfilesaver.js is the only xpcshell test that uses android_version; once bug 1572434
lands, that skip-if will not be required, so I am removing it here. (I'll be sure to rebase
and land on top of 1572434.)

Differential Revision: https://phabricator.services.mozilla.com/D41312
2019-08-09 22:25:22 +00:00
Julian Descottes c632e13c61 Bug 1572390 - Split main.js in debugger-server and debugger-server-connection r=yulia,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D41009
2019-08-08 12:44:13 +00:00
Geoff Brown df2b35dd89 Bug 1569982 - Respect verify annotations when running tests in mach with --verify; r=bc
Test manifest annotations like "skip-if = verify" are normally handled in mozharness:
When a TV task finds a modified test that needs verification, but that test is skipped
in verify mode, mozharness discards the test from the list of tests to be run.
When running tests locally (mach mochitest, etc), these annotations should also be
respected, and are currently handled in wpt and reftest harnesses, but not in
mochitest or xpcshell -- rectified by this patch. mochitest and xpcshell had
neglected to set mozinfo["verify"] when running in verify mode -- easily corrected.
It should be noted that when running tests locally and a single test is requested,
most test harnesses run the requested test even if it is skip-annotated. Thus,
"mach test <test> --verify" will continue to run tests annotated "skip-if = verify"
and this patch only changes the mochitest/xpcshell behavior of verify-skipped
tests when run with "mach test <directory> --verify" -- a long-running test mode
with complex logging never used in continuous integration.

Differential Revision: https://phabricator.services.mozilla.com/D40486
2019-08-06 22:13:50 +00:00
Csoregi Natalia ee44f5c202 Backed out changeset 4afd3ec36843 (bug 1569982) for failures on runxpcshelltests.py. CLOSED TREE 2019-08-05 23:48:18 +03:00
Geoff Brown 688ad24b48 Bug 1569982 - Respect verify annotations when running tests in mach with --verify; r=bc
Test manifest annotations like "skip-if = verify" are normally handled in mozharness:
When a TV task finds a modified test that needs verification, but that test is skipped
in verify mode, mozharness discards the test from the list of tests to be run.
When running tests locally (mach mochitest, etc), these annotations should also be
respected, and are currently handled in wpt and reftest harnesses, but not in
mochitest or xpcshell -- rectified by this patch. mochitest and xpcshell had
neglected to set mozinfo["verify"] when running in verify mode -- easily corrected.
It should be noted that when running tests locally and a single test is requested,
most test harnesses run the requested test even if it is skip-annotated. Thus,
"mach test <test> --verify" will continue to run tests annotated "skip-if = verify"
and this patch only changes the mochitest/xpcshell behavior of verify-skipped
tests when run with "mach test <directory> --verify" -- a long-running test mode
with complex logging never used in continuous integration.

Differential Revision: https://phabricator.services.mozilla.com/D40486
2019-08-05 18:24:52 +00:00
Moritz Birghan 2614d35cb4 Bug 1004308 - rename BadCertServer to BadCertAndPinningServer r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D39748
2019-07-31 17:06:07 +00:00
Geoff Brown a3b66ddfb8 Bug 1569053 - Define MOZ_ANDROID_DATA_DIR for android xpcshell tests; r=snorp
Effectively avoids an assertion in many geckoview xpcshell tests.

Differential Revision: https://phabricator.services.mozilla.com/D39428
2019-07-29 15:47:35 +00:00
Kershaw Chang df861c4185 Bug 1563824 - New error NS_ERROR_TOO_MANY_REQUESTS for 429 response r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D37140
2019-07-06 21:46:00 +00:00
Victor Porof 7293693683 Bug 1561435 - Fix linting errors for testing/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35963
2019-06-27 17:27:33 +02:00
Victor Porof 5a4a810e4d Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962
2019-07-05 11:01:24 +02:00
Ross Kirsling e254a56a81 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35298
2019-07-01 22:14:47 +00:00
Kartikaya Gupta 01568c032d Bug 1558598 - Ensure mozinfo correctly detects WebRender. r=ahal
I don't know if this covers all the things that use mozinfo (probably not)
but it covers all the suites that use mozinfo and have webrender conditions
in the test manifests (i.e. mochitest and wpt variants).

Differential Revision: https://phabricator.services.mozilla.com/D35869
2019-06-29 09:51:14 +00:00
Kartikaya Gupta fc9f8d2d77 Bug 1558598 - Force WebRender on or off in the xpcshell harness. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35860
2019-06-29 09:50:20 +00:00
Csoregi Natalia d4b4fa4806 Backed out changeset 789bacca1219 (bug 1556818) for web platform failures on module-error-reporting.html. 2019-06-29 12:11:33 +03:00
Ross Kirsling 087b015ade Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35298
2019-06-28 03:04:45 +00:00
Nicholas Hurley 48d5c25e0f Bug 1502555 - Match oppsec .wk format to rfc. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D35136
2019-06-26 11:44:36 +00:00
Valentin Gosu 0eb9874105 Bug 1558495 - Make sure we retry the TRR connection if it fails r=agrover
This patch adds:
* tests that we restart the TRR connection if it gets abnormally shut down
* a way to terminate the TRR connection when attempting to resolve closeme.com
* makes sure that resolving excluded domains with the DISABLE_TRR flag does
  not fail. Before this we would return an error code without checking the
  excluded domains first.

Differential Revision: https://phabricator.services.mozilla.com/D35076
2019-06-14 21:49:10 +00:00
Chris Manchester 7886c40a30 Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721
2019-06-05 18:41:54 +00:00
Cosmin Sabou 40a7f25e29 Backed out changeset 23858ba6c81b (bug 1087144) for asan build bustages. CLOSED TREE 2019-06-05 20:41:34 +03:00
Chris Manchester acdebe55a2 Bug 1087144 - Log crashes in xpcshell via log_crashes rather than checkForCrashes r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33721
2019-06-05 16:44:49 +00:00
Valentin Gosu 6f0691be08 Bug 1542561 - Test that a IPv4 NXDOMAIN still uses the IPv6 response, regardless which one comes back first r=dragana
This test uses prefs added in Bug 1518730, but the pref is ignored when it
doesn't exist, so the test is still valid.

Depends on D33471

Differential Revision: https://phabricator.services.mozilla.com/D33473
2019-06-03 21:20:39 +00:00
Mark Banner ab30bb3a96 Bug 1291486 - Add an option (--verbose-if-fails) to mach's xpcshell-test to output test log if it fails when it will be retried. r=ahal
When running xpcshell-tests, if a test fails when run in parallel, and then passes when re-run sequentially, the log cannot be seen. Verbose mode is not good enough as that interweaves all the logs.

This adds an option that allows printing only the log of the test that fails.

Differential Revision: https://phabricator.services.mozilla.com/D33149
2019-05-31 15:54:58 +00:00
Honza Bambas 1a97d6c800 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817
2019-05-31 17:29:53 +00:00