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

2194 Коммитов

Автор SHA1 Сообщение Дата
Mitchell Hentges 35b16fdf28 Bug 1712133: Inline `testing/mozbase/packages.txt` contents r=ahal
The `mozbase` modules were being unconditionally added to the
`sys.path` regardless of the Mach command being run, so there isn't
much value keeping them in a separate file. Besides, all other
source module paths are described in `common_virtualenv_packages`,
why is `mozbase` special?

In the future, we're going to want to make improvements here (such as:
there's a difference between informing mach of first-party code
versus defining which third_party vendored packages should be in scope,
and that workflow difference should be represented in-code).
It's useful to peel out the existing, less useful abstraction before
we can build a stronger one.

Differential Revision: https://phabricator.services.mozilla.com/D117711
2021-06-17 14:58:17 +00:00
Mitchell Hentges 24f634d924 Bug 1712133: Remove "pth" name customization r=ahal
Having separate `<name>.pth` files in the virtual environments
isn't providing an advantage. We can simplify configuration
by putting all `pth` adjustments into a single file: `mach.pth`.

Differential Revision: https://phabricator.services.mozilla.com/D117710
2021-06-17 14:58:16 +00:00
Csoregi Natalia abf92e58d1 Backed out changeset 74fd8bb17de0 (bug 1714688) for causing Bug 1716860. CLOSED TREE 2021-06-17 17:17:28 +03:00
surajeet310 2241c4ace7 Bug 1714688 - Removed 'if PY3' logic from testing/mozbase r=mhentges
Python2 is no longer used in testing/mozbase

Differential Revision: https://phabricator.services.mozilla.com/D118040
2021-06-16 17:57:48 +00:00
Mitchell Hentges e389cc4cc4 Bug 1714684: Remove usages of vendored "mock" library r=perftest-reviewers,ahal,sparky
Python 3 has access to `unittest.mock` in the standard library.

Differential Revision: https://phabricator.services.mozilla.com/D117073
2021-06-14 15:34:46 +00:00
Andrew Halberstadt 0919caf74a Bug 1696531 - Remove erroneous encoding of subprocess arg in 'mozcrash', r=bhearsum
The 'subprocess.list2cmdline' function fails if you pass in a byte-string on
Python 3, and mozcrash is explicitly encoding that value, so I believe it will
always be an exception when this code path is hit.

I'm a bit surprised because mochitest also calls into this function and has been
running with Python 3 for months now. Since xpcshell and mochitest are the only
things using this and both will be on Python 3, we don't need to worry about
maintaining Python 2 compatibility here.

Depends on D109731

Differential Revision: https://phabricator.services.mozilla.com/D117658
2021-06-14 15:31:42 +00:00
Mitchell Hentges e568fa2e0d Bug 1714641: Remove usages of vendored "backports" code r=ahal,perftest-reviewers
It provides `shutil.which(...)`, which has been part of `shutil` since
Python 3.3.

Differential Revision: https://phabricator.services.mozilla.com/D117063
2021-06-09 15:48:52 +00:00
James Graham 47d37f4cd4 Bug 1714529 - Update mozrunner version for release, r=ahal
This bumps the mozprocess dependency version

Differential Revision: https://phabricator.services.mozilla.com/D116824
2021-06-04 19:34:36 +00:00
James Graham 3b3ce53e0b Bug 1714529 - Update mozprocess version for release, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D116823
2021-06-04 19:34:36 +00:00
James Graham aea537765d Bug 1713935 - Make rust mozrunner pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116593
2021-06-02 20:29:52 +00:00
James Graham acd2d2f445 Bug 1713935 - Make rust mozversion pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116592
2021-06-02 20:29:51 +00:00
James Graham b5e6b1b096 Bug 1713935 - Make rust mozprofile pass clippy, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116591
2021-06-02 20:29:51 +00:00
James Graham 8ebf4b7e0c Bug 1713307 - Bump mozrunner version for release, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D116239
2021-05-28 16:05:27 +00:00
James Graham cd38abf3e8 Bug 1712994 - Remove more block arguments from wptserve consumers, r=denschub
Differential Revision: https://phabricator.services.mozilla.com/D116216
2021-05-28 15:52:01 +00:00
Florin Strugariu 10d3736b7e Bug 1706676 - [mozproxy] Add mozproxy record mode r=sparky,perftest-reviewers
This patch is part of a bigger effort to add proxy service to mozperftest

We are doing base work before updating mozperftest

  - Add mozproxy record mode
  - Add record test
  - Set proxy version in recording .zip file metadata
  - Prettify json output in zip file
  - Update command line options
  - Add optional tooltool path in mozbuild

Differential Revision: https://phabricator.services.mozilla.com/D114977
2021-05-27 19:11:31 +00:00
Joel Maher 9f010baa14 Bug 1712968 - ensure manifest parser filter: failures(), matches they keyword and the entire expression. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D116028
2021-05-26 21:08:36 +00:00
James Graham eabe6e6b82 Bug 1686707 - Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo
Depends on D101770

Differential Revision: https://phabricator.services.mozilla.com/D101771
2021-05-20 12:57:17 +00:00
James Graham b9ceb5add4 Bug 1686707 - Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo
Add support for reading the values passed to command line arguments in
mozrunner. This is a little difficult to do exactly like Firefox as
different arguments may be parsed differently. This patch supports the
following forms:

["--arg", "foo"]

["--arg=foo"]

Depends on D101769

Differential Revision: https://phabricator.services.mozilla.com/D101770
2021-05-20 12:57:17 +00:00
James Graham 73f86d3a3f Bug 1678044 - Switch to explicit profile cleanup rather than using __del__, r=webdriver-reviewers,whimboo
This requires passing the test_environment into the get_executor_kwargs function
so that in the firefox wdspec case we can add a cleanup function to the environment
when running wdspec tests. That seems reasonable since we were previously using
a variety of data in the environment to setup the kwargs anyway

Depends on D99698

Differential Revision: https://phabricator.services.mozilla.com/D101768
2021-05-20 12:57:16 +00:00
Dorel Luca 1dc4a110b6 Backed out 14 changesets (bug 1686707, bug 1707876, bug 1678044) for Spidermonkey failure. CLOSED TREE
Backed out changeset 55869e7f350c (bug 1707876)
Backed out changeset bc88cd35a55d (bug 1707876)
Backed out changeset f0abe77f6bb9 (bug 1707876)
Backed out changeset 85dd729149c9 (bug 1707876)
Backed out changeset 79ced8bb0b5f (bug 1707876)
Backed out changeset f796d42723fd (bug 1707876)
Backed out changeset 9f13338b2838 (bug 1686707)
Backed out changeset baffdc510ceb (bug 1686707)
Backed out changeset d6c151fa0bba (bug 1686707)
Backed out changeset 023e75831c48 (bug 1678044)
Backed out changeset 5281b7443a89 (bug 1678044)
Backed out changeset 6aeb03df54bb (bug 1678044)
Backed out changeset 0eeb2f149770 (bug 1678044)
Backed out changeset d5f5359358fd (bug 1678044)
2021-05-19 23:59:51 +03:00
James Graham 25a7f04297 Bug 1686707 - Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo
Depends on D101770

Differential Revision: https://phabricator.services.mozilla.com/D101771
2021-05-19 19:25:34 +00:00
James Graham 5759929732 Bug 1686707 - Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo
Add support for reading the values passed to command line arguments in
mozrunner. This is a little difficult to do exactly like Firefox as
different arguments may be parsed differently. This patch supports the
following forms:

["--arg", "foo"]

["--arg=foo"]



Depends on D101769

Differential Revision: https://phabricator.services.mozilla.com/D101770
2021-05-19 19:25:34 +00:00
James Graham 3f74c6cd41 Bug 1678044 - Switch to explicit profile cleanup rather than using __del__, r=webdriver-reviewers,whimboo
This requires passing the test_environment into the get_executor_kwargs function
so that in the firefox wdspec case we can add a cleanup function to the environment
when running wdspec tests. That seems reasonable since we were previously using
a variety of data in the environment to setup the kwargs anyway



Depends on D99698

Differential Revision: https://phabricator.services.mozilla.com/D101768
2021-05-19 19:25:33 +00:00
imoraru 942738dd7c Backed out 9 changesets (bug 1678044, bug 1686707) for causing marionette failures at test_fission_autostart.py . CLOSED TREE
Backed out changeset ebd4998c14f6 (bug 1686707)
Backed out changeset 46cbb03eb060 (bug 1686707)
Backed out changeset 780388f3782d (bug 1686707)
Backed out changeset 0ab4fc850e9d (bug 1686707)
Backed out changeset 2f91386cca8e (bug 1678044)
Backed out changeset 708bdb00db84 (bug 1678044)
Backed out changeset 43cf7957ed78 (bug 1678044)
Backed out changeset c5914548a084 (bug 1678044)
Backed out changeset 659084e40ec2 (bug 1678044)
2021-04-22 16:21:26 +03:00
James Graham fb83b5a248 Bug 1686707 - Make rust mozprofile profile path public, r=webdriver-reviewers,whimboo
Depends on D101770

