Commit Graph

67 Commits

Author SHA1 Message Date
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
Tom Prince
a45ea20b93 Bug 1413575: Adjust in-tree references to mozbase documentation to point in-tree. r=ahal
MozReview-Commit-ID: rctbByyjTA

--HG--
extra : rebase_source : a682eb6d77b79640ac9ec20e9d64340613bcfed7
2017-11-20 11:43:13 -07:00
Steve Armand
fa0b6e7c7e Bug 1397849 - Enable py2 and py3 linter on testing/mozbase. r=ahal
MozReview-Commit-ID: GnaVLhtO4un

--HG--
extra : rebase_source : 8839a423c5db505469b813957649b1605ed5737f
2017-09-25 22:57:18 -04:00
Kartikaya Gupta
57ae48126f Bug 1398223 - Add a webrender flag to mozinfo to allow using it in mochitest.ini conditions. r=gbrown
MozReview-Commit-ID: IEgirFNntzS

--HG--
extra : rebase_source : ce25ccba7e1a8274733c412c61e84cb680315683
2017-09-20 16:24:39 -04:00
Ganti Sai Sarath Chandra
6ed789d12b Bug 1378422 - Add python 2 only classifiers to python modules under /testing, r=ahal
MozReview-Commit-ID: DRi8KFyCnBn

--HG--
extra : rebase_source : 3ac98bdc648f8a0e3dc6d3b6d42e19dfc295a396
2017-08-19 04:19:06 +05:30
Andrew Halberstadt
c9beaa56b4 Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher
This is needed before we can upgrade to flake8 3.3.0, as that version starts flagging these errors.

These files were modified by running:
autopep8 --select E305 --in-place -r <dir>

on the affected directories. I did it one dir at a time and verified the result after each.

MozReview-Commit-ID: FmlsfiKIbtr

--HG--
extra : rebase_source : 9df32258cadff5d27a0e72113c57f782756c0b18
2017-06-15 12:10:59 -04:00
William Lachance
a95523e2a5 Bug 1366919 - Bump mozinfo version to 0.10 r=ahal
MozReview-Commit-ID: 2k5xgTogSN6

--HG--
extra : rebase_source : f92dfdf4cede8309a4f9fc021b1cc1d6a1bc687f
2017-05-23 13:04:29 -04:00
William Lachance
089ed28b97 Bug 1366919 - Consider MSYS_NT to equal windows in mozinfo r=ahal
MozReview-Commit-ID: FtLNulaCDEV

--HG--
extra : rebase_source : f3b8f23ad075f39a50f4a09ab52f93a11116825c
2017-05-23 13:00:59 -04:00
Andrew Halberstadt
9e94d21674 Bug 1335873 - Ignore MozconfigFindException when looking for a mozinfo.json, r=maja_zf
This gets raised when trying to run the marionette-harness python tests without an objdir.
It's safe to ignore because mozinfo.json will still be found via the 'dirs' variable which
gets passed in from the marionette harness.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 6e3910667146b9caf0a9abe9a707b34627ba272b
2017-02-15 16:37:58 -05:00
Sebastian Hengst
9da116023c Backed out changeset caacf82afba1 (bug 1335873) for failing spidermonkey pkg due to not finding new file python.ini. r=backout 2017-03-01 17:35:45 +01:00
Andrew Halberstadt
640509a3a9 Bug 1335873 - Ignore MozconfigFindException when looking for a mozinfo.json, r=maja_zf
This gets raised when trying to run the marionette-harness python tests without an objdir.
It's safe to ignore because mozinfo.json will still be found via the 'dirs' variable which
gets passed in from the marionette harness.

MozReview-Commit-ID: Ata99evHxbd

--HG--
extra : rebase_source : 10731561f644aa563c85ed4a8f70759e64eb4ed2
2017-02-15 16:37:58 -05:00
Andrew Halberstadt
8415b25e37 Bug 1003417 - Add a 'mozbase' subsuite to python unittests on linux, r=ted
The subsuite is added conditionally because we only have the capability of
running source-check tasks on linux at the moment. Once taskcluster support
for windows and mac has matured a bit and the taskcluster configs support
source-check there, we should apply the subuite unconditionally.

MozReview-Commit-ID: Kk9Irz3fn14

--HG--
extra : rebase_source : b9266a06583083c36477d4e93f5462ee614cdb71
2016-11-16 16:43:42 -05:00
John Paul Adrian Glaubitz
c17700bc07 Bug 1326496 - testing:mozbase: Use find_library to get libc filename. r=ahal
On architectures like alpha and ia64, the glibc does not use the
canonical ABI version number 6 but 6.1 and therefore the filename
of the C library is not libc.so.6 but libc.so.6.1. We're therefore
making the Python code more flexible and use find_library from
ctypes.util to determine the filename from the environment instead
of hard-coding it.

--HG--
extra : rebase_source : 64676648cec9975045a6dfeae1cfc9213226e242
2016-12-30 14:35:55 +01:00
Andrew Halberstadt
2d76b4f70d Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
extra : rebase_source : 10f65e612f5b3cebb921c47699f5a8be7cd2ba5a
2016-11-17 16:36:18 -05:00
Gregory Szorc
dc86faefcd Backed out changeset 361ac37d15d6 (bug 1311580) for breaking WPT's rather narrow expectations
On a CLOSED TREE.

--HG--
extra : amend_source : 6492a41c5c66da4ea0f5e8f260227dd05f681a61
2016-10-21 16:28:29 -07:00
Ted Mielczarek
d0f81be1fb bug 1311580 - Fix mozinfo os_version / linux_distro on Linux. r=jmaher
MozReview-Commit-ID: FD9fzKg6Ei4

--HG--
extra : rebase_source : f2e0dcc74cc997e14a07546f215cd3e9a123855b
2016-10-19 21:04:21 -04:00
Francesco Pischedda
f45ed99748 Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal
added testing/mozbase to tools/lint/flake8.lint
fixed a first batch of PEP8 errors/warnings

at first the commad autopep8 -i --max-line-length 99 -r -j 8 .
has been used to fix simpler problems, run from testing/mozbase

