Bug 2273606

Summary: python-aws-sam-translator fails to build with pytest 8: ModuleNotFoundError: No module named 'bin'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-aws-sam-translatorAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, mhroncok, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-aws-sam-translator-1.87.0-2.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-05 15:57:21 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-04-05 09:48:52 UTC
python-aws-sam-translator fails to build with pytest 8.

==================================== ERRORS ====================================
_____________ ERROR collecting tests/bin/test_public_interface.py ______________
ImportError while importing test module '/builddir/build/BUILD/serverless-application-model-1.87.0/tests/bin/test_public_interface.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/bin/test_public_interface.py:3: in <module>
    from bin.public_interface import _BreakingChanges, _detect_breaking_changes
E   ModuleNotFoundError: No module named 'bin'
=========================== short test summary info ============================
ERROR tests/bin/test_public_interface.py
================== 3955 passed, 1 error in 162.59s (0:02:42) ===================

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/07260399-python-aws-sam-translator/

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

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 Fedora Update System 2024-04-05 15:53:16 UTC
FEDORA-2024-714530368b (python-aws-sam-translator-1.87.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-714530368b

Comment 2 Fedora Update System 2024-04-05 15:57:21 UTC
FEDORA-2024-714530368b (python-aws-sam-translator-1.87.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.