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

200 Коммитов

Автор SHA1 Сообщение Дата
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
Geoff Brown 446e3be5f6 Bug 1516847 - Update help and remove support for 'mach test' with no arguments; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D78804
2020-06-09 19:35:19 +00:00
Geoff Brown 3ce8434d77 Bug 1597261 - [mach test] Avoid re-using subsuite from earlier manifest; r=bc
Simply ensuring an empty kwargs['subsuite'] avoids this tricky edge case.

Differential Revision: https://phabricator.services.mozilla.com/D77910
2020-06-04 16:14:08 +00:00
Tooru Fujisawa 68c7f2f41e Bug 1628784 - Pass TOPSRCDIR environment variable to jsapi-tests, in order to read test files. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D71255
2020-04-27 11:37:13 +00:00
Jan de Mooij 599df644e7 Bug 1619961 - Change 'mach jstests' to not run tests with --jitflags=jstests. r=tcampbell
Running tests with different JIT flags by default is inconsistent with
jstests.py or mach jit-test.

Differential Revision: https://phabricator.services.mozilla.com/D65325

--HG--
extra : moz-landing-system : lando
2020-03-04 16:45:55 +00:00
Geoff Brown ab2019a124 Bug 1619693 - Implement 'mach test-info report-diff'; r=bc
A quick and basic implementation of 'mach test-info report-diff' to provide a
high level comparison of two reports generated by 'mach test-info report'.
Mostly this is trying to give an impression of how many and which tests
have been added and deleted during the time period between the reports.
There is more information in the reports; a more thorough comparison is
possible, but seems lower-value: To be considered in a future bug.

Differential Revision: https://phabricator.services.mozilla.com/D65202

--HG--
extra : moz-landing-system : lando
2020-03-04 08:09:13 +00:00
Hamzah becd55c159 Bug 1614771 - Run `./mach addtest` with Python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D62541

--HG--
extra : moz-landing-system : lando
2020-02-13 16:56:44 +00:00
Chris Manchester 8f676d8627 Bug 1611298 - Fix TypeError in |./mach addtest|. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D60913

--HG--
extra : moz-landing-system : lando
2020-01-23 22:46:24 +00:00
Gijs Kruitbosch e5848ed25c Bug 1610331 - use unix newlines when using 'mach addtest' on Windows, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D60459

--HG--
extra : moz-landing-system : lando
2020-01-21 16:51:39 +00:00
Geoff Brown 17e2f934a6 Bug 1601383 - Re-structure 'mach test-info' code; r=jmaher
Move almost all test-info code out of mach_commands.py and into its own file
and consolidate logging and imports; no functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D56064

--HG--
extra : moz-landing-system : lando
2019-12-06 13:27:54 +00:00
Geoff Brown 320c507752 Bug 1600758 - Add basic ActiveData data to 'mach test-info report'; r=jmaher
This adds test run time and test run/skipped/failed counts for most test types.
There are numerous shortcomings (sometimes exceeding the ActiveData 10K record limit,
test path/name mismatches, no totals for manifest/component/all, etc) but I would
like to see this running asap as I think it provides a good foundation for further
work and discussion.

Differential Revision: https://phabricator.services.mozilla.com/D55576

--HG--
extra : moz-landing-system : lando
2019-12-03 18:56:25 +00:00
Botond Ballo 83bfe6cee0 Bug 1590857 - Don't prompt to install Android app if the user is running 'mach install'. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54381

--HG--
extra : moz-landing-system : lando
2019-11-25 22:17:59 +00:00
Geoff Brown c5fdf45f02 Bug 1582516 - Use TestManifestLoader for 'mach test-info'; r=ahal
Switch 'mach test-info report' and 'mach test-info tests' to use the TestManifestLoader.

Differential Revision: https://phabricator.services.mozilla.com/D54053

--HG--
extra : moz-landing-system : lando
2019-11-21 19:43:11 +00:00
Geoff Brown 9ae75067b3 Bug 1596599 - Minor update for 'mach test-info report --show-manifests'; r=jmaher
Puppeteer tests have t['manifest'] = None; allowing for this avoids downstream pain
when reporting manifests.
(Also removed a stray debugging print statement.)

Differential Revision: https://phabricator.services.mozilla.com/D53102

--HG--
extra : moz-landing-system : lando
2019-11-15 10:38:06 +00:00
Geoff Brown c97e7a5294 Bug 1595257 - Add annotations report to 'mach test-info report'; r=jmaher
This "annotations" report provides a different view of manifest data,
concentrating on the manifest annotations, like "skip-if". What conditions
are used in manifests? How many times does each occur?

