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

248 Коммитов

Автор SHA1 Сообщение Дата
Alex Lopez 2da2365f75 Bug 1388894 - Replace list of mach modules to load with a dict of mach commands r=mhentges
This starts a centralized place to keep track of mach commands with some essential
metadata.

Differential Revision: https://phabricator.services.mozilla.com/D136790
2022-02-02 20:25:21 +00:00
Alex Lopez e39b3c93d9 Bug 1388894 - Add function in Mach to load commands from files in bulk. r=mhentges
This reduces some code duplication and paves the way for modifying how
Mach loads modules.

The plan is to follow this up by making this function take a more fleshed out 'spec'
that maps command names to the files they're defined at and possibly more metadata.
Since this may affect how Mach works internally (e.g. with lazy loading in the roadmap),
it makes sense to move this logic inside the Mach class.

Differential Revision: https://phabricator.services.mozilla.com/D136789
2022-02-02 20:25:20 +00:00
Mike Hommey 1acc37c7a6 Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-30 20:56:43 +00:00
Iulian Moraru b469802d84 Backed out changeset 7f9b4b6191ad (bug 1747756) for causing multiple failures. CLOSED TREE 2021-12-30 01:59:26 +02:00
Mike Hommey cb50a5444f Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges
While mingw builds don't require user32 and advapi32 explicitly, it doesn't
hurt for them to be there (and they're required for clang-cl build).
Likewise, while clang-builds don't require uuid and userenv explicitly
because they're pulled in via #pragmas in the source code, mingw doesn't
support those #pragmas and needs them explicitly, which doesn't hurt the
clang-cl builds.

Differential Revision: https://phabricator.services.mozilla.com/D134737
2021-12-29 22:18:52 +00:00
Mike Hommey fce6eb7d83 Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-23 20:29:07 +00:00
Cristian Tuns e1e31e01f2 Backed out 2 changesets (bug 1747165) for causing nightly blockers(bustages) a=backout
Backed out changeset 4b1ab0915c94 (bug 1747165)
Backed out changeset 96043d814772 (bug 1747165)
2021-12-23 08:00:54 -05:00
Mike Hommey b55194a16f Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-22 23:56:24 +00:00
Iulian Moraru 9b600caf7e Backed out changeset 950519715871 (bug 1743907) for causing install python package failures. CLOSED TREE 2021-12-10 04:50:20 +02:00
Joel Maher 2afd09590e Bug 1743907 - remove reftest sandbox references to webrender. r=ahal,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D132728
2021-12-09 19:41:48 +00:00
Sylvestre Ledru 70be2344fc Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici
This changed with this:
https://github.com/psf/black/pull/1740

Depends on D130964

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-22 22:10:03 +00:00
Alexandre Lissy 60d10601bb Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 14:02:55 +00:00
Alexandru Michis 2cb5b32d02 Backed out 2 changesets (bug 1726804) for causing sm bustages in geckoprocesstypes.
CLOSED TREE

Backed out changeset bf7f73fd1921 (bug 1726804)
Backed out changeset c9936f7534cb (bug 1726804)
2021-11-19 11:40:59 +02:00
Alexandre Lissy b71c7b7255 Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 08:33:42 +00:00
Iulian Moraru 897bb9d353 Backed out 2 changesets (bug 1707591) for causing python mozlint failures on test_yaml.py. CLOSED TREE
Backed out changeset a730ab2d0dbe (bug 1707591)
Backed out changeset 0269849fd7ef (bug 1707591)
2021-11-12 18:44:36 +02:00
Sylvestre Ledru c1b5edd8be Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=webdriver-reviewers,whimboo,gerard-majax
This changed with this:
https://github.com/psf/black/pull/1740

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-12 15:06:56 +00:00
Byron Campen [:bwc] b07dc252d7 Bug 1731302: Update python requirements to enable TURN TLS support in the iceserver. r=jmaher
Also, specify the version of autobahn we want, since the latest on our pypi
does not support python 3.6.9, which is what we are using on android and linux.

Differential Revision: https://phabricator.services.mozilla.com/D126019
2021-09-23 17:30:20 +00:00
Byron Campen 527386b7e7 Bug 1730238: Re-enable these tests on windows 2004. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D125443
2021-09-13 23:57:36 +00:00
Mitchell Hentges f5b0cb5bc1 Bug 1717051: Rename "mach_bootstrap.py" to "mach_initialize.py" r=firefox-build-system-reviewers,glandium
We've overloaded "bootstrap" to mean three different things:
* The "standalone bootstrap script": `python/mozboot/bin/bootstrap.py`.
  This is to freshly clone a new repo, then run `./mach bootstrap`.
* `./mach bootstrap`: Install necessary dependencies and set up the
  system for development.
* "Mach bootstrap": do the in-process initialization work Mach needs
  before it can run commands.

By using the term "initialize" instead, perhaps we can remove
ambiguity when discussing Mach.

I'm not attached to the name (or this change at all), but I'm interested
in reviewer thoughts :)

