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

1403 Коммитов

Автор SHA1 Сообщение Дата
Cristian Tuns 9462119251 Backed out changeset 60dcc095f627 (bug 1762991) for causing multiple failures (exit status 2). CLOSED TREE 2022-05-06 14:34:10 -04:00
Joel Maher 8e2741c219 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-06 15:01:22 +00:00
Tooru Fujisawa 3adaeb29bb Bug 1765167 - Part 9: Stop using Cu.import in testing/. r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,mossop
Differential Revision: https://phabricator.services.mozilla.com/D144102
2022-05-03 06:32:32 +00:00
Mark Banner 8bb4667fae Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-11 16:41:29 +00:00
smolnar e89faa903f Backed out changeset 5018856d8fee (bug 1758474) for causing node eslint failure. CLOSED TREE 2022-03-10 11:58:45 +02:00
Mark Banner fe937b78bd Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-10 09:25:28 +00:00
Kershaw Chang 9d6e072a2c Bug 1757145 - Make sure content-length is consistent with the actrual data bytes, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D139929
2022-03-03 13:36:15 +00:00
Nick Alexander d917365044 Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes
Background task mode is roughly equivalent to `xpcshell`, but inside
the regular browser startup flow.  There is no browser window (no
`Window` at all) and there should be no content processes.  It's
sufficient to treat it like `xpcshell`, with its own stripped-down
actor and a few tweaks to the integration points.

The structural changes in this commit keep `--backgroundtask` mode
slim in the regular case when the Devtools are *not* requested.  This
is reflected in the small changes needed to the
`browser_xpcom_graph_wait.js` test: loading the Devtools
unconditionally causes a huge amount of code to be loaded.  In order
to load the Devtools framework conditionally, we check for
Devtools-specific command line flags and delegate to Devtools when
appropriate.  In order to check the command line flags, we turn the
`BackgroundTasksManager` into an XPCOM service, which allows it to be
instantiated by XPCOM in order to handle the command line.

One final note: this leaves two XPCOM components, "backgroundtasks"
and "backgroundtasksmanager".  Why not combine them?  This is
technically possible but not attractive: we really do want a natural
place for native/C++ code ("backgroundtasks") and JavaScript code
("backgroundtasksmanager").

Differential Revision: https://phabricator.services.mozilla.com/D129771
2022-03-03 03:38:39 +00:00
Gijs Kruitbosch 50456b4016 Bug 1757040 - add add_setup() primitive to xpcshell test framework, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D139648
2022-02-26 15:36:33 +00:00
Valentin Gosu cb45d20182 Bug 1756969 - TRR strict mode should still fallback to DNS for rcode errors r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D139582
2022-02-25 10:25:56 +00:00
Shane Caraveo 256cdcb8e1 Bug 1756827 validate add_task properties r=jmaher,rpl
Differential Revision: https://phabricator.services.mozilla.com/D139495
2022-02-23 18:22:32 +00:00
Mitchell Hentges e8a78d6118 Bug 1755088: Replace all usages of unittest deprecated aliases r=webdriver-reviewers,ahal,whimboo
There's some unittest-related functions that we heavily lean on
that are deprecated:
https://docs.python.org/3/library/unittest.html#deprecated-aliases

This is a big find-and-replace that was restricted based on files that
matched the pattern `*test*.py` and that weren't in any of the paths
listed in `tools/rewriting/ThirdPartyPaths.txt`.

Differential Revision: https://phabricator.services.mozilla.com/D138608
2022-02-17 15:21:41 +00:00
Shane Caraveo d6bc8d61fd Bug 1751966 support preference setting in add_task r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D136918
2022-01-25 21:47:00 +00:00
Geoff Brown e87630dcdc Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu
Run with fission by default in test harnesses, with --disable-fission available as an
option.
Android mach commands automatically set --disable-fission; this can be over-ridden by
--setpref=fission.autostart=true.
fission.autostart is removed from all test profiles.
No changes to wpt, handled already in bug 1743714.

Differential Revision: https://phabricator.services.mozilla.com/D135137
2022-01-07 20:30:45 +00:00
Butkovits Atila 311094ffb4 Backed out 2 changesets (bug 1744091) for causing Jit failures. CLOSED TREE
Backed out changeset 0c43fef8293a (bug 1744091)
Backed out changeset fd582a6dca2d (bug 1744091)
2022-01-07 21:37:10 +02:00
Geoff Brown 618f09cd4c Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu
Run with fission by default in test harnesses, with --disable-fission available as an
option.
Android mach commands automatically set --disable-fission; this can be over-ridden by
--setpref=fission.autostart=true.
fission.autostart is removed from all test profiles.
No changes to wpt, handled already in bug 1743714.

Differential Revision: https://phabricator.services.mozilla.com/D135137
2022-01-07 15:34:02 +00:00
Joel Maher 20271059cf Bug 1743907 - remove webrender references from wpt/xpcshell. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D135220
2022-01-06 14:19:33 +00:00
Chris H-C 59f494d61a Bug 1742133 - Expose FOG service as Services.fog and convert uses r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D132742
2021-12-08 21:18:19 +00:00
Nihanth Subramanya ce645e5dff Bug 1737198 - Part 2: Test connection cycling. r=valentin,necko-reviewers
This adds a feature to moz-http2's doh path that helps test connection
cycling. We log the remote ports of DoH requests and expose an API to
fetch the log. A specific name will trigger us to send a delayed response
to help simulate network volatility. The log is then checked for correctness
in the test script.

Differential Revision: https://phabricator.services.mozilla.com/D131467
2021-12-02 13:21:53 +00:00
Noemi Erli 56a43f9e9e Backed out 9 changesets (bug 1743122, bug 1737198) for causing assertion failure in TRRServiceChild.cpp CLOSED TREE
Backed out changeset 044390f37a8f (bug 1743122)
Backed out changeset d742fcfb8fad (bug 1737198)
Backed out changeset 9e4b52c06e3c (bug 1737198)
Backed out changeset 546b0f714a4d (bug 1737198)
Backed out changeset 189ed6145945 (bug 1737198)
Backed out changeset 3bab6f5b5b6b (bug 1737198)
Backed out changeset cdc9de540f2f (bug 1737198)
Backed out changeset e981d9e9c11c (bug 1737198)
Backed out changeset 04a75a837de9 (bug 1737198)
2021-12-02 13:40:57 +02:00
Nihanth Subramanya b2d98a24c0 Bug 1737198 - Part 2: Test connection cycling. r=valentin,necko-reviewers
This adds a feature to moz-http2's doh path that helps test connection
cycling. We log the remote ports of DoH requests and expose an API to
fetch the log. A specific name will trigger us to send a delayed response
to help simulate network volatility. The log is then checked for correctness
in the test script.

Differential Revision: https://phabricator.services.mozilla.com/D131467
2021-12-02 10:13:34 +00:00
criss a587690d98 Backed out 9 changesets (bug 1737198, bug 1743122) by dev request. CLOSED TREE
Backed out changeset 8ea0830f0ebc (bug 1743122)
Backed out changeset 5d68e2b664cc (bug 1737198)
Backed out changeset c43e8d579121 (bug 1737198)
Backed out changeset 7c257276a971 (bug 1737198)
Backed out changeset 05e67f464ee1 (bug 1737198)
Backed out changeset 04bae7f14cec (bug 1737198)
Backed out changeset b703cf81d197 (bug 1737198)
Backed out changeset 6f1e88c3daf3 (bug 1737198)
Backed out changeset 960ecb376a56 (bug 1737198)
2021-12-02 11:57:08 +02:00
Nihanth Subramanya 9442c33260 Bug 1737198 - Part 2: Test connection cycling. r=valentin,necko-reviewers
This adds a feature to moz-http2's doh path that helps test connection
cycling. We log the remote ports of DoH requests and expose an API to
fetch the log. A specific name will trigger us to send a delayed response
to help simulate network volatility. The log is then checked for correctness
in the test script.

Differential Revision: https://phabricator.services.mozilla.com/D131467
2021-12-02 09:40:51 +00:00
Alexandru Michis 045fc2e5f4 Backed out 8 changesets (bug 1737198, bug 1743122) for causing xpcshell failures in unit/test_trr.js
CLOSED TREE

Backed out changeset 525922fbae63 (bug 1743122)
Backed out changeset f370d8070271 (bug 1737198)
Backed out changeset 84a05e5b5e8d (bug 1737198)
Backed out changeset f7eeff0744f4 (bug 1737198)
Backed out changeset ae860da29fd4 (bug 1737198)
Backed out changeset 827456b1b2e8 (bug 1737198)
Backed out changeset 2ebd361d8512 (bug 1737198)
Backed out changeset c3b726205642 (bug 1737198)
2021-12-01 20:31:09 +02:00
Nihanth Subramanya d55e9affdb Bug 1737198 - Part 2: Test connection cycling. r=valentin,necko-reviewers
This adds a feature to moz-http2's doh path that helps test connection
cycling. We log the remote ports of DoH requests and expose an API to
fetch the log. A specific name will trigger us to send a delayed response
to help simulate network volatility. The log is then checked for correctness
in the test script.

