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

220 Коммитов

Автор SHA1 Сообщение Дата
Marco Castelluccio 9a5c674965 Bug 1801836 - Remove no longer necessary 'from __future__' imports under testing/. r=linter-reviewers,webdriver-reviewers,perftest-reviewers,ahal,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165399
2022-12-23 10:08:06 +00:00
Marco Castelluccio 8f59316975 Bug 1790816 - Reformat testing/ with isort. r=linter-reviewers,webdriver-reviewers,perftest-reviewers,jgraham,gbrown,whimboo,sparky,ahal
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162657
2022-12-21 14:38:37 +00:00
Ryan VanderMeulen 721455b1c2 Bug 1806222 - Set llvm-symbolizer path for TSAN cpptests & gtests. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D164960
2022-12-20 14:25:34 +00:00
Alexandre Lissy 5d0257721a Bug 1798711 - Remove duplication of DisableCrashReporter on gtest r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D162972
2022-11-30 14:41:42 +00:00
Geoff Brown 63d3ae8677 Bug 1797132 - Improve Android gtest crash reporting; r=jmaher
Do not wait for gtest process completion in mozdevice; instead, rely
on existing gtest support for waiting for process completion.
The mozdevice no-wait code was broken; fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D160321
2022-10-26 13:39:17 +00:00
Geoff Brown 80e9f2b640 Bug 1797104 - Dump crash report after desktop gtest timeouts; r=jmaher
Following a gtest timeout, signal the process to generate a minidump, then
dump the crash report to the test log, just like the existing timeout
handling for mochitest, reftest, etc.
This makes no changes for Android; it was already working.

Differential Revision: https://phabricator.services.mozilla.com/D160249
2022-10-25 17:41:07 +00:00
Geoff Brown 2692d090ae Bug 1790905 - Respect ASAN_SYMBOLIZER_PATH when running asan cppunit/xpcshell/gtests; r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D157751
2022-09-20 21:13:20 +00:00
Nika Layzell 8aa98212cc Bug 1790614 - Part 1: Add helpers for asserting nsresult in gtest, r=ahal
These helpers are inspired by the gtest-provided
{ASSERT,ENSURE}_HRESULT_{SUCCEEDED,FAILED} macros.

These are intended as replacements for patterns like
ENSURE_TRUE(NS_SUCCEEDED(rv)) which will actually report the encountered
nsresult error code code when they fail.

Differential Revision: https://phabricator.services.mozilla.com/D157213
2022-09-15 14:51:49 +00:00
Chris H-C 657d21502b Bug 1756057 - In GTest have FOG init when the runner runs, instead of in some random test r=janerik
Depends on D147448

Differential Revision: https://phabricator.services.mozilla.com/D147449
2022-07-20 14:54:57 +00:00
smolnar dbaa55f2e3 Backed out 4 changesets (bug 1756057) for causing xpc failures in toolkit/components/glean/tests/xpcshell/test_FOGInit.js CLOSED TREE
Backed out changeset 9a0c99591eb4 (bug 1756057)
Backed out changeset 414e2fb866f2 (bug 1756057)
Backed out changeset f56dc6857da7 (bug 1756057)
Backed out changeset 76096ec38942 (bug 1756057)
2022-07-18 18:51:20 +03:00
Chris H-C b4a877fed5 Bug 1756057 - In GTest have FOG init when the runner runs, instead of in some random test r=janerik
Depends on D147448

Differential Revision: https://phabricator.services.mozilla.com/D147449
2022-07-18 14:24:32 +00:00
Nika Layzell 7012e3c857 Bug 1761511 - Part 4: Remove the previous vendoring of gtest, r=ahal
As the new version is now being used, the previous version is no longer
necessary.

Differential Revision: https://phabricator.services.mozilla.com/D142611
2022-04-14 02:09:21 +00:00
Nika Layzell a268768056 Bug 1761511 - Part 3: Switch builds over to use the new vendoring of gtest, r=ahal
This required some changes to tests to account for the version differences.

Differential Revision: https://phabricator.services.mozilla.com/D142610
2022-04-14 02:09:21 +00:00
Cosmin Sabou 97d21fa167 Backed out 5 changesets (bug 1761511) for causing build bustages. CLOSED TREE
Backed out changeset 687de8c00013 (bug 1761511)
Backed out changeset 88e6cf5c70e5 (bug 1761511)
Backed out changeset 4c40758f54f1 (bug 1761511)
Backed out changeset 8a18abcccda4 (bug 1761511)
Backed out changeset 1afb1f32a6a4 (bug 1761511)
2022-04-07 00:13:00 +03:00
Nika Layzell ab856dbf40 Bug 1761511 - Part 4: Remove the previous vendoring of gtest, r=ahal
As the new version is now being used, the previous version is no longer
necessary.

Differential Revision: https://phabricator.services.mozilla.com/D142611
2022-04-06 20:45:07 +00:00
Nika Layzell b48d249a34 Bug 1761511 - Part 3: Switch builds over to use the new vendoring of gtest, r=ahal
This required some changes to tests to account for the version differences.