Differential Revision: https://phabricator.services.mozilla.com/D120410
2021-09-03 20:46:22 +00:00
Mike Hommey 221139493a Bug 1721962 - Switch to pkg-config for X11 libraries. r=firefox-build-system-reviewers,jgilbert,andi
Differential Revision: https://phabricator.services.mozilla.com/D121309
2021-07-30 11:39:39 +00:00
Byron Campen caec2d397d Bug 1717054: Use autobahn instead of txws for websocketprocessbridge r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D118225
2021-06-25 18:27:44 +00:00
surajeet310 7294b6a18f Bug 1714688 - Removed 'if PY3' logic from testing/tools r=mhentges
Python2 is no longer used in testing/tools

Differential Revision: https://phabricator.services.mozilla.com/D118044
2021-06-24 15:27:35 +00:00
Csoregi Natalia 28dc1a443c Backed out 2 changesets (bug 1714688) for causing Bug 1717578. CLOSED TREE
Backed out changeset 997f00815e6b (bug 1714688)
Backed out changeset 941f6c6c51e3 (bug 1714688)
2021-06-22 19:06:18 +03:00
surajeet310 f351e19360 Bug 1714688 - Removed unnecessary postfix '_3' from 'websocketprocessbridge_requirements_3.txt' r=mhentges
Now that only the file 'websocketprocessbridge_requirements.txt' is used, so the qualifier '_3' is redundant.

Differential Revision: https://phabricator.services.mozilla.com/D118255
2021-06-21 18:46:21 +00:00
surajeet310 6183f2c8d1 Bug 1714688 - Removed 'if PY2' logic from testing/mozharness r=mhentges
Python2 is no longer used in testing/mozharness. Hence,all the instances of file 'websocketprocessbridge_requirements.txt' are removed as it is obsolete now.

Differential Revision: https://phabricator.services.mozilla.com/D118214
2021-06-21 18:46:20 +00:00
Byron Campen [:bwc] d1fc4209b2 Bug 857668: Teach test TURN server to open additional ports, on which it will respond with 300. r=mjf,ahal
Differential Revision: https://phabricator.services.mozilla.com/D115276
2021-05-27 21:08:37 +00:00
Byron Campen [:bwc] fd55c6b4ca Bug 857668: Some IPv6 fixes and refactoring in the test TURN server. r=mjf,ahal
Differential Revision: https://phabricator.services.mozilla.com/D115275
2021-05-27 21:08:37 +00:00
Byron Campen [:bwc] afc52e3c18 Bug 1702323: Get this TURNS server code working again. r=ahal
Not that it helps us on CI, because of bug 1323439, but we can at
least run it locally.

Differential Revision: https://phabricator.services.mozilla.com/D110634
2021-04-05 14:53:00 +00:00
Mike Hommey c1515076ae Bug 1689467 - Allow mach commands in test package to use python 3. r=releng-reviewers,jmaher
Few mach commands require python 2 nowadays. It doesn't make sense to
error out anymore.

Differential Revision: https://phabricator.services.mozilla.com/D103448
2021-01-29 12:08:46 +00:00
Bob Clary 4dc1f37753 Bug 1681096 - python3 - pylint --py3k - W1649: Accessing a deprecated function on the string module (deprecated-string-function) r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D99094
2020-12-08 15:20:15 +00:00
Bob Clary f3712b2973 Bug 1681096 - python3 - pylint --py3k - W1612: unicode built-in referenced (unicode-builtin) r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D99082
2020-12-08 16:28:08 +00:00
Bob Clary 841da37d77 Bug 1681096 - python3 - pylint --py3k - W1636: map built-in referenced when not iterating (map-builtin-not-iterating) r=perftest-reviewers,aki,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D99079
2020-12-09 08:05:21 +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 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
Byron Campen [:bwc] f337c3d484 Bug 1669251: Get iceserver.py working properly with py3, while minimizing the number of things we do differently for py2. r=ahal
Also remove some semicolons.