Differential Revision: https://phabricator.services.mozilla.com/D131467
2021-12-01 17:32:17 +00:00
Marian-Vasile Laza 9f1578bb4f Backed out 8 changesets (bug 1743122, bug 1737198) for causing build bustages on nsHostRecord.cpp. CLOSED TREE
Backed out changeset 83df9b71c3f8 (bug 1743122)
Backed out changeset 0b7bc91852a5 (bug 1737198)
Backed out changeset 595e81cc111c (bug 1737198)
Backed out changeset ac08b423bc60 (bug 1737198)
Backed out changeset 956ddc990493 (bug 1737198)
Backed out changeset 480e925ab804 (bug 1737198)
Backed out changeset 17276ab6d127 (bug 1737198)
Backed out changeset 45b749688e6f (bug 1737198)
2021-12-01 01:12:34 +02:00
Nihanth Subramanya 50efea9b6e Bug 1737198 - Part 2: Test connection cycling. r=valentin,necko-reviewers
This adds a feature to moz-http2's doh path that helps test connection
cycling. We log the remote ports of DoH requests and expose an API to
fetch the log. A specific name will trigger us to send a delayed response
to help simulate network volatility. The log is then checked for correctness
in the test script.

Differential Revision: https://phabricator.services.mozilla.com/D131467
2021-11-30 22:02:12 +00:00
Dragana Damjanovic c5ea85db23 Bug 1741422 - Add tests for the 103 responses over HTTP/2 r=necko-reviewers,valentin
GetHeader can return NS_ERROR_NOT_AVAILABLE which is not a fatal error and we should not assert.

Differential Revision: https://phabricator.services.mozilla.com/D131376
2021-11-30 11:07:04 +00:00
Julian Descottes 2e9e1cc305 Bug 1741369 - [devtools] Update paths to loader files outside devtools/ r=perftest-reviewers,preferences-reviewers,sparky,Gijs
Depends on D131217

Differential Revision: https://phabricator.services.mozilla.com/D131218
2021-11-17 12:43:27 +00:00
Valentin Gosu e3e8d0665b Bug 1566998 - Fix lint warning r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D130045
2021-11-11 10:07:32 +00:00
Valentin Gosu 099711b50c Bug 1566998 - Make test_trr/test_odoh::test_CNAME not be dependent on A/AAAA order r=necko-reviewers,kershaw
The order in which we send A/AAAA requests is unspecified.
This test assumed the A request is always first. If we change that logic,
then the variable ends up != 0 on the second request, so we don't get the
proper response anymore.

This patch changes the server handler so it returns the proper response
after decoding the request packet.

Differential Revision: https://phabricator.services.mozilla.com/D130043
2021-11-11 10:07:31 +00:00
Butkovits Atila 4059928c5d Backed out 7 changesets (bug 1566998) for causing build bustages at Logging.h.
Backed out changeset 1d0f667507f4 (bug 1566998)
Backed out changeset dc39d8837aae (bug 1566998)
Backed out changeset 24f76460c44b (bug 1566998)
Backed out changeset b674d5f15f60 (bug 1566998)
Backed out changeset f392ebf40d2a (bug 1566998)
Backed out changeset ecbfa0721168 (bug 1566998)
Backed out changeset d948fe16b8b0 (bug 1566998)
2021-11-09 20:24:03 +02:00
Valentin Gosu c382a1b2b0 Bug 1566998 - Fix lint warning r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D130045
2021-11-09 16:41:45 +00:00
Valentin Gosu 9f4d6be7fc Bug 1566998 - Make test_trr/test_odoh::test_CNAME not be dependent on A/AAAA order r=necko-reviewers,kershaw
The order in which we send A/AAAA requests is unspecified.
This test assumed the A request is always first. If we change that logic,
then the variable ends up != 0 on the second request, so we don't get the
proper response anymore.

This patch changes the server handler so it returns the proper response
after decoding the request packet.

Differential Revision: https://phabricator.services.mozilla.com/D130043
2021-11-09 16:41:45 +00:00
Agi Sferro 8c6612b46b Bug 1738966 - Pass in argc, argv in GreOmniPath. r=kershaw,valentin
A call to InitCommandLine was added in Bug 1727180 where gArgc and gArgv are
not defined.

