Bug 2279960

Summary: python-niapy fails to build with pytest 8: KeyError: 'runtest'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-niapyAssignee: Iztok Fister Jr. <iztok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gui1ty, iztok, mhroncok, neuro-sig, sanjay.ankur, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-niapy-2.3.1-1.fc40 python-niapy-2.3.1-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-29 03:35:31 UTC Type: Bug
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: 2256331    

Description Tomáš Hrnčiar 2024-05-10 07:39:42 UTC
python-niapy fails to build with pytest 8.

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_algorithm.py ___________________
niapy/task.py:79: in __init__
    self.problem = get_problem(problem, **params)
niapy/util/factory.py:19: in get_problem
    problem = _problem_options().pop(name.lower())
E   KeyError: 'runtest'
=========================== short test summary info ============================
ERROR tests/test_algorithm.py::TestingTask - KeyError: 'runtest'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 1.56s ===============================

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07389232-python-niapy/

For all our attempts to build python-niapy with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-niapy/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Sandro 2024-05-14 20:56:46 UTC
Reported upstream. Possible workaround, should upstream not provide a fix, is ignoring the troublesome test with `--ignore tests/test_algorithm.py`.

Comment 2 Fedora Update System 2024-05-20 07:03:33 UTC
FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c

Comment 3 Fedora Update System 2024-05-20 07:03:35 UTC
FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382

Comment 4 Fedora Update System 2024-05-21 02:21:25 UTC
FEDORA-2024-8448e22382 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8448e22382`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8448e22382

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-05-21 03:04:44 UTC
FEDORA-2024-0c89538d1c has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0c89538d1c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0c89538d1c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-05-29 03:35:31 UTC
FEDORA-2024-8448e22382 (python-niapy-2.3.1-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2024-05-29 04:26:39 UTC
FEDORA-2024-0c89538d1c (python-niapy-2.3.1-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.