Differential Revision: https://phabricator.services.mozilla.com/D142610
2022-04-06 20:45:07 +00:00
Joel Maher ab7ae9ad03 Bug 1743907 - remove webrender from harnesses and taskcluster. r=MasterWayZ,webdriver-reviewers,perftest-reviewers,AlexandruIonescu,whimboo,ahal
Differential Revision: https://phabricator.services.mozilla.com/D134715
2022-01-04 20:07:45 +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
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
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
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
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Alex Lopez d1a82b8092 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-22 18:56:15 +00:00
Cosmin Sabou 785f9b8a87 Backed out changeset d4a5d8567977 (bug 1696251) for non-unified build bustages. CLOSED TREE 2021-04-19 19:43:31 +03:00
Alex Lopez 75dfe35468 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-19 16:15:11 +00:00
smolnar d65394b9d6 Backed out changeset 8063ff05e5b1 (bug 1678487) for causing windows widget xpc failures. CLOSED TREE 2021-02-17 15:09:23 +02:00
Emilio Cobos Álvarez d0560f6a2e Bug 1678487 - Initialize gfxPlatform explicitly in xpcshell / gtest. r=jrmuizel
Otherwise CMS might not get initialized and some of the image decoding
tests or such may assert.

Differential Revision: https://phabricator.services.mozilla.com/D105088
2021-02-17 10:39:36 +00:00
Butkovits Atila 3f9e8bcf24 Backed out changeset b2536c2f1f97 (bug 1678487) for causing failures on test_crashreporter_crash.js. 2021-02-17 00:10:42 +02:00
Emilio Cobos Álvarez 9ff8284160 Bug 1678487 - Initialize gfxPlatform explicitly in xpcshell / gtest. r=jrmuizel
Otherwise CMS might not get initialized and some of the image decoding
tests or such may assert.

Differential Revision: https://phabricator.services.mozilla.com/D105088
2021-02-16 21:07:21 +00:00
Masatoshi Kimura 03d7defdfa Bug 1684110 - Define UNICODE on some directories. r=glandium
so that people do not accidentally use 'A'-functions.

Differential Revision: https://phabricator.services.mozilla.com/D100420
2021-01-13 22:49:59 +00:00
Bob Clary 1584100fb2 Bug 1681096 - python3 - pylint --py3k - W1618: from __future__ import absolute_import r=perftest-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D98939
2020-12-14 17:50:17 +00:00
Bob Clary 9e125ea710 Bug 1681096 - python3 - pylint --py3k - W1619: from __future__ import division r=marionette-reviewers,perftest-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D98938
2020-12-11 16:05:25 +00:00
Bob Clary 900a0163dc Bug 1681093 - python3 - from __future__ import print_function, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D98937
2020-12-07 19:43:57 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Simon Giesecke 987aea606d Bug 1669652 - Fix llvm-symbolizer path encoding. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D92744
2020-10-07 13:49:41 +00:00
Bob Clary eda9179372 Bug 1651196 - add additional logging for remotegtests.py AppWaiter.update_log, r=jmaher.
Depends on D90012

Differential Revision: https://phabricator.services.mozilla.com/D90013
2020-09-14 13:56:14 +00:00
Geoff Brown 7909a5e0cd Bug 1658033 - Turn off verbose output from adb in android gtests; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D86433
2020-08-07 22:43:54 +00:00
Ricky Stewart 31755b431d Bug 1657650 - Require that Mach command providers subclass MachCommandBase. r=remote-protocol-reviewers,marionette-reviewers,maja_zf,mhentges,froydnj
Today we don't require that `mach` `CommandProvider`s subclass from any particular parent class and we're very lax about the requirements they must meet. While that's convenient in certain circumstances, it has some unfortunate implications for feature development.

Today the only requirements that we have for `CommandProvider`s are that they have an `__init__()` method that takes either 1 or 2 arguments, the second of which must be called `context` and is populated with the `mach` `CommandContext`. Again, while this flexibility is occasionally convenient, it is limiting. As we add features to `mach`, having a better idea what the shape of our `CommandProvider`s are and how we can instantiate them and use them is increasingly important, and this gives us additional control when having `mach` configure `CommandProvider`s based on data that is only available at the `mach` level. In particular, we plan to leverage this in bugs 985141 and 1654074.

Here we add validation to the `CommandProvider` decorator to ensure all classes inherit from `MachCommandBase`, update all `CommandProvider`s in-tree to inherit from `MachCommandBase`, and update source and test code accordingly.

Follow-up work: we now require (de facto) that the `context` be populated with a `topdir` attribute by the `populate_context_handler` function, since instantiating the `MachCommandBase` requires a `topdir` be provided. This is fine for now in the interest of keeping this patch reasonably sized, but some additional refactoring could make this cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D86255
2020-08-07 18:24:59 +00:00