Differential Revision: https://phabricator.services.mozilla.com/D52926

--HG--
extra : moz-landing-system : lando
2019-11-14 19:11:07 +00:00
Geoff Brown a52ff2f347 Bug 1591464 - In |mach test-info tests| display bugzilla info sooner; r=bc
Very minor enhancement to 'mach test-info tests <test-name>' such that the list of
related bugs is displayed earlier, before any of the ActiveData queries, so that
all the quickly-retrieved info is displayed before the annoying ActiveData delay.
I had to split set_test_name() into two parts since the first part is required
for the bugzilla report; the second part is not required for bugzilla and involves
a lengthy ActiveData query.

Differential Revision: https://phabricator.services.mozilla.com/D52087

--HG--
extra : moz-landing-system : lando
2019-11-07 15:32:31 +00:00
Ted Campbell 729b33d7fe Bug 1593486 - Cleanup spidermonkey test code in mach. r=froydnj
Remove some overly clever code and make the spidermonkey-related tests more
consistent with each other.

Differential Revision: https://phabricator.services.mozilla.com/D51901

--HG--
extra : moz-landing-system : lando
2019-11-06 18:53:07 +00:00
Geoff Brown 9212846e2c Bug 1594237 - Remove robocop support from 'mach test-info tests'; r=bc
A minor optimization for 'mach test-info tests'.

Differential Revision: https://phabricator.services.mozilla.com/D51946

--HG--
extra : moz-landing-system : lando
2019-11-06 00:29:36 +00:00
Ted Campbell 0a584d961b Bug 1593486 - Cleanup ./mach jsapi-tests implementation r=sfink,froydnj
Standardize the jsapi-tests logic to match the other spidermonkey check
commands in testing/mach_commands.py.

Differential Revision: https://phabricator.services.mozilla.com/D51530

--HG--
extra : moz-landing-system : lando
2019-11-05 16:24:54 +00:00
Ted Campbell cabef1d645 Bug 1593486 - Add ./mach jit-test command r=sfink,froydnj
This allows running the jit_test.py harness using mach. It works very
similarly to the existing 'mach jstests' command.

Differential Revision: https://phabricator.services.mozilla.com/D51518

--HG--
extra : moz-landing-system : lando
2019-11-04 19:46:43 +00:00
Geoff Brown 106bb99f61 Bug 1584310 - Improve reftest annotation reporting in 'mach test-info report'; r=bc
Treat the reftest 'fails-if' as a synonym for manifest parser 'fail-if'.
For any annotation types requested by --filter-keys, display those annotations
in the test-level report (--show-tests).

Differential Revision: https://phabricator.services.mozilla.com/D51166

--HG--
extra : moz-landing-system : lando
2019-10-30 20:33:44 +00:00
Geoff Brown 3b5009d168 Bug 1588935 - Improve efficiency of 'mach test-info report'; r=bc
Pull calls to mozbuild_reader().files_info() out of loops, instead passing
all the paths of interest at once.

Differential Revision: https://phabricator.services.mozilla.com/D49358

--HG--
extra : moz-landing-system : lando
2019-10-16 13:10:39 +00:00
Cosmin Sabou 09a3569500 Bug 1586027 - Fix lint error. r=lint-fix 2019-10-04 00:03:33 +03:00
Geoff Brown 66ce37dbd1 Bug 1586027 - Improve help for 'mach test-info'; r=bc
Adds 'tests' sub-command for 'mach test-info'.
'mach help test-info' shows all sub-commands.
'mach help test-info <subcommand>' shows sub-command descriptions,
including help for the options previously excluded.

Differential Revision: https://phabricator.services.mozilla.com/D48079

--HG--
extra : moz-landing-system : lando
2019-10-03 20:39:28 +00:00
Geoff Brown a61a7cc10b Bug 1586035 - Improve platform naming in 'mach test-info'; r=bc
Instead of choosing specific run.types of interest, like 'e10s', concatenate
all returned strings, eliminating known exceptions, like 'chunked'. Notably
this correctly displays "linux64/debug-e10s-service-worker".

Differential Revision: https://phabricator.services.mozilla.com/D48091

--HG--
extra : moz-landing-system : lando
2019-10-03 20:39:28 +00:00
Geoff Brown c25975635c Bug 1580914 - Ensure config environment before generating test-info report; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46359

