Bug 2219964
| Summary: | F39FailsToInstall: copr-dist-git | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Fails To Install <fti-bugs> |
| Component: | copr-dist-git | Assignee: | Pavel Raiskup <praiskup> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | clime7, copr-team, jkadlcik, msuchy, praiskup, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-15 21:19:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2135404, 2168842, 2168845, 2231790, 2231791 | ||
|
Description
Fedora Fails To Install
2023-07-05 19:03:08 UTC
Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ This package fails to install and maintainers are advised to take one of the following actions: - Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.) or - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet. or - Orphan the package if you no longer plan to maintain it. If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue. This package may be orphaned in 7+ weeks. This is the first reminder (step 3) from the policy. Don't hesitate to ask for help on devel.org if you are unsure how to fix this bug. =================================== FAILURES ===================================
_________________________ TestImporter.test_do_import __________________________
self = <test_importer.TestImporter object at 0x3ffa9dab3b0>
mc_import_package = <MagicMock name='import_package' id='4396599864560'>
mc_helpers = <MagicMock name='helpers' id='4396599860240'>
def test_do_import(self, mc_import_package, mc_helpers):
mc_helpers.download_file = MagicMock(return_value='somepath.src.rpm')
mc_import_package.return_value = Munch(
pkg_name='foo',
pkg_evr='1.2',
reponame='foo',
branch_commits={self.BRANCH: '123', self.BRANCH2: '124'}
)
self.importer.post_back_safe = MagicMock()
self.importer.do_import(self.url_task)
assert mc_import_package.call_args[0][0] == self.opts
assert mc_import_package.call_args[0][1] == self.url_task.repo_namespace
assert mc_import_package.call_args[0][2] == self.url_task.branches
assert mc_import_package.call_args[0][3] == 'somepath.src.rpm'
> print(self.importer.post_back_safe.has_calls([
mock.call({'build_id': 125, 'pkg_name': 'foo', 'branch': self.BRANCH,
'pkg_version': '1.2', 'git_hash': '123', 'repo_name': 'foo'}),
mock.call({'build_id': 125, 'pkg_name': 'foo', 'branch': self.BRANCH2,
'pkg_version': '1.2', 'git_hash': '124', 'repo_name': 'foo'})
]))
tests/test_importer.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <MagicMock id='4396605213728'>, name = 'has_calls'
def __getattr__(self, name):
if name in {'_mock_methods', '_mock_unsafe'}:
raise AttributeError(name)
elif self._mock_methods is not None:
if name not in self._mock_methods or name in _all_magics:
raise AttributeError("Mock object has no attribute %r" % name)
elif _is_magic(name):
raise AttributeError(name)
if not self._mock_unsafe and (not self._mock_methods or name not in self._mock_methods):
if name.startswith(('assert', 'assret', 'asert', 'aseert', 'assrt')) or name in _ATTRIB_DENY_LIST:
> raise AttributeError(
f"{name!r} is not a valid assertion. Use a spec "
f"for the mock if {name!r} is meant to be an attribute.")
E AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute.
/usr/lib64/python3.12/unittest/mock.py:663: AttributeError
We plan to work on this issue during this sprint https://github.com/fedora-copr/copr/issues/2811 This is going to be automatically fixed with the new Copr release https://github.com/fedora-copr/copr/issues/2824 - it will have the fix from https://github.com/fedora-copr/copr/pull/2827 |