Differential Revision: https://phabricator.services.mozilla.com/D94450
2020-10-23 15:15:58 +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
Geoff Brown 9224bd537c Bug 1669251 - py3 compatibility changes for iceserver and websocketprocessbridge; r=ahal
This allows me to run iceserver and websocketprocessbridge in mochitests under python 3. Some
tests still fail for me, so follow-up is likely required, but these changes at least allow
the servers to run without obvious failures.

Differential Revision: https://phabricator.services.mozilla.com/D92667
2020-10-06 21:31:47 +00:00
Geoff Brown 1ad79e5d65 Bug 1668097 - Update websocketprocessbridge dependencies for py3; r=bc
Under python 3, use a separate requirements file to install newer versions of twisted and ipaddr;
keep the original requirements under python 2 as the latest versions are problematic in our
Windows CI environment.

Differential Revision: https://phabricator.services.mozilla.com/D91942
2020-10-01 20:30:26 +00:00
Mike Hommey aa86bba7ac Bug 1662601 - Remove fileid. r=gsvelto
The last thing that was using fileid was fix-stacks, which, as of bug
1662037, doesn't anymore.

Differential Revision: https://phabricator.services.mozilla.com/D89076
2020-09-05 05:31:28 +00:00
Joel Maher c3f53eef4d Bug 1658448 - tweaks to windows unittest setup to support running on hardware. r=markco
tweaks to windows unittest setup to support running on hardware.

Differential Revision: https://phabricator.services.mozilla.com/D86637
2020-08-11 18:45:09 +00:00
Razvan Maries 19dba4d200 Backed out changeset a4be7cf49e07 (bug 1658448) for Windows max run time exceeded failures. CLOSED TREE 2020-08-11 04:41:46 +03:00
Joel Maher fa8efffb8b Bug 1658448 - tweaks to windows unittest setup to support running on hardware. r=markco
tweaks to windows unittest setup to support running on hardware.

Differential Revision: https://phabricator.services.mozilla.com/D86637
2020-08-10 22:45:56 +00:00
Mitchell Hentges 1f5b9307c3 Bug 1636251: Patch Sentry events to ensure a raw username isn't sent to Sentry r=rstewart
To avoid sending identifying information, common absolute paths are patched with placeholder values. For example, devs
may place their Firefox repository within their home dir, so absolute paths are doctored to be prefixed with
"<topsrcdir"> instead.

Additionally, any paths including the user's home directory are patched to instead be a relate path from "~".

Differential Revision: https://phabricator.services.mozilla.com/D78962
2020-06-11 21:35:05 +00:00
Greg Tatum 4d20207a95 Bug 1628073 - Remove the view_gecko_profile.py tool; r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74294
2020-05-22 13:19:58 +00:00
Greg Tatum 593ab0604f Bug 1628073 - Move gecko profiler testing files to mozgeckoprofiler; r=sparky,perftest-reviewers,gbrown
I need to add symbolication support for the mochitest Gecko Profiler command line
option. These profiles also need to be symbolicated. Unfortunately, there is not
a common place where I could use these files. Talos and Raptor each had their
own copy of the snappy symbolication server.

This commit consolidates these packages into a re-usable mozbase package that can
be used in mochitests, and eventually in other places like xpcshell tests.

I stubbed out a test file, but it doesn't do anything quite yet. This commit makes
it so that the tests still work in Raptor and Talos, but doesn't add any features.
It also doesn't try too hard to make the files look like a mozbase package.

Differential Revision: https://phabricator.services.mozilla.com/D74289
2020-05-22 13:18:44 +00:00
Greg Tatum 01b425b6d5 Bug 1628073 - Rewrite view_gecko_profile.py to open a URL; r=perftest-reviewers,sparky
The current implementation opens the built Firefox in the objdir. This is not
optimal as the built Firefox is not really great for viewing files in. The build
could be broken. With this patch, the profiles will instead be opened in the users
default browser.

Differential Revision: https://phabricator.services.mozilla.com/D70089
2020-05-22 13:17:30 +00:00