ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 31115: Some rarely reproducible python tests failures
Date Tue, 17 Feb 2015 15:02:14 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31115/
-----------------------------------------------------------

Review request for Ambari and Dmytro Sen.


Bugs: AMBARI-9675
    https://issues.apache.org/jira/browse/AMBARI-9675


Repository: ambari


Description
-------

FAIL: test_attribute_try_sleep_tries (TestExecuteResource.TestExecuteResource)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
        return func(*args, **keywargs)
      File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-agent/src/test/python/resource_management/TestExecuteResource.py",
line 118, in test_attribute_try_sleep_tries
        time_mock.assert_called_once_with(10)
      File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-common/src/test/python/mock/mock.py",
line 843, in assert_called_once_with
        raise AssertionError(msg)
    AssertionError: Expected to be called once. Called 12981 times.
    

and

    
    
    ERROR: test_exclude_existing_repo (TestInstallPackages.TestInstallPackages)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/lestat/git/ambari/ambari-common/src/test/python/mock/mock.py", line 1199,
in patched
        return func(*args, **keywargs)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 102, in test_exclude_existing_repo
        os_type=('Redhat', '6.4', 'Final'),
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 135, in executeScript
        method(RMFTestCase.env)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 69, in actionexecute
        old_versions = self.hdp_versions()
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 185, in hdp_versions
        code, out = call("hdp-select versions")
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 69, in inner
        return function(command, **kwargs)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 90, in call
        return _call(command, logoutput, False, cwd, env, preexec_fn, user, wait_for_finish,
timeout, path, sudo, on_new_line)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 139, in _call
        master_fd, slave_fd = pty.openpty()
      File "/usr/lib/python2.7/pty.py", line 29, in openpty
        master_fd, slave_name = _open_terminal()
      File "/usr/lib/python2.7/pty.py", line 70, in _open_terminal
        raise os.error, 'out of pty devices'
    OSError: out of pty devices
     
    ERROR: test_fail (TestInstallPackages.TestInstallPackages)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/lestat/git/ambari/ambari-common/src/test/python/mock/mock.py", line 1199,
in patched
        return func(*args, **keywargs)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 178, in test_fail
        os_type=('Redhat', '6.4', 'Final'))
      File "/usr/lib/python2.7/unittest/case.py", line 475, in assertRaises
        callableObj(*args, **kwargs)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 135, in executeScript
        method(RMFTestCase.env)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 69, in actionexecute
        old_versions = self.hdp_versions()
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 185, in hdp_versions
        code, out = call("hdp-select versions")
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 69, in inner
        return function(command, **kwargs)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 90, in call
        return _call(command, logoutput, False, cwd, env, preexec_fn, user, wait_for_finish,
timeout, path, sudo, on_new_line)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 139, in _call
        master_fd, slave_fd = pty.openpty()
      File "/usr/lib/python2.7/pty.py", line 29, in openpty
        master_fd, slave_name = _open_terminal()
      File "/usr/lib/python2.7/pty.py", line 70, in _open_terminal
        raise os.error, 'out of pty devices'
    OSError: out of pty devices
     
    ERROR: test_format_package_name (TestInstallPackages.TestInstallPackages)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/lestat/git/ambari/ambari-common/src/test/python/mock/mock.py", line 1199,
in patched
        return func(*args, **keywargs)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 219, in test_format_package_name
        os_type=('Suse', '11', 'Final'),
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 135, in executeScript
        method(RMFTestCase.env)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 69, in actionexecute
        old_versions = self.hdp_versions()
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 185, in hdp_versions
        code, out = call("hdp-select versions")
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 69, in inner
        return function(command, **kwargs)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 90, in call
        return _call(command, logoutput, False, cwd, env, preexec_fn, user, wait_for_finish,
timeout, path, sudo, on_new_line)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 139, in _call
        master_fd, slave_fd = pty.openpty()
      File "/usr/lib/python2.7/pty.py", line 29, in openpty
        master_fd, slave_name = _open_terminal()
      File "/usr/lib/python2.7/pty.py", line 70, in _open_terminal
        raise os.error, 'out of pty devices'
    OSError: out of pty devices
     
    ERROR: test_normal_flow (TestInstallPackages.TestInstallPackages)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/lestat/git/ambari/ambari-common/src/test/python/mock/mock.py", line 1199,
in patched
        return func(*args, **keywargs)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/custom_actions/TestInstallPackages.py",
line 52, in test_normal_flow
        os_type=('Redhat', '6.4', 'Final'),
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 135, in executeScript
        method(RMFTestCase.env)
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 69, in actionexecute
        old_versions = self.hdp_versions()
      File "/home/lestat/git/ambari/ambari-server/src/test/python/stacks/utils/../../../../main/resources/custom_actions/scripts/install_packages.py",
line 185, in hdp_versions
        code, out = call("hdp-select versions")
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 69, in inner
        return function(command, **kwargs)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 90, in call
        return _call(command, logoutput, False, cwd, env, preexec_fn, user, wait_for_finish,
timeout, path, sudo, on_new_line)
      File "/home/lestat/git/ambari/ambari-common/src/main/python/resource_management/core/shell.py",
line 139, in _call
        master_fd, slave_fd = pty.openpty()
      File "/usr/lib/python2.7/pty.py", line 29, in openpty
        master_fd, slave_name = _open_terminal()
      File "/usr/lib/python2.7/pty.py", line 70, in _open_terminal
        raise os.error, 'out of pty devices'
    OSError: out of pty devices


Diffs
-----

  ambari-agent/src/test/python/resource_management/TestExecuteResource.py 5013bad 
  ambari-server/src/test/python/custom_actions/TestInstallPackages.py ad164e7 

Diff: https://reviews.apache.org/r/31115/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message