Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 16.20 KB | None | 0 0
  1. 0:31.09 ============================= test session starts ==============================
  2.  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
  3.  0:31.09 rootdir: /Users/sdonner/mozilla-source/mozilla-unified, inifile: /Users/sdonner/mozilla-source/mozilla-unified/config/mozunit/mozunit/pytest.ini
  4.  0:31.09 collecting ... collected 5 items
  5.  0:31.09
  6.  0:31.09 testing/raptor/test/test_control_server.py::test_start_and_stop PASSED
  7.  0:31.09 testing/raptor/test/test_control_server.py::test_server_get_timeout ERROR
  8.  0:31.09 testing/raptor/test/test_control_server.py::test_server_android_app_backgrounding PASSED
  9.  0:31.09 testing/raptor/test/test_control_server.py::test_server_wait_states ERROR
  10.  0:31.09 testing/raptor/test/test_control_server.py::test_clean_up_stop_server ERROR
  11.  0:31.09
  12.  0:31.09 ==================================== ERRORS ====================================
  13.  0:31.09 __________________ ERROR at setup of test_server_get_timeout ___________________
  14.  0:31.09
  15.  0:31.09 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
  16.  0:31.09
  17.  0:31.09     @pytest.fixture
  18.  0:31.09     def raptor(options):
  19.  0:31.09 >       return RaptorDesktopFirefox(**options)
  20.  0:31.09
  21.  0:31.09 ../../test/conftest.py:41:
  22.  0:31.09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  23.  0:31.09 ../raptor.py:1058: in __init__
  24.  0:31.09     super(RaptorDesktop, self).__init__(*args, **kwargs)
  25.  0:31.09 ../raptor.py:862: in __init__
  26.  0:31.09     super(Raptor, self).__init__(*args, **kwargs)
  27.  0:31.09 ../raptor.py:175: in __init__
  28.  0:31.09     self.build_browser_profile()
  29.  0:31.09 ../raptor.py:960: in build_browser_profile
  30.  0:31.09     super(Raptor, self).build_browser_profile()
  31.  0:31.09 ../raptor.py:216: in build_browser_profile
  32.  0:31.09     self.get_conditioned_profile()
  33.  0:31.09 ../raptor.py:188: in get_conditioned_profile
  34.  0:31.09     cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
  35.  0:31.09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  36.  0:31.09
  37.  0:31.09 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpixSMjM'
  38.  0:31.09 platform = 'macosx64', scenario = 'cold', customization = 'default'
  39.  0:31.09 task_id = None, download_cache = True, repo = 'mozilla-central'
  40.  0:31.09
  41.  0:31.09     def get_profile(
  42.  0:31.09         target_dir,
  43.  0:31.09         platform,
  44.  0:31.09         scenario,
  45.  0:31.09         customization="default",
  46.  0:31.09         task_id=None,
  47.  0:31.09         download_cache=True,
  48.  0:31.09         repo="mozilla-central"
  49.  0:31.09     ):
  50.  0:31.09         """Extract a conditioned profile in the target directory.
  51. 0:31.09    
  52. 0:31.09         If task_id is provided, will grab the profile from that task. when not
  53. 0:31.09         provided (default) will grab the latest profile.
  54. 0:31.09         """
  55.  0:31.09         # XXX assert values
  56.  0:31.09         params = {
  57.  0:31.09             "platform": platform,
  58.  0:31.09             "scenario": scenario,
  59.  0:31.09             "customization": customization,
  60.  0:31.09             "task_id": task_id,
  61.  0:31.09             "repo": repo
  62.  0:31.09         }
  63.  0:31.09         filename = ARTIFACT_NAME % params
  64.  0:31.09         if task_id is None:
  65.  0:31.09             url = TC_LINK % params + filename
  66.  0:31.09         else:
  67.  0:31.09             url = DIRECT_LINK % params + filename
  68.  0:31.09    
  69.  0:31.09         if not download_cache:
  70.  0:31.09             download_dir = tempfile.mkdtemp()
  71.  0:31.09         else:
  72.  0:31.09             # using a cache dir in the user home dir
  73.  0:31.09             download_dir = os.path.expanduser(CONDPROF_CACHE)
  74.  0:31.09             if not os.path.exists(download_dir):
  75.  0:31.09                 os.makedirs(download_dir)
  76.  0:31.09    
  77.  0:31.09         downloaded_archive = os.path.join(download_dir, filename)
  78.  0:31.09         get_logger().msg("Getting %s" % url)
  79.  0:31.09         try:
  80.  0:31.09             archive = download_file(url, target=downloaded_archive)
  81.  0:31.09         except ArchiveNotFound:
  82.  0:31.09             raise ProfileNotFoundError(url)
  83.  0:31.09    
  84.  0:31.09         try:
  85.  0:31.09             with tarfile.open(archive, "r:gz") as tar:
  86.  0:31.09                 get_logger().msg("Extracting the tarball content in %s" % target_dir)
  87.  0:31.09                 size = len(list(tar))
  88.  0:31.09                 with progress.Bar(expected_size=size) as bar:
  89.  0:31.09    
  90.  0:31.09                     def _extract(self, *args, **kw):
  91.  0:31.09                         if not TASK_CLUSTER:
  92.  0:31.09                             bar.show(bar.last_progress + 1)
  93.  0:31.09                         return self.old(*args, **kw)
  94.  0:31.09    
  95.  0:31.09                     tar.old = tar.extract
  96.  0:31.09                     tar.extract = functools.partial(_extract, tar)
  97.  0:31.09                     tar.extractall(target_dir)
  98.  0:31.09         except (OSError, tarfile.ReadError) as e:
  99.  0:31.09 >           raise ProfileNotFoundError(str(e))
  100.  0:31.09 E           ProfileNotFoundError: not a gzip file
  101.  0:31.09
  102.  0:31.09 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
  103.  0:31.09 ---------------------------- Captured stdout setup -----------------------------
  104.  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
  105.  0:31.09 [2019-12-09T11:03:49.960335] Changed!
  106.  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
  107.  0:31.09 ---------------------------- Captured stderr setup -----------------------------
  108.  0:31.10 ['path/to/dummy/browser', '--version']
  109.  0:31.10 ['path/to/dummy/browser', '--version']
  110.  0:31.10 __________________ ERROR at setup of test_server_wait_states ___________________
  111.  0:31.10
  112.  0:31.10 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
  113.  0:31.10
  114.  0:31.10     @pytest.fixture
  115.  0:31.10     def raptor(options):
  116.  0:31.10 >       return RaptorDesktopFirefox(**options)
  117.  0:31.10
  118.  0:31.10 ../../test/conftest.py:41:
  119.  0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  120.  0:31.10 ../raptor.py:1058: in __init__
  121.  0:31.10     super(RaptorDesktop, self).__init__(*args, **kwargs)
  122.  0:31.10 ../raptor.py:862: in __init__
  123.  0:31.10     super(Raptor, self).__init__(*args, **kwargs)
  124.  0:31.10 ../raptor.py:175: in __init__
  125.  0:31.10     self.build_browser_profile()
  126.  0:31.10 ../raptor.py:960: in build_browser_profile
  127.  0:31.10     super(Raptor, self).build_browser_profile()
  128.  0:31.10 ../raptor.py:216: in build_browser_profile
  129.  0:31.10     self.get_conditioned_profile()
  130.  0:31.10 ../raptor.py:188: in get_conditioned_profile
  131.  0:31.10     cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
  132.  0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  133.  0:31.10
  134.  0:31.10 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpHqXtST'
  135.  0:31.10 platform = 'macosx64', scenario = 'cold', customization = 'default'
  136.  0:31.10 task_id = None, download_cache = True, repo = 'mozilla-central'
  137.  0:31.10
  138.  0:31.10     def get_profile(
  139.  0:31.10         target_dir,
  140.  0:31.10         platform,
  141.  0:31.10         scenario,
  142.  0:31.10         customization="default",
  143.  0:31.10         task_id=None,
  144.  0:31.10         download_cache=True,
  145.  0:31.10         repo="mozilla-central"
  146.  0:31.10     ):
  147.  0:31.10         """Extract a conditioned profile in the target directory.
  148. 0:31.10    
  149. 0:31.10         If task_id is provided, will grab the profile from that task. when not
  150. 0:31.10         provided (default) will grab the latest profile.
  151. 0:31.10         """
  152.  0:31.10         # XXX assert values
  153.  0:31.10         params = {
  154.  0:31.10             "platform": platform,
  155.  0:31.10             "scenario": scenario,
  156.  0:31.10             "customization": customization,
  157.  0:31.10             "task_id": task_id,
  158.  0:31.10             "repo": repo
  159.  0:31.10         }
  160.  0:31.10         filename = ARTIFACT_NAME % params
  161.  0:31.10         if task_id is None:
  162.  0:31.10             url = TC_LINK % params + filename
  163.  0:31.10         else:
  164.  0:31.10             url = DIRECT_LINK % params + filename
  165.  0:31.10    
  166.  0:31.10         if not download_cache:
  167.  0:31.10             download_dir = tempfile.mkdtemp()
  168.  0:31.10         else:
  169.  0:31.10             # using a cache dir in the user home dir
  170.  0:31.10             download_dir = os.path.expanduser(CONDPROF_CACHE)
  171.  0:31.10             if not os.path.exists(download_dir):
  172.  0:31.10                 os.makedirs(download_dir)
  173.  0:31.10    
  174.  0:31.10         downloaded_archive = os.path.join(download_dir, filename)
  175.  0:31.10         get_logger().msg("Getting %s" % url)
  176.  0:31.10         try:
  177.  0:31.10             archive = download_file(url, target=downloaded_archive)
  178.  0:31.10         except ArchiveNotFound:
  179.  0:31.10             raise ProfileNotFoundError(url)
  180.  0:31.10    
  181.  0:31.10         try:
  182.  0:31.10             with tarfile.open(archive, "r:gz") as tar:
  183.  0:31.10                 get_logger().msg("Extracting the tarball content in %s" % target_dir)
  184.  0:31.10                 size = len(list(tar))
  185.  0:31.10                 with progress.Bar(expected_size=size) as bar:
  186.  0:31.10    
  187.  0:31.10                     def _extract(self, *args, **kw):
  188.  0:31.10                         if not TASK_CLUSTER:
  189.  0:31.10                             bar.show(bar.last_progress + 1)
  190.  0:31.10                         return self.old(*args, **kw)
  191.  0:31.10    
  192.  0:31.10                     tar.old = tar.extract
  193.  0:31.10                     tar.extract = functools.partial(_extract, tar)
  194.  0:31.10                     tar.extractall(target_dir)
  195.  0:31.10         except (OSError, tarfile.ReadError) as e:
  196.  0:31.10 >           raise ProfileNotFoundError(str(e))
  197.  0:31.10 E           ProfileNotFoundError: not a gzip file
  198.  0:31.10
  199.  0:31.10 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
  200.  0:31.10 ---------------------------- Captured stdout setup -----------------------------
  201.  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
  202.  0:31.10 [2019-12-09T11:03:51.122147] Changed!
  203.  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
  204.  0:31.10 ---------------------------- Captured stderr setup -----------------------------
  205.  0:31.10 ['path/to/dummy/browser', '--version']
  206.  0:31.10 ['path/to/dummy/browser', '--version']
  207.  0:31.10 _________________ ERROR at setup of test_clean_up_stop_server __________________
  208.  0:31.10
  209.  0:31.10 options = {'app': 'firefox', 'binary': 'path/to/dummy/browser'}
  210.  0:31.10
  211.  0:31.10     @pytest.fixture
  212.  0:31.10     def raptor(options):
  213.  0:31.10 >       return RaptorDesktopFirefox(**options)
  214.  0:31.10
  215.  0:31.10 ../../test/conftest.py:41:
  216.  0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  217.  0:31.10 ../raptor.py:1058: in __init__
  218.  0:31.10     super(RaptorDesktop, self).__init__(*args, **kwargs)
  219.  0:31.10 ../raptor.py:862: in __init__
  220.  0:31.10     super(Raptor, self).__init__(*args, **kwargs)
  221.  0:31.10 ../raptor.py:175: in __init__
  222.  0:31.10     self.build_browser_profile()
  223.  0:31.10 ../raptor.py:960: in build_browser_profile
  224.  0:31.10     super(Raptor, self).build_browser_profile()
  225.  0:31.10 ../raptor.py:216: in build_browser_profile
  226.  0:31.10     self.get_conditioned_profile()
  227.  0:31.10 ../raptor.py:188: in get_conditioned_profile
  228.  0:31.10     cond_prof_target_dir = get_profile(temp_download_dir, platform, "cold")
  229.  0:31.10 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  230.  0:31.10
  231.  0:31.10 target_dir = '/var/folders/tn/jmgsfg315sd73yn_dnrf66c80000gn/T/tmpmeQwCw'
  232.  0:31.10 platform = 'macosx64', scenario = 'cold', customization = 'default'
  233.  0:31.10 task_id = None, download_cache = True, repo = 'mozilla-central'
  234.  0:31.10
  235.  0:31.10     def get_profile(
  236.  0:31.10         target_dir,
  237.  0:31.10         platform,
  238.  0:31.10         scenario,
  239.  0:31.10         customization="default",
  240.  0:31.10         task_id=None,
  241.  0:31.10         download_cache=True,
  242.  0:31.10         repo="mozilla-central"
  243.  0:31.10     ):
  244.  0:31.10         """Extract a conditioned profile in the target directory.
  245. 0:31.10    
  246. 0:31.10         If task_id is provided, will grab the profile from that task. when not
  247. 0:31.10         provided (default) will grab the latest profile.
  248. 0:31.10         """
  249.  0:31.10         # XXX assert values
  250.  0:31.10         params = {
  251.  0:31.10             "platform": platform,
  252.  0:31.10             "scenario": scenario,
  253.  0:31.10             "customization": customization,
  254.  0:31.10             "task_id": task_id,
  255.  0:31.11             "repo": repo
  256.  0:31.11         }
  257.  0:31.11         filename = ARTIFACT_NAME % params
  258.  0:31.11         if task_id is None:
  259.  0:31.11             url = TC_LINK % params + filename
  260.  0:31.11         else:
  261.  0:31.11             url = DIRECT_LINK % params + filename
  262.  0:31.11    
  263.  0:31.11         if not download_cache:
  264.  0:31.11             download_dir = tempfile.mkdtemp()
  265.  0:31.11         else:
  266.  0:31.11             # using a cache dir in the user home dir
  267.  0:31.11             download_dir = os.path.expanduser(CONDPROF_CACHE)
  268.  0:31.11             if not os.path.exists(download_dir):
  269.  0:31.11                 os.makedirs(download_dir)
  270.  0:31.11    
  271.  0:31.11         downloaded_archive = os.path.join(download_dir, filename)
  272.  0:31.11         get_logger().msg("Getting %s" % url)
  273.  0:31.11         try:
  274.  0:31.11             archive = download_file(url, target=downloaded_archive)
  275.  0:31.11         except ArchiveNotFound:
  276.  0:31.11             raise ProfileNotFoundError(url)
  277.  0:31.11    
  278.  0:31.11         try:
  279.  0:31.11             with tarfile.open(archive, "r:gz") as tar:
  280.  0:31.11                 get_logger().msg("Extracting the tarball content in %s" % target_dir)
  281.  0:31.11                 size = len(list(tar))
  282.  0:31.11                 with progress.Bar(expected_size=size) as bar:
  283.  0:31.11    
  284.  0:31.11                     def _extract(self, *args, **kw):
  285.  0:31.11                         if not TASK_CLUSTER:
  286.  0:31.11                             bar.show(bar.last_progress + 1)
  287.  0:31.11                         return self.old(*args, **kw)
  288.  0:31.11    
  289.  0:31.11                     tar.old = tar.extract
  290.  0:31.11                     tar.extract = functools.partial(_extract, tar)
  291.  0:31.11                     tar.extractall(target_dir)
  292.  0:31.11         except (OSError, tarfile.ReadError) as e:
  293.  0:31.11 >           raise ProfileNotFoundError(str(e))
  294.  0:31.11 E           ProfileNotFoundError: not a gzip file
  295.  0:31.11
  296.  0:31.11 ../../../condprofile/condprof/client.py:94: ProfileNotFoundError
  297.  0:31.11 ---------------------------- Captured stdout setup -----------------------------
  298.  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
  299.  0:31.11 [2019-12-09T11:03:51.677507] Changed!
  300.  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
  301.  0:31.11 ---------------------------- Captured stderr setup -----------------------------
  302.  0:31.11 ['path/to/dummy/browser', '--version']
  303.  0:31.11 ['path/to/dummy/browser', '--version']
  304.  0:31.11 =============================== warnings summary ===============================
  305.  0:31.11 <undetermined location>
  306.  0:31.11   Module already imported so cannot be rewritten: mozlog
  307.  0:31.11
  308.  0:31.11 -- Docs: http://doc.pytest.org/en/latest/warnings.html
  309.  0:31.11 ================ 2 passed, 1 warnings, 3 error in 2.88 seconds =================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement