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

45 Коммитов

Автор SHA1 Сообщение Дата
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
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
Raphael Pierzina 97a1f5b5ba [mozfile] Bump version to 2.0.0, update classifiers and add setup.cfg (Bug 1471622) r=davehunt
[mozfile] Bump version to 2.0.0, update classifiers and add setup.cfg (Bug 1471622)

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

--HG--
extra : moz-landing-system : lando
2018-10-11 14:20:10 +00:00
Raphael Pierzina 7cdbeffeb6 mozfile: Fix Python 3 compat issue in mozfile test_load.py (Bug 1492401) r=davehunt
This patch updates mozfile tests to use `wptserve` instead of `mozhttpd` and enables test_load.py for Python 3.5.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:53:35 +00:00
Raphael Pierzina 15087ce7c2 mozfile: Fix Python 3 compat issue in mozfile test_move_remove.py (Bug 1471622) r=ahal
This patch updates mozfile test_move_remove.py to use `open` instead of `file`
and enables the according test module for Python 3.5.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 20:25:39 +00:00
Raphael Pierzina bb8e7208ea Bug 1471622 - Fix mozfile's test_tempfile.py under Python 3.5; r=davehunt
MozReview-Commit-ID: JuWRTVEFJtv

--HG--
extra : rebase_source : 11393471d8d199623d2150071fa75e1e5a26504f
2018-07-03 10:09:41 +02:00
Raphael Pierzina 79eaf1fafd Bug 1471622 - Fix mozfile's test_extract.py under Python 3.5; r=davehunt
MozReview-Commit-ID: 5c8SoMMpv70

--HG--
extra : rebase_source : 65717f1f056d43588b4df59ea765a7ec2e2657c0
2018-07-03 09:56:18 +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
Henrik Skupin 45a5fa3432 Bug 1452864 - [mozfile] Always use Unicode delimiters for tree() output. r=gbrown
MozReview-Commit-ID: E44O1NGM7Mg

--HG--
extra : rebase_source : c3d5932b05ad9099fb563a3ab69c3a610f26755e
2018-04-10 10:22:27 +02:00
Henrik Skupin 7524e36b05 Bug 1452864 - [mozfile] tree() broken with Unicode characters in path. r=gbrown
The patch correctly marks the delimiters for the tree output
as Unicode, and also updates mozprofile to correctly serialize
the Profile object when str() is used.

MozReview-Commit-ID: AjUHa6zGHQe

--HG--
extra : rebase_source : d4fa6c5db91184dee6a2abe788aa23d0c6255be6
2018-04-10 09:31:10 +02:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Vedant Chakravadhanula 9a43553d12 Bug 1388018 - [mozfile] Add support for python 3. r=wlach
MozReview-Commit-ID: 3VANqZqAVx1

--HG--
extra : rebase_source : 07ebb7eac199558941f5c332d870b22411b995d3
2017-12-18 22:21:27 +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
Nathan Froyd 6fcc6d5a72 Bug 1404887 - use ZipFile.extract in mozfile; r=ted.mielczarek
Reading the whole zip entry into memory is inefficient and can cause
OOMs if the entry is large enough.  Let the ZipFile object choose the
most efficient extraction strategy instead.
2017-11-08 16:31:10 -04: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
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
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
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
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
Rob Thijssen 18da8e2f82 Bug 1287496 - Increment sleep timespan by (attempts * delay) seconds. r=ted
MozReview-Commit-ID: Gx9fxp3xfZA

--HG--
extra : rebase_source : b2bbfb62a257a7d538b19ed522e24378fda2098d
2016-07-18 18:12:01 +01:00
Ms2ger 4d796781c7 Bug 1257510 - Use modern exception syntax in mozbase; r=ahal
The comma form is long-deprecated.
2016-03-18 09:03:25 +01:00
Carsten "Tomcat" Book 6244cfb10e Backed out changeset 200da85932e9 (bug 1230862) for valgrind perma failures 2016-02-10 11:04:50 +01:00
Julien Pagès cb348f4346 Bug 1230862 - Remove mozhttpd. r=wlach
--HG--
extra : commitid : HRDp24nhYo8
extra : rebase_source : 76443fa9938e488fcd06af7ba0676d491c9da36e
2016-02-09 03:26:43 +01:00
Henrik Skupin 2817467736 Bug 1243318 - [mozfile] extract_zip() should not set file permissions if there are no attributes available. r=ahal
--HG--
extra : rebase_source : 876a91216874bfbe71bd653ef0a1a1db49153bd8
2016-01-27 03:52:00 +01:00
Julien Pagès cd63971121 Bug 1185971 - mozfile: add a mozfile.move function, and bump release 1.2. r=ahal
--HG--
rename : testing/mozbase/mozfile/tests/test_remove.py => testing/mozbase/mozfile/tests/test_move_remove.py
extra : commitid : 9JROGo4tYHS
extra : rebase_source : f19d3b4eaf2e181f35f0bdbdb74e009246d8d1ce
extra : amend_source : 388c870bdf7aa06956b8d8641fdf55303453835e
2015-07-23 19:11:16 +02:00
Gregory Szorc 16173f5d3e Bug 1176642 - Use absolute_import in mozfile; r=chmanchester
--HG--
extra : commitid : 8Ml4sdZ20jR
extra : rebase_source : 044bb0811ce0fc76612f3d2a48b059d4927a115d
2015-06-25 12:13:08 -07:00
Julien Pagès 224d0c19ae Bug 859422 - Document why mozfile.remove works better than shutil.rmtree. r=wlach 2014-10-11 10:33:00 -04:00
Chris Manchester 1c97de1410 Bug 1035006 - Fix pyflakes warnings in mozbase.;r=wlach 2014-07-07 14:51:34 -04:00
Ahmed Kachkach 2eaea5cca0 Bug 1008943 - Lazy imports in mozfile for performance reasons. r=ahal 2014-05-13 11:19:00 -04:00
Andrew Halberstadt 2162ac0779 Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-19 16:42:01 -05:00
Wes Kocher 572d78adfd Backed out changeset a7f8c25c07ac (bug 949600) for breaking clobber due to new update_permissions code, regardless of whether this is a CLOSED TREE. 2014-02-18 16:12:34 -08:00
Andrew Halberstadt 354168bb48 Bug 949600 - Sync mozbase to m-c one last time, r=wlach 2014-02-18 09:25:58 -05:00
Jonathan Griffin 55412b9c2e Bug 917750 - mirror several mozbase packages, r=ahal 2013-10-22 15:42:05 -07:00
Andrew Halberstadt bfcbe4015d Bug 895940 - Mirror mozbase to m-c, r=jhammel 2013-07-25 16:27:53 -04:00
Jeff Hammel f608040afd Bug 872285 - bump packages and mirror to m-c for bug 790765;r=ahal
--HG--
rename : testing/mozbase/mozfile/tests/is_url.py => testing/mozbase/mozfile/tests/test_url.py
2013-05-28 09:51:35 -07:00
Jeff Hammel c23752e4c1 Bug 838374 - release mozprofile, mozprocess, mozdevice (and other?) and mirror to m-c;r=ahal 2013-03-21 21:06:28 -07:00
Phil Ringnalda 91489a9327 Back out 27fb990d7fc7 (bug 838374) for Android bustage
CLOSED TREE
2013-03-21 22:58:41 -07:00
Jeff Hammel 00016781fd Bug 838374 - release mozprofile, mozprocess, mozdevice (and other?) and mirror to m-c;r=ahal 2013-03-21 21:06:28 -07:00
Ryan VanderMeulen 9dc32220b2 Backed out changeset 7d2ea731f5a5 (bug 838374) for B2G test bustage on a CLOSED TREE. 2013-03-14 17:45:49 -04:00
Jeff Hammel 27d9bb71ca Bug 838374 - release mozprofile, mozprocess, mozdevice (and other?) and mirror to m-c;r=ahal 2013-03-14 13:06:14 -07:00
Jeff Hammel 8447c242b2 Bug 821820 - bump mozfile version to 0.2 and release to m-c;r=wlach ; DONTBUILD because NPOTB 2012-12-16 18:17:27 -08:00
Jeff Hammel 4226b40cc0 Bug 820606 - update mozfile on mozilla-central to version 0.1;r=gps 2012-12-12 10:01:27 -08:00
Jeff Hammel 1a43e8a377 Bug 795943 - Mirror mozbase -> m-c for week of Oct 1 @ 22aa0aee78;r=wlach
--HG--
extra : rebase_source : 389b6c3a2923c40167698b477e4d57b230b1a063
2012-10-01 14:00:55 -07:00