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

139 Коммитов

Автор SHA1 Сообщение Дата
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
Andrew Halberstadt ecadfa3e3d Bug 1460914 - [mozprofile] Move mochitest's 'parseKeyValue' function into mozprofile.cli, r=ted
Parsing prefs and env on the command line is a common task performed by our harnesses, let's
move it into mozbase.

Depends on D9717

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

--HG--
extra : moz-landing-system : lando
2018-11-08 14:51:26 +00:00
Andrew Halberstadt 203cc276de Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

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

--HG--
extra : moz-landing-system : lando
2018-10-26 17:46:03 +00:00
arthur.iakab 18a752e5d9 Backed out 2 changesets (bug 1460914)for multiple failures on profile_data/base "CLOSED TREE"
Backed out changeset a2161aab4e4e (bug 1460914)
Backed out changeset 9e438c55a248 (bug 1460914)
2018-10-26 19:42:33 +03:00
Andrew Halberstadt 2dfc1e580d Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

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

--HG--
extra : moz-landing-system : lando
2018-10-25 15:22:44 +00:00
Raphael Pierzina 362a603015 Bug 1501224 - Bump mozprofile to version 2.1.0; r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D9514

--HG--
extra : moz-landing-system : lando
2018-10-23 16:40:11 +00:00
Raphael Pierzina 866cdc914d Bug 1471622 - Update dependency specifier for mozfile in mozprofile; r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D8096

--HG--
extra : moz-landing-system : lando
2018-10-10 10:11:26 +00:00
Henrik Skupin 281acf7f9c Bug 905404 - [mozprofile] Remove all default testing related preferences. r=ahal
All preferences which were previously set for test harnesses are
part of testing/profiles now. As such they can all be removed.

--HG--
extra : rebase_source : 3feaac102f7b8a63ec4f07d84e121f26c49ce3c0
extra : histedit_source : e5b474e75d9f2c372c6439502fa1b30c8727e133
2018-09-05 17:01:17 +02:00
Pavel Slepushkin 21f7f10fe9 Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 18:58:05 +00:00
Cosmin Sabou 80e58fff22 Backed out changeset 30ec08a53991 (bug 1471888) for awsy test failures. CLOSED TREE 2018-09-11 15:12:53 +03:00
Pavel Slepushkin 05853e660a Bug 1471888 - [mozprofile] Add support for Python 3. r=davehunt
Bug 1471888 - [mozprofile] Add support for Python 3.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 11:34:50 +00:00
Kirk Steuber da107c225e Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : ba135c7d285987fd030fef4e18a5aa701a43cdba
extra : intermediate-source : e6c89a0ff0c7a7e7cd1c028e49660bab0416a531
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Andreea Pavel 1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber 35d8c30dbb Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : e38cf587711192c3020cd9ac6a39cdbd97d2600b
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07: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
Rob Wood 7d987c78c3 Bug 1460743 - Don't install testing/profiles on Google Chrome; r=ahal
MozReview-Commit-ID: HW8iqfTDcd0

--HG--
extra : rebase_source : 27bc06df77ff699cedeab309050d690d09f25ccd
2018-06-06 13:28:54 -04:00
Andrew Halberstadt 6afabae0cc Bug 1451159 - [mozprofile] Implement ability to merge other profile directories into the current one r=gbrown
MozReview-Commit-ID: EHOFU58Ipa2

--HG--
extra : rebase_source : 081f46d8a05b7842529780dc593979f188eb7eeb
2018-04-19 15:31:43 -04:00
Bogdan Tara b7924c2ed2 Backed out 4 changesets (bug 1451159) for linux build bustages CLOSED TREE
Backed out changeset 72926ae685af (bug 1451159)
Backed out changeset f90a99682382 (bug 1451159)
Backed out changeset 3914937893de (bug 1451159)
Backed out changeset 79931e4a2bfb (bug 1451159)

--HG--
rename : testing/profiles/common/user.js => testing/profiles/prefs_general.js
2018-05-04 00:25:56 +03:00
Andrew Halberstadt fe14ba967c Bug 1451159 - [mozprofile] Implement ability to merge other profile directories into the current one r=gbrown
MozReview-Commit-ID: EHOFU58Ipa2

--HG--
extra : rebase_source : b54821fda2a1fa8019456077d06791d7557c10e0
2018-04-19 15:31:43 -04:00
Andrew Swan 7b20ac46dc Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 6c70243496248b617d3bf5d7244388d0c30004f8
2018-04-23 14:59:11 -07:00
Andrew Halberstadt e35a19ff81 Bug 1445944 - [mozbase] Bump mozprofile and mozrunner version numbers r=rwood
Neither package has any backwards incompatible changes. However, I decided to
bump the major version for mozrunner as this is the first time it's switching
to SemVer (mozprofile already made the switch). It seemed cleaner to have the
switch happen after a major bump.

In both cases, I've added major version upper limit guards to each dependency.
This way we won't break these packages in the future when we land backwards
incompatible changes to the dependendencies.

MozReview-Commit-ID: 5SIpMGTS3cc