Differential Revision: https://phabricator.services.mozilla.com/D101771
2021-04-22 12:04:09 +00:00
James Graham e211edaa94 Bug 1686707 - Support reading command line argument values in rust mozrunner, r=webdriver-reviewers,whimboo
Add support for reading the values passed to command line arguments in
mozrunner. This is a little difficult to do exactly like Firefox as
different arguments may be parsed differently. This patch supports the
following forms:

["--arg", "foo"]

["--arg=foo"]



Depends on D101769

Differential Revision: https://phabricator.services.mozilla.com/D101770
2021-04-22 12:04:08 +00:00
James Graham cbced25670 Bug 1678044 - Switch to explicit profile cleanup rather than using __del__, r=webdriver-reviewers,whimboo
This requires passing the test_environment into the get_executor_kwargs function
so that in the firefox wdspec case we can add a cleanup function to the environment
when running wdspec tests. That seems reasonable since we were previously using
a variety of data in the environment to setup the kwargs anyway



Depends on D99698

Differential Revision: https://phabricator.services.mozilla.com/D101768
2021-04-22 12:04:07 +00:00
James Graham c171bbb4f3 Bug 1705385 - Allow passing a timeout to mozrunner.Runner.stop, r=ahal
This allows us to handle the case where the runner doesn't stop
e.g. by using a more aggressive signal.

Differential Revision: https://phabricator.services.mozilla.com/D112610
2021-04-21 15:56:29 +00:00
James Graham 3c0bcb202c Bug 1705385 - Allow passing a timeout to mozprocess.ProcessHandler.kill, r=ahal
Unlike the stdlib Popen class, ProcessHandler.kill implictly waits for
the process to end. To avoid hangs in the case where the process
doesn't end, allow passing through a timeout to this function (on
posix only).

This is somewhat unfortunate as it means that ProcessHandler isn't
interchangable with Popen. But the only other option here appears to
be not doing the implicit wait which presumably consumers are relying on.

Differential Revision: https://phabricator.services.mozilla.com/D112609
2021-04-21 15:56:29 +00:00
James Graham 68e74e4f40 Bug 1705385 - [mozprocess] Remove custom process wait code on posix, r=ahal
This is not obviously doing more than the stdlib code does these days,
and also doesn't support timeouts, so we're perhaps better just always
defering to the stdlib.

Differential Revision: https://phabricator.services.mozilla.com/D112608
2021-04-21 15:56:29 +00:00
Andrew Halberstadt 85ddfb695e Bug 1704142 - [mozlog] Handle duration in errorsummary formatter when no 'test_end' is found, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D111468
2021-04-15 14:18:03 +00:00
Andrew Halberstadt 085b2502ff Bug 1704142 - [mozlog] Refactor 'errorsummary' test into standalone file, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D111467
2021-04-15 14:18:02 +00:00
Joel Maher 82e7027ce2 Bug 1704638 - add apple_catalina keyword for manifestparser. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D112034
2021-04-14 14:44:34 +00:00
James Graham f938753c3e Bug 1703802 - Fix xunit logger to return text instead of bytes, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D111797
2021-04-14 08:12:26 +00:00
Geoff Brown 348a56ee33 Bug 1702321 - Improve crash reports for some rust panics; r=kmag
Add some additional patterns for well-known panic frames. This should
improve crash signature reporting for some rust panics.

Differential Revision: https://phabricator.services.mozilla.com/D111690
2021-04-12 20:00:58 +00:00
Florian Quèze b92d76cb9f Bug 1671126 - fix python errors related to mixed strings and byte streams in mozgeckoprofiler symbolication code, r=gregtatum.
Differential Revision: https://phabricator.services.mozilla.com/D110661
2021-04-09 20:50:33 +00:00
Henrik Skupin 6ce8c20c8c Bug 1700557 - [rust-mozprofile] Release version 0.7.2. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D111157
2021-04-08 11:38:19 +00:00
Henrik Skupin 687e7933a6 Bug 1700557 - [rust-mozdevice] Release version 0.3.2. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D111156
2021-04-08 11:38:19 +00:00
Henrik Skupin fadcbf4606 Bug 1703070 - [mozdevice-rust] Unify new lines by removing possible carriage returns from adb response. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D111057
2021-04-07 09:17:43 +00:00
David Parks 6b176f5987 Bug 1682030 - Remove NPAPI plugin process from GeckoChildProcess r=jld,gsvelto
Eliminates the NPAPI plugin process type from the GeckoChildProcess enum as part of NPAPI removal.  In order to avoid altering enum values when updating the process list, the GECKO_PROCESS_TYPE macro has been updated to include the desired enum value.  We want to resist altering the values as they need to be consistent e.g. in telemetry reports.

We also remove plugins from adjacent spots that need to maintain consistency with GeckoChildProcess -- most notably the nsICrashService.

Differential Revision: https://phabricator.services.mozilla.com/D108689
2021-04-06 19:28:20 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks 3f9c44a9ed Bug 1682030 - Remove NPAPI plugin process from GeckoChildProcess r=jld,gsvelto
Eliminates the NPAPI plugin process type from the GeckoChildProcess enum as part of NPAPI removal.  In order to avoid altering enum values when updating the process list, the GECKO_PROCESS_TYPE macro has been updated to include the desired enum value.  We want to resist altering the values as they need to be consistent e.g. in telemetry reports.

We also remove plugins from adjacent spots that need to maintain consistency with GeckoChildProcess -- most notably the nsICrashService.

Differential Revision: https://phabricator.services.mozilla.com/D108689
2021-04-05 23:48:43 +00:00
Florin Strugariu 4fe3769af8 Bug 1702030 - Add mitm 6.0.2 to mozproxy r=perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D110299
2021-03-31 08:59:09 +00:00
Joel Maher 94b771d45e Bug 1701205 - fix power tests to use py3. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D110176
2021-03-30 15:13:17 +00:00
Kartikaya Gupta ab87e66fcf Bug 1701418 - Make panic call compatible with rustc 1.51.0. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D110029
2021-03-29 16:56:41 +00:00
Andrew Halberstadt f9ca327432 Bug 1701278 - [mochitest] Run mochitest selftests with browser-chrome, r=jmaher
This will give us coverage with the browser-chrome flavor.

Differential Revision: https://phabricator.services.mozilla.com/D109933
2021-03-29 14:26:37 +00:00
Henrik Skupin c4a5780b6f Bug 1680407 - [mozdevice-rust] Use sdcard as storage by default for rooted and unrooted devices. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D109586
2021-03-25 13:34:29 +00:00
Agi Sferro 122215de9e Bug 1567341 - Send arguments using array instead of one string in adb.py. r=firefox-build-system-reviewers,mhentges,owlish
Sending arguments in one string breaks arguments that contain a space, e.g. in
xpcshell-test.

Differential Revision: https://phabricator.services.mozilla.com/D106208
2021-03-24 21:49:37 +00:00
Agi Sferro 1a5219c2fd Bug 1567341 - Add launch_service to adb.py. r=firefox-build-system-reviewers,gbrown,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D106206
2021-03-24 21:49:36 +00:00
Alexandru Michis 497409d76e Backed out 24 changesets (bug 1567341) for causing xpcshell failures in test_telemetry.js
CLOSED TREE

Backed out changeset deb795c7d0ed (bug 1567341)
Backed out changeset 62d24a3e5e33 (bug 1567341)
Backed out changeset 1185cabd94e0 (bug 1567341)
Backed out changeset 73a4ae419261 (bug 1567341)
Backed out changeset b6eb111329f3 (bug 1567341)
Backed out changeset 0dc0bfedc042 (bug 1567341)
Backed out changeset 9dca635e41d7 (bug 1567341)
Backed out changeset c34928580933 (bug 1567341)
Backed out changeset f9ba384bb407 (bug 1567341)
Backed out changeset ec25c2df380e (bug 1567341)
Backed out changeset 9e8ea542b51e (bug 1567341)
Backed out changeset 3dc62863a028 (bug 1567341)
Backed out changeset 6c104f865540 (bug 1567341)
Backed out changeset c422ca4207ea (bug 1567341)
Backed out changeset e3df748ed62f (bug 1567341)
Backed out changeset 9d1f27796a97 (bug 1567341)
Backed out changeset 1d93ba23f809 (bug 1567341)
Backed out changeset 55652f6af6ed (bug 1567341)
Backed out changeset 9fb892955a88 (bug 1567341)
Backed out changeset 1cdd95c43416 (bug 1567341)
Backed out changeset 5a839d5e3e33 (bug 1567341)
Backed out changeset ea84b5749a27 (bug 1567341)
Backed out changeset dcb1ae146475 (bug 1567341)
Backed out changeset d72accc274ac (bug 1567341)
2021-03-24 23:37:43 +02:00