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

102 Коммитов

Автор SHA1 Сообщение Дата
Ben Hearsum df680134e4 Bug 1714200: fix mozinfo apple silicon detection. r=jmaher
(Pdb) platform.uname()
uname_result(system='Darwin', node='macmini-m1-10.local', release='20.5.0', version='Darwin Kernel Version 20.5.0: Sat May  8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101', machine='arm64')
(Pdb) platform.uname()[-1]

Differential Revision: https://phabricator.services.mozilla.com/D120750
2021-07-26 13:08:21 +00:00
Michelle Goossens 9ee976c248 Bug 1722111 - Add win10_2004 to mozinfo to skip tests on new Win10 2004 images r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D120772
2021-07-23 23:24:00 +00:00
Jonathan Kew 99ebe15aaf Bug 1721586 - Correctly check the processor when setting the apple_silicon flag in mozinfo. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D120467
2021-07-21 15:33:57 +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
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
Joel Maher 43d0329455 Bug 1678641 - add support to mozinfo for apple_silicon. r=releng-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D97767
2021-02-12 21:26:34 +00:00
Bob Clary fbefc79bcb Bug 1681096 - python3 - pylint --py3k - W1641: Implementing __eq__ without also implementing __hash__ (eq-without-hash) r=marionette-reviewers,aki,gbrown,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99092
2020-12-11 12:21:32 +00:00
Bob Clary 21d25f887d Bug 1681096 - python3 - pylint --py3k - W1629: __nonzero__ method defined (nonzero-method) r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D99083
2020-12-09 20:03:29 +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
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
Ben Campbell 51c76c17d3 Bug 1654915 - Make mozinfo version parsing tolerant of non-numeric version strings. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D85691
2020-09-24 21:43:47 +00:00
William Lachance 76a1d84247 Bug 1646038 - Bump mozinfo version r=egao
Depends on D79817

Differential Revision: https://phabricator.services.mozilla.com/D79818
2020-06-16 16:41:54 +00:00
William Lachance 3b7378876a Bug 1646038 - Loosen distro dependency in mozinfo r=egao
Differential Revision: https://phabricator.services.mozilla.com/D79817
2020-06-16 16:41:42 +00:00
Mitchell Hentges ed90a04ad1 Bug 1632874: |mach bootstrap| should write mozconfig file if it doesn't exist r=rstewart
Rather than always printing instructions at the end of the bootstrap phase, we will now create a mozconfig
file if one doesn't exist and there's configuration to be written.

Differential Revision: https://phabricator.services.mozilla.com/D78417
2020-06-08 19:36:56 +00:00
Edwin Takahashi 1568067289 Bug 1609483 - ensure linux distributions that don't report os_version or codename have the field populated r=jmaher,gbrown
Changes:

`distro` and `platform` have differing behavior when presented with edgier cases such as Arch Linux.

In some cases, the output of `mozinfo.info` when run on Arch Linux comes out to:

```
(u'Arch Linux', '', '')
```

This causes problems for things that rely on mozinfo downstream because the `os_version` value is not set, and during the comparison stage of manifests, manifestparser attempts to run `somevalue > unset value` that then causes mach to error.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 18:19:41 +00:00
Edwin Takahashi c43a1bb5e8 Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52440

--HG--
extra : moz-landing-system : lando
2019-11-13 19:42:41 +00:00
Cosmin Sabou ec14bf90ea Backed out changeset 4b4f0fb8292c (bug 1595220) for several reftest failures. 2019-11-13 06:59:07 +02:00
Edwin Takahashi 87cd6febcd Bug 1595220 - streamline and sanitize output of distro/platform linux_distribution call in mozinfo r=jmaher
Simplified and streamlined the logic in the Linux side of things, to address 1595147.

Only attempt to import and use either `platform` or `distro`, not both.

Perform sanitization of the output string since `distro.linux_distribution()` has a slightly different output than the `platform` equivalent.

Minor version bump to 1.2.1 denoting a bugfix for release to pypi.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 19:23:31 +00:00
Edwin Takahashi 16d5d677ce Bug 1212502 - bump mozinfo version up to 1.2.0 in preparation for upload to pypi r=gbrown
When I updated the dependencies and the `mozinfo.py` code I forgot to bump up the version denoting some changes. This will bump up the version from 1.1.0 to 1.2.0 and permit me to upload a new version to pypi.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 21:19:39 +00:00
Edwin Takahashi 128ef1e636 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal,KWierso
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-30 20:42:50 +00:00
Dorel Luca 3d43b20c77 Backed out changeset ca117d13ca06 (bug 1212502) for Windows 2012 build bustage. CLOSED TREE 2019-10-22 20:53:27 +03:00
Wes Kocher 49fba76f39 Bug 1212502 - Switch mozinfo to using the 'distro' package to get linux distribution info r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D49366

--HG--
extra : moz-landing-system : lando
2019-10-22 17:33:13 +00:00
Andrew Halberstadt e1337a729d Bug 1567642 - [mozbase] Fix flake8 under py3 lint errors r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45243

--HG--
extra : moz-landing-system : lando
2019-09-09 23:55:32 +00:00
Kartikaya Gupta 721a5dbcf4 Bug 1558598 - Ensure mozinfo correctly detects WebRender. r=ahal
I don't know if this covers all the things that use mozinfo (probably not)
but it covers all the suites that use mozinfo and have webrender conditions
in the test manifests (i.e. mochitest and wpt variants).

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:51:14 +00:00
Ian Moody 93748b5526 Bug 1540653 - [mozinfo] Bump version to 1.1.0. r=ahal
Just a version-bump so DONTBUILD.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 20:21:08 +00:00
Ian Moody 709594bd91 Bug 1538382 - Teach mozinfo to report the correct values for bits and processor on ARM64. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D24574

--HG--
extra : moz-landing-system : lando
2019-03-27 17:02:41 +00:00
Andrew Halberstadt ce87b08ac4 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

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

--HG--
extra : moz-landing-system : lando
2018-12-05 19:20:16 +00:00
Edwin Gao a4a34c8cfa Bug 1305743 - Add optional parameter to make failure to find mozinfo.json a fatal error r=gbrown
Changes:
- added optional keyword argument to the find_and_update_from_json() function: raise_exception
- the optional keyword argument accepts a boolean value depending on if exception is desired.

Tests
- added a few tests to ensure the expected exceptions are raised only when raise_exception flag is True.

Other changes:
- improved docstring for the find_and_update_from_json() method.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 22:03:56 +00:00
Andreea Pavel e3299fd2db Backed out 5 changesets (bug 1498640, bug 1436037, bug 1497660, bug 1505579) for mass failures on a CLOSED TREE
Backed out changeset 914a7a899dd1 (bug 1436037)
Backed out changeset e072757bf691 (bug 1436037)
Backed out changeset b0805a8cf6eb (bug 1505579)
Backed out changeset aa32ba9e6df3 (bug 1498640)
Backed out changeset ce441b8a784c (bug 1497660)
2018-11-15 07:53:41 +02:00
Andrew Halberstadt b03e2aa337 Bug 1436037 - [python] Create Windows python-test tasks, r=gps
The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

MozReview-Commit-ID: C07FANaYzf7

Depends on D10758

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

--HG--
extra : moz-landing-system : lando
2018-11-15 00:49:45 +00:00
Cosmin Sabou 7244d89e06 Backed out changeset dcba2a476ccf (bug 1305743) on request from jgraham for causing issues with mozinfo.json. a=backout 2018-10-04 01:05:44 +03:00
Edwin Gao 415a950090 Bug 1305743 - Make failure to find mozinfo.json a fatal error r=gbrown,ahal a=reland
- moved placement of the raise_exception computation to be after the initial objdir path computation.
- original implementation was missing detection for cases where user may pass in a False flag to explicitly suppress errors.
- added unit tests to check for scenarios where raise_exception flag is passed in as part of positional argument.
- changed argument to include a **kwargs argument for caller to modify default exception behavior.
- default behavior is to raise exceptions if mozinfo.json cannot be found.
- disabled TreeMetadataEmitter from calling mozinfo.find_and_update_from_json and setting the self.info variable since it was not referenced anywhere else after the initial setup.

Depends on D6859

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

--HG--
extra : source : 6d25c44c39ea33ebe25829d945b00963dad39ea4
extra : amend_source : 5c7a556b122f887113bae16356ffcf4bd064b620
2018-09-26 20:07:25 +00:00
Cosmin Sabou 9d56737f57 Backed out changeset 6d25c44c39ea (bug 1305743) on request from jgraham for causing issues with mozinfo.json. a=backout 2018-10-03 20:27:01 +03:00
Edwin Gao b8a91d1cf9 Bug 1305743 - Make failure to find mozinfo.json a fatal error r=gbrown,ahal
- moved placement of the raise_exception computation to be after the initial objdir path computation.
- original implementation was missing detection for cases where user may pass in a False flag to explicitly suppress errors.
- added unit tests to check for scenarios where raise_exception flag is passed in as part of positional argument.
- changed argument to include a **kwargs argument for caller to modify default exception behavior.
- default behavior is to raise exceptions if mozinfo.json cannot be found.
- disabled TreeMetadataEmitter from calling mozinfo.find_and_update_from_json and setting the self.info variable since it was not referenced anywhere else after the initial setup.

Depends on D6859

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

--HG--
extra : moz-landing-system : lando
2018-09-26 20:07:25 +00:00
Aaron Klotz 8ff40206fc Bug 1491489: Add automation property to mozinfo.info; r=ahal!
When MOZ_AUTOMATION is set, then automation = true

Differential Revision: https://phabricator.services.mozilla.com/D5921
2018-09-14 17:42:13 -06:00
Raphael Pierzina f17db4328b Bug 1471625 - Bump mozinfo to v1.0.0 and update classifiers;r=davehunt
MozReview-Commit-ID: 1Kgl4fCzCyq

--HG--
extra : rebase_source : 865e9abdd4a04b3e3dc1906ce8ec497096f5e6b3
2018-07-03 14:22:11 +02:00
Raphael Pierzina 6eaf5002c2 Bug 1471625 - Create setup.cfg for universal wheels in mozinfo;r=davehunt
MozReview-Commit-ID: 3GRRIx3KH6x

--HG--
extra : rebase_source : 405d134b1d9b7cf01bae2a00c470c69fa0a7c72e
2018-07-03 13:39:20 +02:00
Raphael Pierzina b259225456 Bug 1471625 - Resolve Python 3.5 compat issues in mozinfo;r=davehunt
MozReview-Commit-ID: HdPEVAJnXZf

--HG--
extra : rebase_source : ede5641bf5a03fc59d49a95c4b93f93aa69c0c16
2018-07-03 11:06:11 +02:00
Cosmin Sabou 8ce5b1c6cf Backed out 3 changesets (bug 1471625) for linting failure on mozinfo/tests/test.py. CLOSED TREE
Backed out changeset 7d0fb7a6b9fa (bug 1471625)
Backed out changeset 217570468fde (bug 1471625)
Backed out changeset 70d0097e8c03 (bug 1471625)
2018-07-03 17:02:02 +03:00
Raphael Pierzina 25881406e9 Bug 1471625 - Bump mozinfo to v1.0.0 and update classifiers;r=davehunt
MozReview-Commit-ID: 1Kgl4fCzCyq

--HG--
extra : rebase_source : 62bfddcd6444fe820d0c2b94bf7d9f60d12d4fa3
2018-07-03 14:22:11 +02:00
Raphael Pierzina 8d972d1397 Bug 1471625 - Create setup.cfg for universal wheels in mozinfo;r=davehunt
MozReview-Commit-ID: 3GRRIx3KH6x

--HG--
extra : rebase_source : 73f980885e08760fa9052964ff6ae3db24e454be
2018-07-03 13:39:20 +02:00
Raphael Pierzina d4d653049f Bug 1471625 - Resolve Python 3.5 compat issues in mozinfo;r=davehunt
MozReview-Commit-ID: HdPEVAJnXZf

--HG--
extra : rebase_source : 0fb105798e6aae08c05edf433ff65e6b8a08cba3
2018-07-03 11:06:11 +02:00
Dave Hunt 696d9f1858 Bug 1388016 - Run mozbase tests against Python 2 and 3; r=ahal
MozReview-Commit-ID: LdmTHHrLZwq

--HG--
extra : rebase_source : e7f21bb73ffc1a322a10eef21b705b14a2077144
2018-06-21 06:26:17 +01:00
Geoff Brown 28a529bf00 Bug 1428461 - Decouple mozinfo from the six module; r=wlach 2018-01-08 07:41:08 -07:00
Vedant Chakravadhanula 8abb52257b Bug 1426330 - Add python 3 support for mozinfo. r=wlach
MozReview-Commit-ID: CRoF4mk9ASA

--HG--
extra : rebase_source : 1b77e80c473dbbc79cd987b2a01f84d08c539135
2017-12-27 12:51:10 +05:30