зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1583197. Rename 'cold' conditioned profile to 'settled'. r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D54241 --HG-- rename : testing/condprofile/condprof/scenarii/cold.py => testing/condprofile/condprof/scenarii/settled.py extra : moz-landing-system : lando
This commit is contained in:
Родитель
5096bece24
Коммит
61478a4536
2
.flake8
2
.flake8
|
@ -32,7 +32,7 @@ exclude =
|
|||
testing/condprofile/condprof/desktop.py,
|
||||
testing/condprofile/condprof/runner.py,
|
||||
testing/condprofile/condprof/scenarii/heavy.py,
|
||||
testing/condprofile/condprof/scenarii/cold.py,
|
||||
testing/condprofile/condprof/scenarii/settled.py,
|
||||
testing/condprofile/condprof/helpers.py,
|
||||
testing/jsshell/benchmark.py,
|
||||
testing/marionette/mach_commands.py,
|
||||
|
|
|
@ -87,7 +87,7 @@ Unlike the profile creator, the client is Python 2 and 3 compatible.
|
|||
You can grab a conditioned profile using the client API::
|
||||
|
||||
>>> from condprof.client import get_profile
|
||||
>>> get_profile(".", "win64", "cold", "default")
|
||||
>>> get_profile(".", "win64", "settled", "default")
|
||||
|
||||
or the **cp-client** script that gets install when you run the
|
||||
conditioned profile installer.
|
||||
|
|
|
@ -117,7 +117,7 @@ def main():
|
|||
older_change = read_changelog("win64").history()[0]
|
||||
task_id = older_change["TASK_ID"]
|
||||
target_dir = tempfile.mkdtemp()
|
||||
filename = get_profile(target_dir, "win64", "cold", "default", task_id)
|
||||
filename = get_profile(target_dir, "win64", "settled", "default", task_id)
|
||||
print("Profile downloaded and extracted at %s" % filename)
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from condprof.scenarii.heavy import heavy
|
||||
from condprof.scenarii.cold import cold
|
||||
from condprof.scenarii.settled import settled
|
||||
|
||||
|
||||
scenarii = {"heavy": heavy, "cold": cold}
|
||||
scenarii = {"heavy": heavy, "settled": settled}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import asyncio
|
||||
|
||||
|
||||
async def cold(session, options):
|
||||
async def settled(session, options):
|
||||
# nothing is done, we just settle here for 30 seconds
|
||||
await asyncio.sleep(options.get("sleep", 30))
|
||||
return {}
|
|
@ -47,7 +47,7 @@ class TestClient(unittest.TestCase):
|
|||
else:
|
||||
num_elmts = 0
|
||||
|
||||
get_profile(self.target, "win64", "cold", "default")
|
||||
get_profile(self.target, "win64", "settled", "default")
|
||||
|
||||
# grabbing a profile should generate two files
|
||||
self.assertEqual(len(os.listdir(download_dir)), num_elmts + 2)
|
||||
|
@ -57,7 +57,7 @@ class TestClient(unittest.TestCase):
|
|||
self.assertEqual(response_calls, 2)
|
||||
|
||||
# and we should reuse them without downloading the file again
|
||||
get_profile(self.target, "win64", "cold", "default")
|
||||
get_profile(self.target, "win64", "settled", "default")
|
||||
|
||||
# grabbing a profile should not download new stuff
|
||||
self.assertEqual(len(os.listdir(download_dir)), num_elmts + 2)
|
||||
|
|
Загрузка…
Ссылка в новой задаче