Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0:31.09 ============================= test session starts ==============================
- 0:31.09 platform darwin -- Python 2.7.17, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /Users/sdonner/mozilla-source/mozilla-unified/obj-x86_64-apple-darwin19.2.0/_virtualenvs/mozilla-unified-evYUFdVP-2.7/bin/python
- 0:31.09 rootdir: /Users/sdonner/mozilla-source/mozilla-unified, inifile: /Users/sdonner/mozilla-source/mozilla-unified/config/mozunit/mozunit/pytest.ini
- 0:31.09 collecting ... collected 5 items
- 0:31.09
- 0:31.09 testing/raptor/test/test_control_server.py::test_start_and_stop PASSED
- 0:31.09 testing/raptor/test/test_control_server.py::test_server_get_timeout ERROR
- 0:31.09 testing/raptor/test/test_control_server.py::test_server_android_app_backgrounding PASSED
- 0:31.09 testing/raptor/test/test_control_server.py::test_server_wait_states ERROR
- 0:31.09 testing/raptor/test/test_control_server.py::test_clean_up_stop_server ERROR
- 0:31.09
- 0:31.09 ==================================== ERRORS ====================================
- 0:31.09 __________________ ERROR at setup of test_server_get_timeout ___________________
- 0:31.09
- 0:31.09 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
- 0:31.09
- 0:31.09 @pytest.fixture
- 0:31.09 def raptor(options):
- 0:31.09 > return RaptorDesktopFirefox(**options)
- 0:31.09
- 0:31.09 ../../test/conftest.py:41:
- 0:31.09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.09 ../raptor.py:1058: in __init__
- 0:31.09 super(RaptorDesktop, self).__init__(*args, **kwargs)
- 0:31.09 ../raptor.py:862: in __init__
- 0:31.09 super(Raptor, self).__init__(*args, **kwargs)
- 0:31.09 ../raptor.py:175: in __init__
- 0:31.09 self.build_browser_profile()
- 0:31.09 ../raptor.py:960: in build_browser_profile
- 0:31.09 super(Raptor, self).build_browser_profile()
- 0:31.09 ../raptor.py:216: in build_browser_profile
- 0:31.09 self.get_conditioned_profile()
- 0:31.09 ../raptor.py:188: in get_conditioned_profile
- 0:31.09 cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
- 0:31.09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.09
- 0:31.09 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpixSMjM'
- 0:31.09 platform = 'macosx64', scenario = 'cold', customization = 'default'
- 0:31.09 task_id = None, download_cache = True, repo = 'mozilla-central'
- 0:31.09
- 0:31.09 def get_profile(
- 0:31.09 target_dir,
- 0:31.09 platform,
- 0:31.09 scenario,
- 0:31.09 customization="default",
- 0:31.09 task_id=None,
- 0:31.09 download_cache=True,
- 0:31.09 repo="mozilla-central"
- 0:31.09 ):
- 0:31.09 """Extract a conditioned profile in the target directory.
- 0:31.09
- 0:31.09 If task_id is provided, will grab the profile from that task. when not
- 0:31.09 provided (default) will grab the latest profile.
- 0:31.09 """
- 0:31.09 # XXX assert values
- 0:31.09 params = {
- 0:31.09 "platform": platform,
- 0:31.09 "scenario": scenario,
- 0:31.09 "customization": customization,
- 0:31.09 "task_id": task_id,
- 0:31.09 "repo": repo
- 0:31.09 }
- 0:31.09 filename = ARTIFACT_NAME % params
- 0:31.09 if task_id is None:
- 0:31.09 url = TC_LINK % params + filename
- 0:31.09 else:
- 0:31.09 url = DIRECT_LINK % params + filename
- 0:31.09
- 0:31.09 if not download_cache:
- 0:31.09 download_dir = tempfile.mkdtemp()
- 0:31.09 else:
- 0:31.09 # using a cache dir in the user home dir
- 0:31.09 download_dir = os.path.expanduser(CONDPROF_CACHE)
- 0:31.09 if not os.path.exists(download_dir):
- 0:31.09 os.makedirs(download_dir)
- 0:31.09
- 0:31.09 downloaded_archive = os.path.join(download_dir, filename)
- 0:31.09 get_logger().msg("Getting %s" % url)
- 0:31.09 try:
- 0:31.09 archive = download_file(url, target=downloaded_archive)
- 0:31.09 except ArchiveNotFound:
- 0:31.09 raise ProfileNotFoundError(url)
- 0:31.09
- 0:31.09 try:
- 0:31.09 with tarfile.open(archive, "r:gz") as tar:
- 0:31.09 get_logger().msg("Extracting the tarball content in %s" % target_dir)
- 0:31.09 size = len(list(tar))
- 0:31.09 with progress.Bar(expected_size=size) as bar:
- 0:31.09
- 0:31.09 def _extract(self, *args, **kw):
- 0:31.09 if not TASK_CLUSTER:
- 0:31.09 bar.show(bar.last_progress + 1)
- 0:31.09 return self.old(*args, **kw)
- 0:31.09
- 0:31.09 tar.old = tar.extract
- 0:31.09 tar.extract = functools.partial(_extract, tar)
- 0:31.09 tar.extractall(target_dir)
- 0:31.09 except (OSError, tarfile.ReadError) as e:
- 0:31.09 > raise ProfileNotFoundError(str(e))
- 0:31.09 E ProfileNotFoundError: not a gzip file
- 0:31.09
- 0:31.09 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
- 0:31.09 ---------------------------- Captured stdout setup -----------------------------
- 0:31.09 Getting https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.09 [2019-12-09T11:03:49.960335] Changed!
- 0:31.09 [2019-12-09T11:03:49.960374] Downloading https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.09 ---------------------------- Captured stderr setup -----------------------------
- 0:31.10 ['path/to/dummy/browser', '--version']
- 0:31.10 ['path/to/dummy/browser', '--version']
- 0:31.10 __________________ ERROR at setup of test_server_wait_states ___________________
- 0:31.10
- 0:31.10 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
- 0:31.10
- 0:31.10 @pytest.fixture
- 0:31.10 def raptor(options):
- 0:31.10 > return RaptorDesktopFirefox(**options)
- 0:31.10
- 0:31.10 ../../test/conftest.py:41:
- 0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.10 ../raptor.py:1058: in __init__
- 0:31.10 super(RaptorDesktop, self).__init__(*args, **kwargs)
- 0:31.10 ../raptor.py:862: in __init__
- 0:31.10 super(Raptor, self).__init__(*args, **kwargs)
- 0:31.10 ../raptor.py:175: in __init__
- 0:31.10 self.build_browser_profile()
- 0:31.10 ../raptor.py:960: in build_browser_profile
- 0:31.10 super(Raptor, self).build_browser_profile()
- 0:31.10 ../raptor.py:216: in build_browser_profile
- 0:31.10 self.get_conditioned_profile()
- 0:31.10 ../raptor.py:188: in get_conditioned_profile
- 0:31.10 cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
- 0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.10
- 0:31.10 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpHqXtST'
- 0:31.10 platform = 'macosx64', scenario = 'cold', customization = 'default'
- 0:31.10 task_id = None, download_cache = True, repo = 'mozilla-central'
- 0:31.10
- 0:31.10 def get_profile(
- 0:31.10 target_dir,
- 0:31.10 platform,
- 0:31.10 scenario,
- 0:31.10 customization="default",
- 0:31.10 task_id=None,
- 0:31.10 download_cache=True,
- 0:31.10 repo="mozilla-central"
- 0:31.10 ):
- 0:31.10 """Extract a conditioned profile in the target directory.
- 0:31.10
- 0:31.10 If task_id is provided, will grab the profile from that task. when not
- 0:31.10 provided (default) will grab the latest profile.
- 0:31.10 """
- 0:31.10 # XXX assert values
- 0:31.10 params = {
- 0:31.10 "platform": platform,
- 0:31.10 "scenario": scenario,
- 0:31.10 "customization": customization,
- 0:31.10 "task_id": task_id,
- 0:31.10 "repo": repo
- 0:31.10 }
- 0:31.10 filename = ARTIFACT_NAME % params
- 0:31.10 if task_id is None:
- 0:31.10 url = TC_LINK % params + filename
- 0:31.10 else:
- 0:31.10 url = DIRECT_LINK % params + filename
- 0:31.10
- 0:31.10 if not download_cache:
- 0:31.10 download_dir = tempfile.mkdtemp()
- 0:31.10 else:
- 0:31.10 # using a cache dir in the user home dir
- 0:31.10 download_dir = os.path.expanduser(CONDPROF_CACHE)
- 0:31.10 if not os.path.exists(download_dir):
- 0:31.10 os.makedirs(download_dir)
- 0:31.10
- 0:31.10 downloaded_archive = os.path.join(download_dir, filename)
- 0:31.10 get_logger().msg("Getting %s" % url)
- 0:31.10 try:
- 0:31.10 archive = download_file(url, target=downloaded_archive)
- 0:31.10 except ArchiveNotFound:
- 0:31.10 raise ProfileNotFoundError(url)
- 0:31.10
- 0:31.10 try:
- 0:31.10 with tarfile.open(archive, "r:gz") as tar:
- 0:31.10 get_logger().msg("Extracting the tarball content in %s" % target_dir)
- 0:31.10 size = len(list(tar))
- 0:31.10 with progress.Bar(expected_size=size) as bar:
- 0:31.10
- 0:31.10 def _extract(self, *args, **kw):
- 0:31.10 if not TASK_CLUSTER:
- 0:31.10 bar.show(bar.last_progress + 1)
- 0:31.10 return self.old(*args, **kw)
- 0:31.10
- 0:31.10 tar.old = tar.extract
- 0:31.10 tar.extract = functools.partial(_extract, tar)
- 0:31.10 tar.extractall(target_dir)
- 0:31.10 except (OSError, tarfile.ReadError) as e:
- 0:31.10 > raise ProfileNotFoundError(str(e))
- 0:31.10 E ProfileNotFoundError: not a gzip file
- 0:31.10
- 0:31.10 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
- 0:31.10 ---------------------------- Captured stdout setup -----------------------------
- 0:31.10 Getting https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.10 [2019-12-09T11:03:51.122147] Changed!
- 0:31.10 [2019-12-09T11:03:51.122184] Downloading https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.10 ---------------------------- Captured stderr setup -----------------------------
- 0:31.10 ['path/to/dummy/browser', '--version']
- 0:31.10 ['path/to/dummy/browser', '--version']
- 0:31.10 _________________ ERROR at setup of test_clean_up_stop_server __________________
- 0:31.10
- 0:31.10 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
- 0:31.10
- 0:31.10 @pytest.fixture
- 0:31.10 def raptor(options):
- 0:31.10 > return RaptorDesktopFirefox(**options)
- 0:31.10
- 0:31.10 ../../test/conftest.py:41:
- 0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.10 ../raptor.py:1058: in __init__
- 0:31.10 super(RaptorDesktop, self).__init__(*args, **kwargs)
- 0:31.10 ../raptor.py:862: in __init__
- 0:31.10 super(Raptor, self).__init__(*args, **kwargs)
- 0:31.10 ../raptor.py:175: in __init__
- 0:31.10 self.build_browser_profile()
- 0:31.10 ../raptor.py:960: in build_browser_profile
- 0:31.10 super(Raptor, self).build_browser_profile()
- 0:31.10 ../raptor.py:216: in build_browser_profile
- 0:31.10 self.get_conditioned_profile()
- 0:31.10 ../raptor.py:188: in get_conditioned_profile
- 0:31.10 cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
- 0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- 0:31.10
- 0:31.10 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpmeQwCw'
- 0:31.10 platform = 'macosx64', scenario = 'cold', customization = 'default'
- 0:31.10 task_id = None, download_cache = True, repo = 'mozilla-central'
- 0:31.10
- 0:31.10 def get_profile(
- 0:31.10 target_dir,
- 0:31.10 platform,
- 0:31.10 scenario,
- 0:31.10 customization="default",
- 0:31.10 task_id=None,
- 0:31.10 download_cache=True,
- 0:31.10 repo="mozilla-central"
- 0:31.10 ):
- 0:31.10 """Extract a conditioned profile in the target directory.
- 0:31.10
- 0:31.10 If task_id is provided, will grab the profile from that task. when not
- 0:31.10 provided (default) will grab the latest profile.
- 0:31.10 """
- 0:31.10 # XXX assert values
- 0:31.10 params = {
- 0:31.10 "platform": platform,
- 0:31.10 "scenario": scenario,
- 0:31.10 "customization": customization,
- 0:31.10 "task_id": task_id,
- 0:31.11 "repo": repo
- 0:31.11 }
- 0:31.11 filename = ARTIFACT_NAME % params
- 0:31.11 if task_id is None:
- 0:31.11 url = TC_LINK % params + filename
- 0:31.11 else:
- 0:31.11 url = DIRECT_LINK % params + filename
- 0:31.11
- 0:31.11 if not download_cache:
- 0:31.11 download_dir = tempfile.mkdtemp()
- 0:31.11 else:
- 0:31.11 # using a cache dir in the user home dir
- 0:31.11 download_dir = os.path.expanduser(CONDPROF_CACHE)
- 0:31.11 if not os.path.exists(download_dir):
- 0:31.11 os.makedirs(download_dir)
- 0:31.11
- 0:31.11 downloaded_archive = os.path.join(download_dir, filename)
- 0:31.11 get_logger().msg("Getting %s" % url)
- 0:31.11 try:
- 0:31.11 archive = download_file(url, target=downloaded_archive)
- 0:31.11 except ArchiveNotFound:
- 0:31.11 raise ProfileNotFoundError(url)
- 0:31.11
- 0:31.11 try:
- 0:31.11 with tarfile.open(archive, "r:gz") as tar:
- 0:31.11 get_logger().msg("Extracting the tarball content in %s" % target_dir)
- 0:31.11 size = len(list(tar))
- 0:31.11 with progress.Bar(expected_size=size) as bar:
- 0:31.11
- 0:31.11 def _extract(self, *args, **kw):
- 0:31.11 if not TASK_CLUSTER:
- 0:31.11 bar.show(bar.last_progress + 1)
- 0:31.11 return self.old(*args, **kw)
- 0:31.11
- 0:31.11 tar.old = tar.extract
- 0:31.11 tar.extract = functools.partial(_extract, tar)
- 0:31.11 tar.extractall(target_dir)
- 0:31.11 except (OSError, tarfile.ReadError) as e:
- 0:31.11 > raise ProfileNotFoundError(str(e))
- 0:31.11 E ProfileNotFoundError: not a gzip file
- 0:31.11
- 0:31.11 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
- 0:31.11 ---------------------------- Captured stdout setup -----------------------------
- 0:31.11 Getting https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.11 [2019-12-09T11:03:51.677507] Changed!
- 0:31.11 [2019-12-09T11:03:51.677538] Downloading https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.condprof-macosx64/artifacts/public/condprof/profile-macosx64-cold-default.tgz
- 0:31.11 ---------------------------- Captured stderr setup -----------------------------
- 0:31.11 ['path/to/dummy/browser', '--version']
- 0:31.11 ['path/to/dummy/browser', '--version']
- 0:31.11 =============================== warnings summary ===============================
- 0:31.11 <undetermined location>
- 0:31.11 Module already imported so cannot be rewritten: mozlog
- 0:31.11
- 0:31.11 -- Docs: http://doc.pytest.org/en/latest/warnings.html
- 0:31.11 ================ 2 passed, 1 warnings, 3 error in 2.88 seconds =================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement