Thanks to visit codestin.com
Credit goes to github.com

Skip to content

salt 2014.1.1 from pypi gives integrations errors during build #11357

Description

@aboe76

I'm building the new salt 2014.1.1 rpm on opensuse build server and I check the integrations test during the package building, I got the following errors:

[  453s] 2014.1.1
[  453s] running test
[  453s] running build
[  453s] running build_py
[  453s] package init file 'salt/templates/__init__.py' not found (or not a regular file)
[  453s] package init file 'salt/templates/__init__.py' not found (or not a regular file)
[  453s] package init file 'salt/templates/__init__.py' not found (or not a regular file)
[  453s] package init file 'salt/templates/__init__.py' not found (or not a regular file)
[  453s] running build_scripts
[  459s] default
[  459s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  459s]  * Current Directory: /home/abuild/rpmbuild/BUILD/salt-2014.1.1
[  459s]  * Test suite is running under PID 2131
[  459s]  * Logging tests on /tmp/salt-runtests.log
[  459s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  459s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  459s] Starting Unit Tests
[  459s] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  485s] .s........"No matching sls found for 'b.sls' in env 'base'"
[  485s] {}
[  485s] "No matching sls found for 'c.sls' in env 'base'\nNo matching sls found for 'd.sls' in env 'base'"
[  485s] {}
[  507s] .......................................s.........EEE.........................sssssssssssssss..................ssssssssssssssssssssss...EE...................sssssssssss.......................................................................................................................................Failed to connect to the Master, is the Salt Master running?
[  507s] No minions matched the target. No command was sent, no jid was assigned.
[  619s] .......................ss..................................s................................................sss....x..............sss.......................................
[  619s] ======================================================================
[  619s] ERROR: test_context_manager (unit.pyobjects_test.StateTests)
[  619s] ----------------------------------------------------------------------
[  619s] Traceback (most recent call last):
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 79, in test_context_manager
[  619s]     test_registry.states['/usr/local/bin/pydmesg'](),
[  619s] TypeError: 'OrderedDict' object is not callable
[  619s] 
[  619s] ======================================================================
[  619s] ERROR: test_factory_serialization (unit.pyobjects_test.StateTests)
[  619s] ----------------------------------------------------------------------
[  619s] Traceback (most recent call last):
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 70, in test_factory_serialization
[  619s]     test_registry.states['/usr/local/bin/pydmesg'](),
[  619s] TypeError: 'OrderedDict' object is not callable
[  619s] 
[  619s] ======================================================================
[  619s] ERROR: test_salt_data (unit.pyobjects_test.StateTests)
[  619s] ----------------------------------------------------------------------
[  619s] Traceback (most recent call last):
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 105, in test_salt_data
[  619s]     test_registry.states['/usr/local/bin/pydmesg'](),
[  619s] TypeError: 'OrderedDict' object is not callable
[  619s] 
[  619s] ======================================================================
[  619s] ERROR: test_replace_append (unit.modules.file_test.FileBlockReplaceTestCase)
[  619s] ----------------------------------------------------------------------
[  619s] Traceback (most recent call last):
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/modules/file_test.py", line 208, in test_replace_append
[  619s]     append_if_not_found=True)
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/salt/modules/file.py", line 1146, in blockreplace
[  619s]     if not new_file[-1].ends_with('\n'):
[  619s] AttributeError: 'str' object has no attribute 'ends_with'
[  619s] 
[  619s] ======================================================================
[  619s] ERROR: test_replace_append_newline_at_eof (unit.modules.file_test.FileBlockReplaceTestCase)
[  619s] ----------------------------------------------------------------------
[  619s] Traceback (most recent call last):
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/modules/file_test.py", line 233, in test_replace_append_newline_at_eof
[  619s]     filemod.blockreplace(tfile.name, **args)
[  619s]   File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/salt/modules/file.py", line 1146, in blockreplace
[  619s]     if not new_file[-1].ends_with('\n'):
[  619s] AttributeError: 'str' object has no attribute 'ends_with'
[  619s] 
[  619s] ----------------------------------------------------------------------
[  619s] Ran 484 tests in 161.979s
[  619s] 
[  619s] FAILED (errors=5, skipped=59, expected failures=1)
[  619s] 
[  619s] ============================  Overall Tests Report  ============================
[  619s] *** Unit Tests  ****************************************************************
[  619s]  --------  Skipped Tests  ------------------------------------------------------
[  619s]    -> unit.pydsl_test.PyDSLRendererTestCase.test_compile_time_state_execution            ->  Not attached to a TTY
[  619s]    -> unit.templates.jinja_test.TestGetTemplate.test_strftime                            ->  The `timelib` library is not installed.
[  619s]    -> unit.modules.dockerio_test.DockerIoTestCase.test__sizeof_fmt                       ->  The docker execution module must be available to run the DockerIO test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_cpu_percent                                   ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_cpu_times                                     ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_disk_io_counters                              ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_disk_partition_usage                          ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_disk_partitions                               ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_disk_usage                                    ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_get_pid_list                                  ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_get_users                                     ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_kill_pid                                      ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_network_io_counters                           ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_pgrep                                         ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_physical_memory_usage                         ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_pkill                                         ->  psutils are required for this test case
[  619s]    -> unit.modules.ps_test.PsTestCase.test_virtual_memory_usage                          ->  psutils are required for this test case
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_check                                ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_create                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_exists                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_optimize                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_remove                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_repair                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_db_tables                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_free_slave                              ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_get_master_status                       ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_get_slave_status                        ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_grant_add                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_grant_exists                            ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_grant_revoke                            ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_processlist                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_query                                   ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_chpass                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_create                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_exists                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_grants                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_info                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_list                               ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.mysql_test.MySQLTestCase.test_user_remove                             ->  Install MySQL bindings before running MySQL unit tests.
[  619s]    -> unit.modules.zcbuildout_test.BuildoutOnlineTestCase.test_buildout                  ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutOnlineTestCase.test_buildout_bootstrap        ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutOnlineTestCase.test_run_buildout              ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test__find_cfgs                      ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_get_bootstrap_content           ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_get_bootstrap_url               ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_get_buildout_ver                ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_logger_clean                    ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_logger_loggers                  ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_onlyif_unless                   ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.modules.zcbuildout_test.BuildoutTestCase.test_salt_callback                   ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.utils.utils_test.UtilsTestCase.test_date_cast                                 ->  'timelib' is not installed
[  619s]    -> unit.utils.utils_test.UtilsTestCase.test_date_format                               ->  'timelib' is not installed
[  619s]    -> unit.utils.vt_test.VTTestCase.test_vt_size                                         ->  The code is not mature enough. Test disabled.
[  619s]    -> unit.utils.path_join_test.PathJoinTestCase.test_nix_paths                          ->  Skipped until properly mocked
[  619s]    -> unit.utils.path_join_test.PathJoinTestCase.test_windows_paths                      ->  Skipped until properly mocked
[  619s]    -> unit.utils.path_join_test.PathJoinTestCase.test_windows_paths_patched_path_module  ->  Skipped until properly mocked
[  619s]    -> unit.states.zcbuildout_test.BuildoutTestCase.test_error                            ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.states.zcbuildout_test.BuildoutTestCase.test_installed                        ->  The 'virtualenv' packaged needs to be installed
[  619s]    -> unit.states.zcbuildout_test.BuildoutTestCase.test_quiet                            ->  The 'virtualenv' packaged needs to be installed
[  619s]  -------------------------------------------------------------------------------
[  619s]  --------  Tests with Errors  --------------------------------------------------
[  619s]    -> unit.pyobjects_test.StateTests.test_context_manager  .....................
[  619s]        Traceback (most recent call last):
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 79, in test_context_manager
[  619s]            test_registry.states['/usr/local/bin/pydmesg'](),
[  619s]        TypeError: 'OrderedDict' object is not callable
[  619s]    .............................................................................
[  619s]    -> unit.pyobjects_test.StateTests.test_factory_serialization  ...............
[  619s]        Traceback (most recent call last):
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 70, in test_factory_serialization
[  619s]            test_registry.states['/usr/local/bin/pydmesg'](),
[  619s]        TypeError: 'OrderedDict' object is not callable
[  619s]    .............................................................................
[  619s]    -> unit.pyobjects_test.StateTests.test_salt_data  ...........................
[  619s]        Traceback (most recent call last):
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/pyobjects_test.py", line 105, in test_salt_data
[  619s]            test_registry.states['/usr/local/bin/pydmesg'](),
[  619s]        TypeError: 'OrderedDict' object is not callable
[  619s]    .............................................................................
[  619s]    -> unit.modules.file_test.FileBlockReplaceTestCase.test_replace_append  .....
[  619s]        Traceback (most recent call last):
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/modules/file_test.py", line 208, in test_replace_append
[  619s]            append_if_not_found=True)
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/salt/modules/file.py", line 1146, in blockreplace
[  619s]            if not new_file[-1].ends_with('\n'):
[  619s]        AttributeError: 'str' object has no attribute 'ends_with'
[  619s]    .............................................................................
[  619s]    -> unit.modules.file_test.FileBlockReplaceTestCase.test_replace_append_newline_at_eof  
[  619s]        Traceback (most recent call last):
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/tests/unit/modules/file_test.py", line 233, in test_replace_append_newline_at_eof
[  619s]            filemod.blockreplace(tfile.name, **args)
[  619s]          File "/home/abuild/rpmbuild/BUILD/salt-2014.1.1/salt/modules/file.py", line 1146, in blockreplace
[  619s]            if not new_file[-1].ends_with('\n'):
[  619s]        AttributeError: 'str' object has no attribute 'ends_with'
[  619s]    .............................................................................
[  619s]  -------------------------------------------------------------------------------
[  619s] ================================================================================
[  619s] FAILED (total=484, skipped=59, passed=420, failures=0, errors=5) 
[  619s] ============================  Overall Tests Report  ============================
[  619s] running test
[  619s] error: Bad exit status from /var/tmp/rpm-tmp.gTqkXy (%check)

Can I skip the check this release or is there something wrong??

more information:
https://build.opensuse.org/package/show/home:aboe76:branches:devel:languages:python/salt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions