#589 copr-frontend fails to build (testsuite issues) on fedora-30+
Closed 5 years ago by praiskup. Opened 5 years ago by praiskup.

tests/test_exceptions.py .....                                           [  2%]
tests/test_helpers.py .......                                            [  5%]
tests/test_mail.py .....                                                 [  7%]
tests/test_models.py ...                                                 [  9%]
tests/test_rmodels.py .                                                  [  9%]
tests/test_webhooks.py ...                                               [ 11%]
tests/test_api/test_build_r.py .........................                 [ 23%]
tests/test_api/test_build_task_r.py ........                             [ 26%]
tests/test_api/test_mock_chroot_r.py ....                                [ 28%]
tests/test_api/test_project_chroot_r.py ...........                      [ 33%]
tests/test_api/test_project_r.py .........................               [ 45%]
tests/test_logic/test_builds_logic.py ..............                     [ 52%]
tests/test_logic/test_complex_logic.py .....                             [ 54%]
tests/test_logic/test_coprs_logic.py ...                                 [ 55%]
tests/test_logic/test_modules_logic.py ..........                        [ 60%]
tests/test_logic/test_stat_logic.py ..                                   [ 61%]
tests/test_logic/test_users_logic.py .....                               [ 63%]
tests/test_views/test_misc.py ...                                        [ 65%]
tests/test_views/test_admin/test_admin_general.py FF                     [ 66%]
tests/test_views/test_api_ns/test_api_general.py FF                      [ 67%]
tests/test_views/test_backend_ns/test_backend_general.py ............    [ 72%]
tests/test_views/test_coprs_ns/test_coprs_builds.py .FFFFFFFFFFFFFF      [ 79%]
tests/test_views/test_coprs_ns/test_coprs_general.py ...FFFFFFFF.....F.F [ 88%]
FFFFFFFFFFFFFFFF....                                                     [ 98%]
tests/test_views/test_groups_ns/test_groups_general.py FFFF              [100%]

=================================== FAILURES ===================================
___________________ TestAdminLogin.test_nonadmin_cant_login ____________________

self = <test_admin_general.TestAdminLogin object at 0x7fcf5d22de10>
f_users = None, f_db = None

    def test_nonadmin_cant_login(self, f_users, f_db):
        with self.tc as c:
            with c.session_transaction() as s:
>               s["openid"] = self.u2.username

tests/test_views/test_admin/test_admin_general.py:12: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.7/contextlib.py:119: in __exit__
    next(self.gen)
/usr/lib/python3.7/site-packages/flask/testing.py:162: in session_transaction
    session_interface.save_session(app, sess, resp)
coprs/redis_session.py:72: in save_session
    self.redis.setex(key_exp, val, time_exp)
/usr/lib/python3.7/site-packages/redis/client.py:1472: in setex
    return self.execute_command('SETEX', name, time, value)
/usr/lib/python3.7/site-packages/redis/client.py:775: in execute_command
    return self.parse_response(connection, command_name, **options)
/usr/lib/python3.7/site-packages/redis/client.py:789: in parse_response
    response = connection.read_response()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Connection<host=127.0.0.1,port=7777,db=0>

    def read_response(self):
        "Read the response from a previously sent command"
        try:
            response = self._parser.read_response()
        except Exception as e:
            self.disconnect()
            raise e
        if isinstance(response, ResponseError):
>           raise response
E           redis.exceptions.ResponseError: value is not an integer or out of range

/usr/lib/python3.7/site-packages/redis/connection.py:638: ResponseError
_____________________ TestAdminLogin.test_admin_can_login ______________________

self = <test_admin_general.TestAdminLogin object at 0x7fcf5d578eb8>
f_users = None, f_db = None

    def test_admin_can_login(self, f_users, f_db):
        with self.tc as c:
            with c.session_transaction() as s:
>               s["openid"] = self.u1.username

tests/test_views/test_admin/test_admin_general.py:20: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.7/contextlib.py:119: in __exit__
    next(self.gen)
/usr/lib/python3.7/site-packages/flask/testing.py:162: in session_transaction
    session_interface.save_session(app, sess, resp)
coprs/redis_session.py:72: in save_session
    self.redis.setex(key_exp, val, time_exp)
/usr/lib/python3.7/site-packages/redis/client.py:1472: in setex
    return self.execute_command('SETEX', name, time, value)
/usr/lib/python3.7/site-packages/redis/client.py:775: in execute_command
    return self.parse_response(connection, command_name, **options)
/usr/lib/python3.7/site-packages/redis/client.py:789: in parse_response
    response = connection.read_response()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[... cut ...]

Ok, the same on fedora-30.

Metadata Update from @praiskup:
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #602 Merged 5 years ago