The same bug also re-enabled some tests that appeared to pass (but really they
were just silently crashing), this patch fixes that too.

Differential Revision: https://phabricator.services.mozilla.com/D130223
2021-11-03 16:31:06 +00:00
Agi Sferro dccddb81bc Bug 1529082 - Move TestRunnerActivity to test_runner. r=ahal,owlish
The fact that the test runner app is defined inside the geckoview test package
has always felt like a hack to me. I've mistakenly thought that
TestRunnerActivity was used in GeckoView's junit tests many times (even though
that's not the case).

From what I can see, there's no way to generate an AAB package for androidTest,
so to be able to run Gecko tests as AAB we finally need to define the
TestRunner as an ordinary package instead.

Differential Revision: https://phabricator.services.mozilla.com/D127320
2021-11-02 18:56:26 +00:00
Agi Sferro 28a487cbb8 Bug 1736433 - Make sure process is not alive when running xpcshell-test. r=jmaher
Sometimes we try to start a process that already exists and that causes a very
confusing error (the test times out but there's no indicastion as to why).

This patch makes it so that we will first try to kill the existing zombie
process and then, if we fail to do so, throw an error.

Differential Revision: https://phabricator.services.mozilla.com/D128937
2021-11-02 18:17:41 +00:00
Agi Sferro c99bb166a5 Bug 1736433 - Add test name to xpcshell-test logs on Android. r=ahal,jmaher
xpcshell-test runs up to 10 concurrent tests and the logs are all interleaved.
This patch adds the test name to every log statement to let developers know
what test is causing the log line to appear in the logs.

Differential Revision: https://phabricator.services.mozilla.com/D128936
2021-11-02 18:17:40 +00:00
Kershaw Chang 34f9cb2633 Bug 1727180 - Call XRE_InitCommandLine for xpcshell, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124890
2021-11-02 16:01:10 +00:00
Jan-Erik Rediger 6762b77e28 Bug 1708668 - Enable Glean testing in xpcshell tests. r=chutten
This ensures Glean is initialized in an xpcshell environment on Android.
When GeckoView is embedded the surrounding app is responsible to
initialize Glean from the Kotlin side.

This also enables the first few FOG tests to run on Android.
For now it changes the Android-specific test file.
As long as not all metric types are enabled we can't reliably test other metrics.

Differential Revision: https://phabricator.services.mozilla.com/D127420
2021-10-22 08:53:29 +00:00
Mark Banner 3633fd7457 Bug 1378173 - Remove Promise.jsm. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D128098
2021-10-14 08:28:28 +00:00
Nihanth Subramanya e6d5cae88b Bug 1731780 - Reject .only() chained onto add_task in tests. r=Gijs,mythmon,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128027
2021-10-13 21:26:40 +00:00
Nihanth Subramanya 3e435a16d6 Bug 1729831 - [DoH] In strict fallback mode, allow fallback when not confirmed. r=necko-reviewers,valentin
In strict fallback mode, confirmation should still catch cases when the provider is
unavailable for whatever reason, and after that we should just fall back. This was
missing from bug 1714182.

Differential Revision: https://phabricator.services.mozilla.com/D126168
2021-10-08 10:24:48 +00:00
Manuel Bucher 799daafe1a Bug 1543811 - Add integration test case for trr requests with padding r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127072
2021-10-07 10:55:22 +00:00
Butkovits Atila b847c844ad Backed out changeset a34634271a66 (bug 1729831) for causing failures at test_odoh.js. CLOSED TREE 2021-10-07 08:44:17 +03:00
Nihanth Subramanya 53e44389e3 Bug 1729831 - [DoH] In strict fallback mode, allow fallback when not confirmed. r=necko-reviewers,valentin
In strict fallback mode, confirmation should still catch cases when the provider is
unavailable for whatever reason, and after that we should just fall back. This was
missing from bug 1714182.

Differential Revision: https://phabricator.services.mozilla.com/D126168
2021-10-07 04:27:15 +00:00
Agi Sferro 4cf1584f9c Bug 1714945 - Wait until app is ready for xpcshell on Android. r=jmaher,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D127296
2021-10-05 22:10:00 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Kershaw Chang fba6d93694 Bug 1695924 - Clear svcparam.odoh after using it, r=necko-reviewers,dragana
`svcparam.odoh` is a temporary variable and should be cleared after writing to buffer.

Differential Revision: https://phabricator.services.mozilla.com/D126330
2021-09-22 12:31:29 +00:00