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

1390 Коммитов

Автор SHA1 Сообщение Дата
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
Alex Lopez a8e7083c84 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-21 20:38:16 +00:00
Butkovits Atila c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Alex Lopez fe61e94ec8 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-20 20:21:07 +00:00
Noemi Erli 91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
Alex Lopez bf860fe7dc 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-17 19:00:39 +00:00
Jens Stutte 87de42e070 Bug 1726813: Ensure AppShutdown remains in sync with shutdown notifications in the parent process. r=xpcom-reviewers,nika,dom-worker-reviewers,asuth
The goal here is to ensure we can always rely on `AppShutdown::GetShutdownPhase` to be in sync with the "real" application status, mainly this was needed for xpcshell tests to not break if we add assertions on our shutdown state on some global singletons.

We keep the existing observer notification topics but force them (on the parent process) to be issued through the new `advanceShutdownPhase` function of the startup service using the `ShutdownPhase` enum. This way we can synchronize `AppShutdown`'s internal status accordingly.

Some further notes:

  # The `MOZ_ASSERT(AppShutdown::IsNoOrLegalShutdownTopic(aTopic));` in `NotifyObservers` helped a lot to identify missing cases. I think we should keep it in order to stay safe.
  # Introducing the `cenum IDLShutdownPhase` helps to keep the knowledge about the mapping from shutdown phases to observer topics exclusively inside AppShutdown.cpp. Still callers must know what they do in order to choose a proper phase, of course.
  # However we must be aware that `AppShutdown` this way can be kept in sync with the shutdown notifications only in the parent process and that `GetCurrentShutdownPhase` might not give the correct result in child processes. We might want to file a follow up bug that adds some asserts to avoid improper use of `AppShutdown` functions in child processes (but I do not want to make this patch bigger as needed to solve the blocking dependency for bug 1697972).
  # The socket process is one example of a child process that "overloads" shutdown topics. I was wondering if it is the right call to use the very same topic names here to request shutdown to the socket process or if it should have its own topics. Those topics triggered the assert and thus I had to disable it for child processes, for now.
  # This goes together with the more general approach to define process type specific shutdown phases (and hence mappings to topics) as drafted very roughly in bug 1697745.
  # This patch seemed to trigger a known intermittent more often, thus the change here in `ServiceWorkerManager`.

Differential Revision: https://phabricator.services.mozilla.com/D124350
2021-09-15 07:25:29 +00:00
Nihanth Subramanya 1951210c53 Bug 1714182 - Don't fallback from DoH to native in cases of request failure. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D123908
2021-09-08 14:36:07 +00:00
Valentin Gosu 17af9b6dd6 Bug 1716571 - Dynamically set up android port forwarding for trr tests r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D118413
2021-08-16 13:41:58 +00:00
Aaron Klotz bdfc8f4938 Bug 1725219: Set MOZ_IN_AUTOMATION for Android xpcshell tests; r=firefox-build-system-reviewers,mhentges
In GeckoView we check for this variable to determine whether we're running in
automation, but until now we never set it for xpcshell.

Differential Revision: https://phabricator.services.mozilla.com/D122380
2021-08-12 19:12:49 +00:00
Manuel Bucher 6cdb3ae33a Bug 1663836 - Treat invalid HTTP response header names over HTTP2 as malformed r=necko-reviewers,dragana
Relevant section in the spec: https://datatracker.ietf.org/doc/html/rfc7540#section-10.3

Differential Revision: https://phabricator.services.mozilla.com/D120969
2021-08-12 09:34:20 +00:00
Kershaw Chang b38ee4d69d Bug 1724871 - P2: Update ODOH to version 1, r=necko-reviewers,valentin
Depends on D122252

Differential Revision: https://phabricator.services.mozilla.com/D122253
2021-08-10 19:50:05 +00:00
Kershaw Chang d289199bd1 Bug 1724871 - P1: Change 'odohconfig' parameter name to 'odoh', r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122252
2021-08-10 19:50:04 +00:00
Rob Wu 6d4afa244f Bug 1723198 - Don't delete user.js in remotexpcshelltests.py + tests r=jmaher
The new tests in testing/xpcshell/example/ cover the following scenarios:

- Local AND remote xpcshell tests. In contrast, modifications to
  selftest.py in bug 1635227 only covered runxpcshelltests.

- `prefs=` inheritance from ancestor manifests as implemented by
  https://hg.mozilla.org/mozilla-central/rev/ac51a01611dc

- Per-file `prefs` setters (used in bug 1638099).

- Multiple prefs and comments per `prefs` line.

Differential Revision: https://phabricator.services.mozilla.com/D121632
2021-08-10 12:14:05 +00:00