--HG--
extra : rebase_source : 43ab4c9f3af50eb82a22ec3112e5b56fe703dbc6
2018-04-13 18:22:46 -04:00
Andrew Halberstadt a1af153708 Bug 1445944 - [mozprofile] Create a new ChromeProfile class for managing chrome profiles r=rwood
In Chrome it doesn't seem to be possible to install extensions by dropping them
in the profile directory. Instead we use the --load-extension command line
argument. To that end the ChromeProfile uses a 'dummy' AddonManager() class
that is actually just a list with an 'install' method. Mozrunner will be
responsible for building the command line based on this list.

We also need a few other command line arguments to build and create a temporary
profile directory.

MozReview-Commit-ID: HC2p2ZZMl66

--HG--
extra : rebase_source : 2d748893e8530a312afb5d8b1442a4c29f93caf1
2018-04-13 13:28:30 -04:00
Andrew Halberstadt e29aebf0d9 Bug 1445944 - [mozprofile] Pull functionality out of Profile and into an abstract 'BaseProfile' class r=rwood
In addition to Profile, this will be implemented by the ChromeProfile class in
the next commit. This way we can test for 'isinstance(profile, BaseProfile)'
when we just want to test for a profile regardless of application.

Ideally I would have preferred 'Profile' itself to be the base class (and co-opt
FirefoxProfile to be the new defacto class for firefox profiles), but this would
break backwards compatibility.

MozReview-Commit-ID: 6TTFq2PQOGM

--HG--
extra : rebase_source : 57651887061ec52b176729109271ee2e23552cdb
2018-04-13 13:26:41 -04:00
Andrew Halberstadt 198dd77c3a Bug 1445944 - [mozprofile] Add a 'create_profile' helper method for instanting an instance from an app r=rwood
This will make it a bit easier for consumers to create a profile instance. They
can just call:

    profile = create_profile('firefox', prefs=...)

Instead of needing to first find the class, then do the instantiation.

MozReview-Commit-ID: 7FqAGsSyZVe

--HG--
extra : rebase_source : 3172189618d6948959edfc61d6782373d27a2cbb
2018-04-12 12:40:47 -04:00
Andrew Halberstadt d0deb3a47c Bug 1445944 - [mozprofile] Convert mozprofile unittests to the pytest format r=davehunt
This is a much cleaner and easier to understand test format. It will also make
it easier to add tests for the upcoming ChromeProfile changes.

MozReview-Commit-ID: DizKGt0qkPF

--HG--
rename : testing/mozbase/mozprofile/tests/addonid.py => testing/mozbase/mozprofile/tests/test_addonid.py
rename : testing/mozbase/mozprofile/tests/bug758250.py => testing/mozbase/mozprofile/tests/test_bug758250.py
rename : testing/mozbase/mozprofile/tests/permissions.py => testing/mozbase/mozprofile/tests/test_permissions.py
rename : testing/mozbase/mozprofile/tests/server_locations.py => testing/mozbase/mozprofile/tests/test_server_locations.py
extra : rebase_source : 07953fd02a8592ed31e1972d646ff93bfd25d80b
2018-04-13 11:06:10 -04:00
Andrew Halberstadt e633e6ba44 Bug 1453496 - [mozprofile] Bump version to 1.0.0 for Addon installation changes, r=gbrown
This is mainly to pick up bug 1448221 since the version of mozprofile on pypi can't
install addons with nightly anymore (due to the profile/extensions/staged directory
not being supported).

But since that change I've also landed several backwards incompatible API changes to
how addons are installed.

Bumping to 1.0.0 because I'd like us to start (attempting) to follow SemVer:
https://semver.org/

MozReview-Commit-ID: FDIPqNnSKJ6

--HG--
extra : rebase_source : 4e083b77802c97b85436410b40225ad234b9e7fb
2018-04-11 20:57:37 -04: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 823b6dea94 Bug 1452769 - [mozprofile] Fix a couple of missed instances of 'addon_manager' leftover after bug 1451733, r=jmaher
I missed a couple of references in cleanup code. This wouldn't have caused any
failures but might result in addons not being cleaned up properly.

MozReview-Commit-ID: BX0oX2GRGWT

--HG--
extra : rebase_source : 2193adb4e96b8e70faa6ffb1afd6db698b10ad2d
2018-04-09 17:05:27 -04:00
Andrew Halberstadt 69d04f8035 Bug 1451733 - [mozprofile] Clean up the public facing addons API a bit r=jmaher
While we are removing a bunch of stuff and breaking backwards compatibility, I
figured this would be a good time to also change some of the APIs. These APIs
aren't used much in mozilla-central (and this patch updates the few places that
do).

This rolls the 'install_addons()' and 'install_addon_from_path' method into a
single 'install' method. This install method can accept a string or list of
paths to an individual addon (directory or .xpi), or a directory containing
addons.

This also renames Profile.addon_manager to Profile.addons, which reads better.

MozReview-Commit-ID: 7vDPnG4cKqu

--HG--
extra : rebase_source : 62f8613b9824e06e698d5af8dcbb4bcb07b8079e
2018-04-05 12:04:21 -04:00
Andrew Halberstadt caac402c4b Bug 1451733 - [mozprofile] Remove ability to download addons from AddonManager r=jmaher
This is another seemingly unused feature in mozilla-central.

