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

28 Коммитов

Автор SHA1 Сообщение Дата
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
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 259963ca76 Bug 1651824 - Run `mozboot` and `compare-mozconfig` unit tests in `mozbuild` task and not in `make check` r=froydnj
This is where the `compare-mozconfig` test properly belongs, and `mozbuild` tests already re-run every time a `mozboot` file changes.

Differential Revision: https://phabricator.services.mozilla.com/D83130
2020-07-10 18:25:07 +00:00
Tom Prince 0b741aa881 Bug 1521584: [win64-aarch64] Add win64-aarch64 release mozconfigs; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D17452

--HG--
extra : moz-landing-system : lando
2019-01-26 09:50:27 +00:00
Andrew Halberstadt 9435736ade Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq

--HG--
extra : rebase_source : 456340d0ecdddf1078f2b5b4ebb1eddf3813b26a
2018-06-27 11:10:02 -04:00
Sylvestre Ledru dcfef841a7 bug 1463425 - Fix flake8/pep8 issue by hand in build/ r=gps
MozReview-Commit-ID: AZdcEWyVV6e

--HG--
extra : rebase_source : b1c45028c8d46be5ba590a27a2f9f20e248a26b1
2018-05-21 23:58:19 +02:00
Gregory Szorc 252e60c9b2 Bug 1426566 - Remove wrapper to compare-mozconfigs; r=froydnj,nalexander
Recent refactoring made the wrapper pretty useless. Since I'm about
to look at this code once more, let's remove it while we're here.

MozReview-Commit-ID: GA9cKeLH7Iu

--HG--
extra : rebase_source : 9e08ed60eab694a9f20385aa5f85a9909809b199
2018-01-05 14:16:04 -08:00
Gregory Szorc 02239354a8 Bug 1419182 - Look for extra lines in nightly whitelist; r=mshal
Before, the whitelist['nightly'] entries could contain lines that
didn't actually occur in the mozconfig. With this commit, we
require that all lines in the whitelist actually exist in the
mozconfig.

MozReview-Commit-ID: LdHfFAcBzgv

--HG--
extra : rebase_source : 0606dbe9641ec9fdb9de3148483bf6a3e00b0335
2017-11-20 14:55:29 -08:00
Gregory Szorc 2ee15dbd8d Bug 1419182 - Consolidate mozconfig comparison logic into compare-mozconfigs.py; r=mshal
Hopefully this makes it more obvious how all of this is hooked
together.

MozReview-Commit-ID: 1jeyIZgHYht

--HG--
extra : rebase_source : 961474b1c19eacdcfe5ed2d90ba0d1b16a5a29c3
2017-11-20 14:47:01 -08:00
Gregory Szorc 52f4862e3f Bug 1419182 - Pass topsrcdir into compare-mozconfigs.py; r=mshal
We currently have the logic for compare-mozconfigs spread across
2 Python files. I'd like to move the logic into 1 file so we
can do nicer things more easily. In preparation for this, change
compare-mozconfigs.py to receive an argument that is the path to
the topsrcdir. Also, switch to argparse because it is more modern.

MozReview-Commit-ID: 7oFQzAdmcim

--HG--
extra : rebase_source : 547cdac9dabf4fa22832648ac1838300d2d75c4a
2017-11-20 14:34:50 -08:00
Gregory Szorc 446e278913 Bug 1419182 - Clean up value checking; r=mshal
MozReview-Commit-ID: LAS0Iaf40nI

--HG--
extra : rebase_source : e512f28d26f20deecf3a33705632dc9782b15c3e
2017-11-20 14:27:13 -08:00
Gregory Szorc 276f8b37d7 Bug 1419182 - Remove functionality for downloading mozconfigs; r=mshal
Pretty sure this is a relic of running this check in automation
outside the context of a source check. compare-mozconfigs.py is
essentially a source lint. I don't see a need for this feature to
exist.

MozReview-Commit-ID: 1FUbJayg1sO

--HG--
extra : rebase_source : 48d8e9db9e04962eee90bbf5fcbd565c1bbbc9cb
2017-11-20 14:18:46 -08:00
Gregory Szorc 709afc0e39 Bug 1419182 - Don't use mutable default argument value; r=mshal
We always passed this argument in so this change doesn't fix
any bugs. I just didn't like the code smell.

MozReview-Commit-ID: IXzj1gRbkJ6

--HG--
extra : rebase_source : cc8cec18cc7d7f0ab1a997065d1cc6cdd1d5c86d
2017-11-20 14:14:56 -08:00
Gregory Szorc 6055e47e96 Bug 1419182 - Hard code whitelist key; r=mshal
We only call this function once. Behavior doesn't need to
be parameterized.

MozReview-Commit-ID: BR6WU4GSeyO

--HG--
extra : rebase_source : 873e3860efee3abb06e987c9747dfec4ba851e5a
2017-11-20 14:09:47 -08:00
Gregory Szorc e4bc53aec9 Bug 1419182 - Remove unused required keys feature; r=mshal
Nobody passes in the "required" argument. Remove it and
functionality related to it.

MozReview-Commit-ID: IB8s4CiDy6a

--HG--
extra : rebase_source : 1eea96bb6f7ff15b97c72d2b7516db9f83dc0bdf
2017-11-20 14:06:35 -08:00
Gregory Szorc 6623fc17dc Bug 1415365 - Run compare-mozconfigs for all platforms; r=mshal
compare-mozconfigs is platform agnostic AFAICT. And it runs fast.
Let's run tests for all the platforms all the time.

MozReview-Commit-ID: GqsFCp3XdZG

--HG--
extra : rebase_source : 4fd8fb48af61bfc95ec6c251ccf6fcf557ff6c0c
2017-11-07 16:19:26 -08:00
Gregory Szorc b7bc275d4e Bug 1415365 - Remove unused imports; r=mshal
MozReview-Commit-ID: B8zGAsZvk2H

--HG--
extra : rebase_source : 8740a2d02c8343b4bc09e0b2520f0a304112c145
2017-11-07 16:13:44 -08:00
Sebastian Hengst 0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Mike Shal c080ecbf37 Bug 1295375 - Drop universal Mac builds; r=coop,gps
MozReview-Commit-ID: 1huYEjyxRA1

--HG--
rename : browser/config/mozconfigs/macosx-universal/beta => browser/config/mozconfigs/macosx64/beta
rename : browser/config/mozconfigs/macosx-universal/common-opt => browser/config/mozconfigs/macosx64/common-opt
rename : browser/config/mozconfigs/macosx-universal/release => browser/config/mozconfigs/macosx64/release
extra : rebase_source : 5d0e4cdb54d605d8d8d5cf4e78142bd262682dd3
2016-12-07 15:45:39 -05:00
Mike Shal 75f6b1620b Bug 1320761 - assert failure on beta-to-nightly mozconfig comparison; r=gps
MozReview-Commit-ID: DPt4namtWAr

--HG--
extra : rebase_source : 82c9d222576c0a377afd221c22c0398fa3396315
2016-11-28 14:54:55 -05:00
Andrew Halberstadt 6adcf5b456 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D

--HG--
extra : rebase_source : 11a92a2bc544d067946bbd774975140147458caa
2016-11-16 09:59:22 -05:00
Ted Mielczarek 7b1faa29bc bug 1255479 - make `mach python-tests` use TestResolver for discovery, make `mach test` work for python tests. r=nalexander
MozReview-Commit-ID: CK2Vh6gdnb0

--HG--
extra : rebase_source : 2b1b05224ade41ad500dc66116beb3b091db9cde
extra : amend_source : 349f7cc876383d873acb1c73c0118d394f39284d
extra : histedit_source : 6d1d44188bb3a4fc69da2900e8118ce2a88a5fd7
2016-03-10 12:30:10 -05:00
Rail Aliiev a184b15bba Bug 1142231 - [build-promotion] Create SDK in each en-US build. r=nthomas 2015-10-23 22:59:54 -04:00
Jason Yeo 7eb08ca2c3 bug 763903: regularly run mozconfig comparisons. r=gps/bhearsum
--HG--
extra : rebase_source : bce7ca1529dd139f92ddb42f898aea3842ae0689
2013-07-31 14:27:13 -04:00
Ben Hearsum b57a62fdd3 bug 763903: regularly run mozconfig comparisons for firefox. r=ted/bhearsum
--HG--
extra : rebase_source : 84a54e6362d8d6cef6bbd0a88c1f59e3fa7972b6
2013-07-15 13:27:12 -04:00