--HG--
extra : moz-landing-system : lando
2019-09-18 22:04:39 +00:00
Geoff Brown aa4ae1c9d2 Bug 1581843 - Improve sorting in 'mach test-info report'; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46152

--HG--
extra : moz-landing-system : lando
2019-09-17 15:25:27 +00:00
Andrew Halberstadt f58125d411 Bug 1568638 - [test-info] Create --output-file directory if it doesn't exist, r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D43513

--HG--
extra : moz-landing-system : lando
2019-08-27 19:08:06 +00:00
Geoff Brown dee3c435aa Bug 1575652 - Show test skip counts in 'mach test-info'; r=jmaher
Report both failures and skipped test counts.
(Also incidentally fixes platform name reporting of fission tests.)

Differential Revision: https://phabricator.services.mozilla.com/D44074

--HG--
extra : moz-landing-system : lando
2019-08-29 23:30:29 +00:00
James Graham 92fb46bfa6 Bug 1564425 - Improve error handling of mach addtest, r=bgrins
Ensure that if we try to create a mochitest of unsupported file type we return a
useful error

Differential Revision: https://phabricator.services.mozilla.com/D38224

--HG--
extra : moz-landing-system : lando
2019-08-26 21:06:02 +00:00
Mihai Alexandru Michis 60087ba0c3 Bug 1573585 - Fix unindented block. a=lint-fix CLOSED TREE 2019-08-23 00:05:01 +03:00
Edwin Gao ca724248e4 Bug 1573585 - ensure debugger name is prefixed to the application command when using mach test r=gbrown,Ehsan
If test is run using the `mach test` harness, populate the `extra_args` with `--debugger=<name>` that is expected by the underlying harnesses (`wpt,`, `mochitest`)  in order to maintain compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D42952

--HG--
extra : moz-landing-system : lando
2019-08-22 20:51:11 +00:00
Geoff Brown fd801b55c9 Bug 1572794 - Add summary and filter-values regex to 'mach test-info report'; r=jmaher
Optional summary provides a convenient synopsis of matching tests. filter-values regex
was requested for in bug 1568638, like --filter-values='(?<!!)fission'.

Differential Revision: https://phabricator.services.mozilla.com/D42570

--HG--
extra : moz-landing-system : lando
2019-08-20 16:19:40 +00:00
Geoff Brown 16c83acf2b Bug 1572794 - Add --no-component-report option to 'mach test-info report'; r=jmaher
Keep the existing report format by default, but provide an option to generate a
report that is not broken down by component.

Differential Revision: https://phabricator.services.mozilla.com/D41427

--HG--
extra : moz-landing-system : lando
2019-08-10 21:52:39 +00:00
Geoff Brown 9207b87bbb Bug 1572794 - Add 'flavor' and 'subsuite' args for 'mach test-info report'; r=jmaher
These were already supported by the test resolver; let's use them. More tweaks planned...

Differential Revision: https://phabricator.services.mozilla.com/D41414

--HG--
extra : moz-landing-system : lando
2019-08-09 17:31:56 +00:00
Axel Hecht c3a71a9957 Bug 1321281, add test framework for Fluent migration recipes, r=flod,ahal
Basic test infrastructure for Fluent migration recipes, automate creating
a reference from recipe data, and running the recipe dry and wet.

There are no hard failures for diffs, as it might just be OK.

Differential Revision: https://phabricator.services.mozilla.com/D40200

--HG--
extra : moz-landing-system : lando
2019-08-08 11:54:30 +00:00
Geoff Brown bbd039411d Bug 1404472 - Add mach subcommand for per-component test-info report; r=jmaher
This provides the basic functionality, but certainly not all the bells and whistles. Future work may add summaries and totals, better reftest support, better web-platform support, more flexible filtering, etc.

Differential Revision: https://phabricator.services.mozilla.com/D39224

--HG--
extra : moz-landing-system : lando
2019-07-31 09:21:59 +00:00
Edwin Gao a1cc4534a7 Bug 1519369 - support 'debugger' parser argument for mach test command r=ahal,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39229

--HG--
extra : moz-landing-system : lando
2019-07-26 15:18:18 +00:00
Andrew Halberstadt 3336efcb3f Bug 1473498 - Fixing Py3 compatibility errors reachable from testing/mach_commands.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D37762

--HG--
extra : moz-landing-system : lando
2019-07-16 01:21:55 +00:00
Andrew Halberstadt 3486ba642c Bug 1563797 - Use 'backports.shutil_which' instead of 'which' across the tree r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D37097

--HG--
extra : moz-landing-system : lando
2019-07-11 14:03:39 +00:00