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

1375 Коммитов

Автор SHA1 Сообщение Дата
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
Rob Wu dbf28212c1 Bug 1723536 - Clear generated user.js before start of xpcshell test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121631
2021-08-10 12:14:04 +00:00
Iulian Moraru 01f91c94a7 Backed out 2 changesets (bug 1723536, bug 1723198) for causing xpcshell failures on test_SocketScalars.js. CLOSED TREE
Backed out changeset 16c398716c60 (bug 1723198)
Backed out changeset 47c08d2c33f4 (bug 1723536)
2021-08-09 20:16:59 +03:00
Rob Wu c76127baf5 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-09 14:49:17 +00:00
Rob Wu ee18283942 Bug 1723536 - Clear generated user.js before start of xpcshell test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121631
2021-08-09 14:49:17 +00:00
Alexandru Michis 402def0103 Backed out 2 changesets (bug 1723198, bug 1723536) for causing xpcshell failures in test_SocketScalars.js and test_ext_cookieBehaviors.js
CLOSED TREE

Backed out changeset 43a0e54578b1 (bug 1723198)
Backed out changeset 15c67fd83308 (bug 1723536)
2021-08-04 09:20:31 +03:00
Rob Wu f56e6314c0 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-03 22:58:34 +00:00
Rob Wu 5e275415fc Bug 1723536 - Clear generated user.js before start of xpcshell test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121631
2021-08-03 22:58:34 +00:00
Joel Maher 10280a63e8 Bug 1639850 - disable many testing/xpcshell/example/unit xpcshell tests on windows debug. r=intermittent-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D121572
2021-08-03 15:08:14 +00:00
surajeet310 76ad0a69de Bug 1720951 - Removed unused 'ensure_bytes()' and 'ensure_unicode()' from runxpcshelltests.py r=mhentges
Since the functions 'ensure_bytes()' and 'ensure_unicode()' were unused, hence removed.

Differential Revision: https://phabricator.services.mozilla.com/D120600
2021-07-22 22:25:30 +00:00
surajeet310 443fa17b92 Bug 1717651 - Removed instances of 'ensure_subprocess_env' from testing/xpcshell r=mhentges
Since Python 2 is no longer used in testing/xpcshell, therefore 'ensure_subprocess_env' is obsolete.

Differential Revision: https://phabricator.services.mozilla.com/D120267
2021-07-20 14:58:35 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Kershaw Chang 6d7d02f5f7 Bug 1720648 - Make necko work with neqo 0.4.28, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119991
2021-07-15 19:19:55 +00:00
Kershaw Chang 3b354571f5 Bug 1654507 - Part1: Plumbing for setting ech config, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119402
2021-07-13 09:24:25 +00:00