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

239 Коммитов

Автор SHA1 Сообщение Дата
Joel Maher 6f2dbf5942 Bug 1808573 - only add total_runs for test-info-all-tests. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D165975
2023-01-04 19:49:46 +00:00
Joel Maher 7c6fecd0a3 Bug 1806877 - add ability to generate 30 days of groupsummary data from test-info-all job. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D165345
2023-01-03 18:38:10 +00:00
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
Tim Giles 6f77213807 Bug 1797509 - Add help text for determining harness specific arguments. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D161524
2022-11-10 14:43:54 +00:00
Joel Maher 20606b0590 Bug 1785321 - fix edge case in ./mach test-info failure-report. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D154938
2022-08-17 21:21:26 +00:00
Joel Maher e2ea91eace Bug 1777063 - add intermittent failure data to test-info report. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D150668
2022-07-20 19:10:39 +00:00
Joel Maher d2c51be76a Bug 1777243 - fix small typo in 'mach test-info failure-report'. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D150564
2022-06-29 14:28:42 +00:00
Joel Maher c97eeff3bc Bug 1776758 - cleanup and enhance Error running mach test-info failure-report. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D150416
2022-06-28 14:37:04 +00:00
Ted Campbell a18f8a3c2b Bug 1772393 - Allow 'mach jstests' in --disable-tests builds r=iain,sfink
Similar to 'mach jit-tests', we now can allow 'mach jstests' to work with just
the normal build artifacts.

Differential Revision: https://phabricator.services.mozilla.com/D148152
2022-06-02 21:54:59 +00:00
Joel Maher 555f40d15c Bug 1763489 - add failure report to test-info. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D143094
2022-04-08 14:35:33 +00:00
Mitchell Hentges 14386d0c7e Bug 1717104: Activate virtualenv before running command r=perftest-reviewers,ahal,AlexandruIonescu
All commands declaring a virtualenv will have them activated before the
command executes. Removes all now-redundant manual activations of
declared virtualenvs.

Commands that don't declare a virtualenv will still implicitly be
associated with the "common" virtualenv, but unlike explicit
virtualenv declarations it'll have to be activated manually, just
like it was before this patch.

To smooth the migration with existing usages, virtualenv activation
behaviour was changed slightly: if attempting to activate a new
virtualenv, but the source venv is already command venv, then raise an
exception. (In the future, we should improve testability of
virtualenv scaffolding logic so that tests can be added for this
sort of thing.) This did cause some issues with some tests, which
will be solved more cleanly with bug 1724273. In the meantime,
minimal modifications were made to failing tests to keep them green:
* `test_command_line.py` was activating the `common` virtualenv so
  that it could install `mozproxy`, and use its CLI. Instead, I
  modified the test to use `mozproxy` using the "module" interface
  (`python -m mozproxy ...`). At that point, `MozbuildObject` was
  unnecessary and usages were replaced with simpler variants.
* `test_vendor.py` needed its explicit `activate_virtualenv()` call
  patched out. It still needs to use a virtualenv's Python
  executable, but due to `sys.executable` now being kept up-to-date
  as of bug 1717051, it could be used directly.

Differential Revision: https://phabricator.services.mozilla.com/D122892
2022-03-23 14:50:45 +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
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
Alex Lopez 3a5f2e96c6 Bug 1696251: Adjust usages of mozbuild/build_commands.py's Build to simplify future declassing. r=mhentges
In this patch, we differentiate methods that actually come from the `Build`
class from those that actually come from the parent `MachCommandBase` class,
which will have to be called on the `command_context` object. Also, we rename
`builder` to `build_commands` in preparation for those methods becoming top-level
functions of the module of the same name.

Differential Revision: https://phabricator.services.mozilla.com/D126621
2021-09-27 15:17:58 +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
Michael Smith 7bc47a6675 Bug 1728438 - Fix ./mach cppunittest missing argument error r=mhentges
Bug 1696251 forgot to add a `command_context` argument to
`run_cppunit_test`, leading to a mach internal error when running
`./mach cppunittest`.

Differential Revision: https://phabricator.services.mozilla.com/D124128
2021-09-01 15:34:40 +00:00
Steve Fink 0df8aa085c Bug 1721291 - Report jsapi-tests failures with more than just the result code. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D120294
2021-07-26 18:47:48 +00:00
Brindusan Cristian 025b57bdaa Backed out changeset e141930afc4c (bug 1721291) for causing python checks failure in mach_commands.py.
CLOSED TREE
2021-07-22 21:59:05 +03:00
Steve Fink 45f13cfa7c Bug 1721291 - Report jsapi-tests failures with more than just the result code. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D120294
2021-07-22 18:34:18 +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
Mitchell Hentges 20c068df32 Bug 1709084: Don't encode debugger arg as ascii r=sheehan
We're mostly using Python 3 today, so the old `.encode("ascii")`
conversion is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D114152
2021-05-04 15:07:07 +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
Joel Maher 113df4f3a2 Bug 1692453 - remove activedata from test-info. r=releng-reviewers,aki CLOSED TREE
remove activedata from test-info

Differential Revision: https://phabricator.services.mozilla.com/D106301
2021-02-24 22:52:18 +00:00
Csoregi Natalia d8ef0fbfe6 Backed out changeset 24db9230985e (bug 1692453) for lint failure. CLOSED TREE 2021-02-25 02:27:35 +02:00
Joel Maher a9dd0fa077 Bug 1692453 - remove activedata from test-info. r=releng-reviewers,aki
remove activedata from test-info

Differential Revision: https://phabricator.services.mozilla.com/D106301
2021-02-24 22:52:18 +00:00
Steve Fink 536f49d107 Bug 1688919 - Implement `mach jit-test --cgc` r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103056
2021-01-26 23:22:46 +00:00
Bob Clary c35f5ec5c8 Bug 1681096 - python3 - pylint --py3k - W1655: dict.keys referenced when not iterating (dict-keys-not-iterating) r=marionette-reviewers,perftest-reviewers,jmaher,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D99056
2020-12-11 21:13:12 +00:00
Andrey Bienkowski 6bb5b574bc Bug 1674635 Improve documentation for `mach test` r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D95455
2020-11-03 17:09:46 +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
Ben Hearsum b81bccea51 Bug 1638952: remove check-spidermonkey mach command. r=sfink,releng-reviewers,aki DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D94159
2020-10-22 13:12:32 +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
Ricky Stewart 6e1d74e077 Bug 1624667 - Allow running `mach jit-test` if tests are disabled r=mhentges,froydnj
This works fine, so no reason not to allow it.

Differential Revision: https://phabricator.services.mozilla.com/D86398
2020-08-26 14:45:52 +00:00
Ricky Stewart 26df756a8a Bug 1659113 - Fix bad call to constructor of Build object after bug 985141 r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87076
2020-08-14 14:18:43 +00:00
Andrew Halberstadt d0fbcca0b6 Bug 985141 - [mozbuild] Remove leading underscore from MozbuildObject._activate_virtualenv, r=firefox-build-system-reviewers,perftest-reviewers,andi,AlexandruIonescu,rstewart
This function is used all across the tree and should be considered a public API.

Differential Revision: https://phabricator.services.mozilla.com/D85045
2020-07-28 16:06:10 +00:00
Geoff Brown d0f02440a4 Bug 1422005 - Fix 'mach test cppunittest'; r=jmaher
Correct typo in parameter name to enable 'mach test cppunittest'.

Differential Revision: https://phabricator.services.mozilla.com/D78984
2020-06-09 22:32:21 +00:00