Learn more about these different git repos.
Other Git URLs
From https://copr-be.cloud.fedoraproject.org/results/@copr/copr-dev/fedora-rawhide-x86_64/01021795-copr-frontend/builder-live.log.gz
tests/test_logic/test_builds_logic.py ............... [ 52%] tests/test_logic/test_complex_logic.py F....F [ 54%] tests/test_logic/test_coprs_logic.py .......... [ 58%] tests/test_logic/test_modules_logic.py F............. [ 64%] tests/test_logic/test_stat_logic.py .. [ 65%]
=================================== FAILURES =================================== ________________ TestComplexLogic.test_fork_copr_sends_actions _________________ args = (<test_complex_logic.TestComplexLogic object at 0x7f6a552a2cd0>,) keywargs = {'f_builds': None, 'f_coprs': None, 'f_db': None, 'f_mock_chroots': None, ...} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): /usr/lib64/python3.8/unittest/mock.py:1283: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/contextlib.py:113: in __enter__ return next(self.gen) /usr/lib64/python3.8/unittest/mock.py:1251: in decoration_helper arg = patching.__enter__() /usr/lib64/python3.8/unittest/mock.py:1377: in __enter__ if spec is None and _is_async_obj(original): /usr/lib64/python3.8/unittest/mock.py:49: in _is_async_obj if getattr(obj, '__code__', None): /usr/lib/python3.8/site-packages/werkzeug/local.py:347: in __getattr__ return getattr(self._get_current_object(), name) /usr/lib/python3.8/site-packages/werkzeug/local.py:306: in _get_current_object return self.__local() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'g' def _lookup_app_object(name): top = _app_ctx_stack.top if top is None: > raise RuntimeError(_app_ctx_err_msg) E RuntimeError: Working outside of application context. E E This typically means that you attempted to use functionality that needed E to interface with the current application object in some way. To solve E this, set up an application context with app.app_context(). See the E documentation for more information. /usr/lib/python3.8/site-packages/flask/globals.py:44: RuntimeError ______________________ TestProjectForking.test_fork_copr _______________________ args = (<test_complex_logic.TestProjectForking object at 0x7f6a550c2430>,) keywargs = {'f_builds': None, 'f_coprs': None, 'f_db': None, 'f_mock_chroots': None, ...} @wraps(func) def patched(*args, **keywargs): > with self.decoration_helper(patched, args, keywargs) as (newargs, newkeywargs): /usr/lib64/python3.8/unittest/mock.py:1283: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.8/contextlib.py:113: in __enter__ return next(self.gen) /usr/lib64/python3.8/unittest/mock.py:1251: in decoration_helper arg = patching.__enter__() /usr/lib64/python3.8/unittest/mock.py:1377: in __enter__ if spec is None and _is_async_obj(original): /usr/lib64/python3.8/unittest/mock.py:49: in _is_async_obj if getattr(obj, '__code__', None): /usr/lib/python3.8/site-packages/werkzeug/local.py:347: in __getattr__ return getattr(self._get_current_object(), name) /usr/lib/python3.8/site-packages/werkzeug/local.py:306: in _get_current_object return self.__local() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'g' def _lookup_app_object(name): top = _app_ctx_stack.top if top is None: > raise RuntimeError(_app_ctx_err_msg) E RuntimeError: Working outside of application context. E E This typically means that you attempted to use functionality that needed E to interface with the current application object in some way. To solve E this, set up an application context with app.app_context(). See the E documentation for more information. /usr/lib/python3.8/site-packages/flask/globals.py:44: RuntimeError _________________________ TestModulesLogic.test_state __________________________ self = <test_modules_logic.TestModulesLogic object at 0x7f6a54df87c0> f_users = None, f_coprs = None, f_mock_chroots = None, f_builds = None f_modules = None, f_db = None def test_state(self, f_users, f_coprs, f_mock_chroots, f_builds, f_modules, f_db): self.b1.build_chroots[0].status = StatusEnum("pending") self.b3.build_chroots[0].status = StatusEnum("succeeded") self.b3.build_chroots[1].status = StatusEnum("succeeded") self.b3.source_status = StatusEnum("succeeded") # even though b3 is succeeded, b1 is still pending self.m1.builds = [self.b1, self.b3] > assert self.m1.status == ModuleStatusEnum("pending") tests/test_logic/test_modules_logic.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ coprs/models.py:1572: in status if ModuleStatusEnum(state) in build_statuses: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <class 'copr_common.enums.ModuleStatusEnum'>, attr = 'canceled' def __call__(self, attr): if isinstance(attr, int): for k, v in self.vals.items(): if v == attr: return k raise KeyError("num {0} is not mapped".format(attr)) else: > return self.vals[attr] E KeyError: 'canceled' /usr/lib/python3.8/site-packages/copr_common/enums.py:15: KeyError =============================== warnings summary =============================== /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16 /usr/lib/python3.8/site-packages/werkzeug/datastructures.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Container, Iterable, MutableSet /usr/lib/python3.8/site-packages/jinja2/utils.py:485 /usr/lib/python3.8/site-packages/jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import MutableMapping /usr/lib/python3.8/site-packages/jinja2/runtime.py:318 /usr/lib/python3.8/site-packages/jinja2/runtime.py:318: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Mapping -- Docs: https://docs.pytest.org/en/latest/warnings.html ============== 3 failed, 241 passed, 5 warnings in 19.54 seconds =============== + cleanup
I'd swear I already filled this issue before ... duh. I can't find it now.
Metadata Update from @praiskup: - Issue assigned to praiskup
Commit 0937dc6 fixes this issue
Log in to comment on this ticket.