some of the issues can not easily fixed :
- undefined 'names' in code for example isLinux - isLinux and isBsd "fixed" with # noqa
- undefined 'message' resolved with return fmt.format(...
- undefined 'structured' resolved replacing those with mozlog
- long comments - some remaining - addressed with # noqa
- package level import everything - addressed with # flake8: noqa

restored testing/mozbase/mozdevice/mozdevice/Zeroconf.py
fixed issues reported on mozreview
fixed ')' in testing/mozbase/mozprocess/mozprocess/qijo.py imports
finally fixed multiline string at testing/mozbase/manifestparser/tests/test_manifestparser.py:114
^^^ and again, but now with ./mach python-test --path-only testing/mozbase/manifestparser/tests/test_manifestparser.py passing
fixed testing/mozbase/manifestparser/tests/test_convert_directory.py assert

fixed this error:
10:15:21     INFO -      return lambda line: stack_fixer_module.fixSymbols(line)
10:15:21     INFO -  TypeError: fixSymbols() takes exactly 2 arguments (1 given)

fixed two spaces lint error even of #  noqa comments
restored assignement to lambda with #  noqa to silence the lint error
global noqa for testing/mozbase/manifestparser/tests/test_filters.py
stupid is/is not error...

MozReview-Commit-ID: 1FpJF54GqIi

--HG--
extra : rebase_source : 3cf0277fb36a296e3506aeacc2ff05e1b03f9eac
2016-09-30 16:08:37 +02:00
Wes Kocher
e1ade7ef8a Backed out 8 changesets (bug 1286900) for win7vm wpt timeouts a=backout
Backed out changeset 3fff88de2f2d (bug 1286900)
Backed out changeset 748abfe6748e (bug 1286900)
Backed out changeset b4844ee1e542 (bug 1286900)
Backed out changeset bde587e47d00 (bug 1286900)
Backed out changeset a1311218621b (bug 1286900)
Backed out changeset 2de97e3cfcb3 (bug 1286900)
Backed out changeset 43df1e962f8e (bug 1286900)
Backed out changeset 6ed46e8ac86c (bug 1286900)
2016-10-04 17:17:07 -07:00
Gregory Szorc
a358731e48 Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted
As part of converting WPT to run from a source checkout in automation,
I ran into problems where mozinfo.json wasn't being loaded, causing
several tests to fail. This is because mozinfo.json is only found
from a source directory or from a parent of the WPT meta directory.

Before, mozinfo.json was provided by the "common" tests zip file
and extracted to the base of the destination directory. WPT files
were extracted to a "web-platform" sub-directory. So mozinfo.json
was in a parent directory of "web-platform/meta" and was loaded
automatically.

Now that we want to run WPT out of the source directory, there is
no mozinfo.json and the source directory and no mozinfo.json can be
loaded.

This commit teaches mozinfo.json to look in a MOZINFO_PATH environment
variable for the path to mozinfo.json. This allows mozinfo.json
to exist anywhere on the filesystem. This provides a lot more
flexibility for loading the file.

MozReview-Commit-ID: 1I1cxS1IeyY

--HG--
extra : rebase_source : b06de2b53d3fb26df2c7b1c6d034644c20e47577
2016-09-26 15:51:32 -07:00
Phil Ringnalda
3e7326c4fd Backed out 6 changesets (bug 1286900) for making wpt-7 permanently fail on Windows debug
CLOSED TREE

Backed out changeset 859457467e3c (bug 1286900)
Backed out changeset 4b08ed30e0a5 (bug 1286900)
Backed out changeset 3928e945b584 (bug 1286900)
Backed out changeset 5b0f69c86028 (bug 1286900)
Backed out changeset 01c3527edde5 (bug 1286900)
Backed out changeset 6b5f059a85ad (bug 1286900)
2016-09-27 18:24:38 -07:00
Gregory Szorc
d51263ff47 Bug 1286900 - Add environment variable to define location of mozinfo.json; r=ted
As part of converting WPT to run from a source checkout in automation,
I ran into problems where mozinfo.json wasn't being loaded, causing
several tests to fail. This is because mozinfo.json is only found
from a source directory or from a parent of the WPT meta directory.

Before, mozinfo.json was provided by the "common" tests zip file
and extracted to the base of the destination directory. WPT files
were extracted to a "web-platform" sub-directory. So mozinfo.json
was in a parent directory of "web-platform/meta" and was loaded
automatically.

Now that we want to run WPT out of the source directory, there is
no mozinfo.json and the source directory and no mozinfo.json can be
loaded.

This commit teaches mozinfo.json to look in a MOZINFO_PATH environment
variable for the path to mozinfo.json. This allows mozinfo.json
to exist anywhere on the filesystem. This provides a lot more
flexibility for loading the file.

MozReview-Commit-ID: 1I1cxS1IeyY

--HG--
extra : rebase_source : 6fb60257b6a20f6bd79461f1bf1f4f5be1f28072
2016-09-26 15:51:32 -07:00
Nicolas B. Pierron
b2b9651d11 Bug 1270082 - mozinfo: Use the kernel version if the distribution is not supported by python platform function. r=gps 2016-05-27 14:50:03 +00:00
Julien Pagès
7e9dbab9aa Bug 1185632 - [mozinfo] bump release to 0.9. r=wlach
--HG--
extra : commitid : 3AWeMUmW3qj
extra : rebase_source : 75a2297309adf3be93e42be28e103e3b8e8e4b78
2015-10-30 17:38:42 +01:00
Julien Pagès
cbbe0b06a5 Bug 1185632 - [mozinfo] mozinfo.os is unknown running under MSYS. r=wlach
--HG--
extra : commitid : LKZm5uIYzvx
extra : rebase_source : c14351f1b796409307cf6ddee9295cf8675c70f9
2015-10-30 17:37:34 +01:00
Jose Diez
dd52016aa0 Bug 1213816 - Properly set OS properties on Arch; r=gps
--HG--
extra : commitid : BRWaT1v7ALL
extra : amend_source : 8def33528465d649dd822414578f18b1bee94f6d
2015-10-16 11:13:34 -07:00
Hiroyuki Ikezoe
ecdabe1d62 Bug 1150818 - Part 1: Output mozinfo into a file. r=ted 2015-08-20 15:30:00 -04:00
James Graham
3a5efddc75 Bug 1193033 - Teach mozinfo to get the real os version number for Windows >= 8.1, r=ted
For contemporary versions of Windows the sys.getwindowsversion call is unreliable
because it depends on a API which had its return value frozen. If we detect this
case use an alternate API instead
2015-08-14 11:54:23 +01:00
Ryan VanderMeulen
3cab1ddc85 Backed out changesets 0cf9bfd5af47 and e18c579d29f1 (bug 1193033) for Win7 debug relevant-mutations.html permafail.
CLOSED TREE
2015-08-13 14:15:23 -04:00
James Graham
6bac886d48 Bug 1193033 - Teach mozinfo to get the real os version number for Windows >= 8.1, r=ted
For contemporary versions of Windows the sys.getwindowsversion call is unreliable
because it depends on a API which had its return value frozen. If we detect this
case use an alternate API instead
2015-08-13 14:01:15 +01:00
Julien Pagès
71a768eee5 Bug 1184067 - Make mozinfo.os_version a special string that can be compared with < / >. r=ahal
--HG--
extra : commitid : Iiz5hfbNDIj
extra : rebase_source : 4ece0f34183da76588cd79bee27a353734ad4b2e
2015-07-25 11:47:51 +02:00
Ryan VanderMeulen
ba45b91fde Backed out changeset 44571696245f (bug 1184067) for breaking web-platform-tests.
CLOSED TREE
2015-07-17 11:54:27 -04:00
Julien Pagès
a3e2125799 Bug 1184067 - Make mozinfo.os_version a special string that can be compared with < / >. r=ted 2015-07-15 06:30:00 -04:00
Gregory Szorc
27efb530ff Bug 1176642 - Use absolute_import in mozinfo; r=chmanchester
absolute_import was introduced in Python 2.6. There should be no
backwards compatibility concern here.

--HG--
extra : commitid : AhreLXsUlhA
extra : rebase_source : adca67eb99930afbe2d41a55261ce0d3600f315b
2015-06-25 12:12:39 -07:00
Henrik Skupin
7a340fca29 Bug 1169168 - Release mozinfo 0.8. r=tomcat DONTBUILD 2015-05-28 09:54:30 +02:00
Julien Pagès
38bf8b96e5 Bug 1008943 - mozinfo should be cheaper to import. r=ahal 2014-10-20 02:57:00 +02:00
Edwin Flores
6ac0bb3765 Bug 1072024 - Disable sandbox during gtests on linux - r=ted 2014-10-14 11:04:59 +13:00