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

230 Коммитов

Автор SHA1 Сообщение Дата
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
Martin Stransky 4022b27cb4 Bug 1621911 [Wayland] provide gdk-screenshot.cpp for Wayland desktops, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73014
2020-04-29 10:50:32 +00:00
Geoff Brown abf6e0fdc4 Bug 1612345 - Add custom retrigger support for gtest; r=bc
Add test package mach support for gtest and hook into the custom retrigger
action. Some existing custom retrigger features, like setting gecko prefs,
are not (easily) applicable to gtest, which doesn't use mozprofile; for
this reason, use a separate action context with items suitable for gtest.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 16:12:51 +00:00
Byron Campen [:bwc] bfc7457250 Bug 1605128: Make websocket_process_bridge less picky about the version of six it wants. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D60552

--HG--
extra : moz-landing-system : lando
2020-01-21 19:45:33 +00:00
Edwin Takahashi 8b53684fdc Bug 1596590 - remove unnecessary psutil 5.4.3 specification from desktop_unittest.py r=gbrown
Changes:

Remove the unnecessary psutil == 5.4.3 specifier in `desktop_unittest.py`.

This should be a safe change. Prior to this patch, in a given test task the virtrualenv initialization will first install `psutil==5.6.3`, then proceed to invoke `desktop_unittest.py` where the `psutil==5.4.3` version forces the uninstallation of the newer version to install the older version.

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

--HG--
extra : moz-landing-system : lando
2019-11-16 04:58:02 +00:00
Andrew Halberstadt 898dfb96b4 Bug 1567642 - [lint.flake8] Fix misc flake8 under Python 3 lint issues r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45417

--HG--
extra : moz-landing-system : lando
2019-09-24 14:44:01 +00:00
Mike Hommey 66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Gregory Mierzwinski 92d5021daf Bug 1567954 - Part 1: Initialize Mozpower module and implement PowerBase class. r=perftest-reviewers,ahal,rwood
This patch initializes the Mozpower module and implements the PowerBase class. This class is used as a base for subclasses that implement power measurement tooling for various OS and CPU combinations.

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

--HG--
extra : moz-landing-system : lando
2019-08-01 20:36:00 +00:00
Edwin Gao 1c340c7633 Bug 1559975 - convert testing/tools/iceserver to python3 syntax r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35339

--HG--
extra : moz-landing-system : lando
2019-07-05 14:28:35 +00:00
Henrik Skupin ddc6537052 Bug 1532919 - [marionette] Remove outdated browsermob-proxy mixin from marionette harness package. r=ato
The development of the package has been moved to:
https://github.com/AutomatedTester/browsermob-proxy-py

The in-tree version is outdated, and no longer developed.

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

--HG--
extra : moz-landing-system : lando
2019-03-07 12:26:43 +00:00
Greg Tatum 39cd1d4845 Bug 1525358 - Rename perf.html to profiler.firefox.com; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D18728

--HG--
extra : moz-landing-system : lando
2019-02-21 23:16:40 +00:00
Jeff Gilbert ec5431c0a2 Bug 1349064 - Wrap std::regex_error for GCC. r=glandium 2019-02-21 11:23:59 -08:00
Masatoshi Kimura e25fbce870 Bug 1528651 - Re-enable warnings-as-errors on Windows in some directories. r=dmajor
--HG--
extra : source : ba86ea25070b37f4725834e1c2d9ec4c0783e119
2019-02-17 15:03:02 +09:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Mike Hommey 70f1ad55e1 Bug 1519307 - Add a new project to build useful parts of breakpad independently. r=froydnj
With `ac_add_options --enable-project=tools/crashreporter` in a
mozconfig, `./mach build` builds minidump_stackwalk, dump_syms
and fileid.

One caveat is that due to limitation in how the build system works
currently, it's cumbersome to keep dump_syms as a host program for
Gecko, and to make it a target program for this project. For now,
keep it as a host program. We're not going to use it on automation,
but it's still convenient to have for quick local builds (I've had
to resort to awful hacks downstream).

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

--HG--
extra : moz-landing-system : lando
2019-01-11 16:01:15 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jeff Gilbert f2e0b47bd4 Bug 1499844 - Fix win64 clang-cl -Wformat warnings. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D9027

--HG--
extra : moz-landing-system : lando
2018-10-23 14:18:15 +00:00
Chris Manchester 51a79e8c4f Bug 1496405 - Always build minidumpwriter on Windows to support 64 or 32 bit python. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D7953

--HG--
extra : moz-landing-system : lando
2018-10-06 01:16:01 +00:00
Tom Ritter 7e0fefeaa0 Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium
In the MinGW browser build job, we're going to use -fms-extensions,
which will tell clang to start processing these comments. Clang
cannot process them correctly (it's an upstream bug) but it doesn't
need to, because we include the libs we need in moz.build files.

So we exclude them for MinGW builds. mingw-clang gets them wrong and
mingw-gcc (which doesn't even work anymore on -central) ignored them.

In the future, with a llvm fix, we could clean up the moz.build
files and re-enable these comments.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 03:50:39 +00:00