Being able to download addons in AddonManager is a violation of the single
responsibility principle. If consumers *really* need to download addons, they
can easily do so with requests and then pass the file path in to AddonManager
like normal. There's no need to have this baked into AddonManager itself.

MozReview-Commit-ID: IorG0foiHfT

--HG--
extra : rebase_source : 27b4162d9adfb986c2b9822c12b6abc5a2561a9a
2018-04-05 10:39:31 -04:00
Andrew Halberstadt 7368b59d75 Bug 1451733 - [mozprofile] Remove ability to install from a manifest r=jmaher
This feature isn't used anywhere in mozilla-central that I can tell. Because
using a manifest is the only way to install an addon from AMO, that ability has
also been removed with this commit.

MozReview-Commit-ID: BNFGPWdo96t

--HG--
extra : rebase_source : 9bc7c9c7e91b01b71082f763fb6e621c430de808
2018-04-05 09:54:31 -04:00
Kris Maglione 7d75136f52 Bug 1448221: Part 3 - Remove startup staging directory scan. r=aswan
MozReview-Commit-ID: JHA1umCQS2D

--HG--
extra : rebase_source : d360aeb165bdac1122ff27b1ea561146e48f16e7
2018-03-26 16:09:52 -07: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 0157a0f5c4 Bug 1431024 - Modified error criterion check in prefs.py. r=wlach
MozReview-Commit-ID: 6nEXiIQ7awD

--HG--
extra : rebase_source : bfd87ba6ab455617c80dcadb323e00c2da083a49
2018-01-26 01:33:39 +05:30
Vedant Chakravadhanula 4a73233853 Bug 1425399 - Added python 3 support to mozprofile. r=wlach
MozReview-Commit-ID: 9iAFA3JYagG

--HG--
extra : rebase_source : 151903d9c0920743c7564118106a85d7f97ff270
2017-12-22 12:11:06 +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
Tarek Ziadé 988457f958 Bug 1415858 - Adding logs for Talos cloning step r=jmaher
MozReview-Commit-ID: GVXcCty2nNi

--HG--
extra : rebase_source : 0569448d579e98955951b6a83d3f788bbb55785d
2017-11-15 10:37:39 +01:00
Andrew Swan 1bf7198d39 Bug 1413322 Don't load old-style language packs r=gandalf,kmag
MozReview-Commit-ID: GnG6UznHFZR

--HG--
extra : rebase_source : a687e51a7c087c639a202f29b87ae466cd3705b8
2017-10-31 14:23:06 -07:00
Chris H-C 75fc345254 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.
reftests should have unified telemetry on. It's the future.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-30 10:47:39 -04:00
Phil Ringnalda 4bc2b1615d Backed out 4 changesets (bug 1408433, bug 1406391, bug 1408512) for crashing tests by touching the network contacting incoming.telemetry.mozilla.org on nightly builds
Backed out changeset 9bfd4b0927dc (bug 1408433)
Backed out changeset 555850d5107e (bug 1408512)
Backed out changeset 15d959b9123e (bug 1406391)
Backed out changeset e1f34ba9cecc (bug 1406391)

MozReview-Commit-ID: BVoGRsD73Hf
2017-10-27 21:08:27 -07:00
Chris H-C 8e6dd31d55 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-27 10:59:43 -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
William Lachance b16d5c2ff2 Bug 1390208 - Remove metro-specific code from testing/mozbase r=ahal
MozReview-Commit-ID: 5SPYXXTlFFt

--HG--
extra : rebase_source : 59d06862b4ff2408da69ac595511fdfff3cfdc0e
2017-08-14 13:12:07 -04:00
Tarek Ziadé 6f2a6cfd6e Bug 1377510 - Add the ability to install webextensions with mozprofile r=automatedtester
MozReview-Commit-ID: DgI7hZFKHns

--HG--
extra : rebase_source : 90731ffd050f9968238f7f1ba1668918c257750d
2017-07-24 12:08:53 +02:00
Alex Gaynor b08206238c Bug 1374557 - Part 2 - Use the new preference to whitelist paths for reading that are needed by tests; r=gcp,haik,jmaher
MozReview-Commit-ID: 4IaTrHPHZaC

--HG--
extra : rebase_source : 28824735f74b369d5755b3bced0f61d22c7c8845
2017-06-21 10:24:16 -04:00
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
Dão Gottwald 8a952aed25 Bug 1367076 - Set datareporting.policy.firstRunURL by default to replace data choices infobar with privacy policy in a background tab on first run. r=Gijs
MozReview-Commit-ID: 9r5el0I2HrA

--HG--
extra : rebase_source : d5bc0f8a5dea60d4d3bbaaf5332d8f022693d381
2017-05-31 13:48:06 +02:00
Geoff Brown e8d6ec9627 Bug 1367780 - Additional changes for eslint on testing/firefox-ui,mozbase,profiles,specialpowers; r=Standard8 2017-05-30 16:06:31 -06:00