Bug 2059937

Summary: ansible-core fails to build with pytest 7
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: ansible-coreAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, maxwell
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-core-2.12.4-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-03 23:53:50 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: 2045102, 2050629    

Description Miro Hrončok 2022-03-02 11:15:25 UTC
In this copr repo, I have updated pytest to 7.0.1:

https://copr.fedorainfracloud.org/coprs/churchyard/pytest-7/

Based on this PR:

https://src.fedoraproject.org/rpms/pytest/pull-request/25

I'd like to update pytest to 7 in Fedora 37, but ansible-core 2.12.3-1  fails to build.


https://copr.fedorainfracloud.org/coprs/churchyard/pytest-7/package/ansible-core/


E       TypeError: mock_NamedTemporaryFile() missing 1 required positional argument: 'mocker'

FAILED test/lib/ansible_test/_data/::TestFileVaultSecret::test_file
FAILED test/lib/ansible_test/_data/::TestFileVaultSecret::test_file_empty
FAILED test/lib/ansible_test/_data/::TestFileVaultSecret::test_file_encrypted
FAILED test/lib/ansible_test/_data/::TestFileVaultSecret::test_file_not_found
FAILED test/lib/ansible_test/_data/::TestFileVaultSecret::test_repr
FAILED test/lib/ansible_test/_data/::TestGetFileVaultSecret::test_file
FAILED test/lib/ansible_test/_data/::TestGetFileVaultSecret::test_file_not_found
FAILED test/lib/ansible_test/_data/::TestVaultEditor::test_decrypt_1_1
FAILED test/lib/ansible_test/_data/::TestVaultEditor::test_create_file
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_with_missing_executable_subprocess
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_with_missing_executable_pexpect
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_error_subprocess
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_error_pexpect
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_error_pass_in_output_subprocess
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_error_pass_in_output_pexpect
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_subprocess[options0-expected0]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_subprocess[options1-expected1]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_subprocess[options2-expected2]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_subprocess[options3-expected3]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_subprocess[options4-expected4]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_pexpect[options0-expected0]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_pexpect[options1-expected1]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_pexpect[options2-expected2]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_pexpect[options3-expected3]
FAILED test/lib/ansible_test/_data/::TestWinRMKerbAuth::test_kinit_success_pexpect[options4-expected4]



There are several packages affected by this update, so I'd very much appreciate it if you could fix this failure. Please, check if your upstream hasn't already fixed it and backport the fix if possible. Report this failure to your upstream otherwise. If you need specific help, let me know.

For ansible, there is https://github.com/ansible/ansible/issues/76577 https://github.com/ansible/ansible/pull/76670 and I think it is also relevant here.

Thanks!

Comment 1 Fedora Update System 2022-04-03 23:51:13 UTC
FEDORA-2022-6b9b2232bd has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6b9b2232bd

Comment 2 Fedora Update System 2022-04-03 23:53:50 UTC
FEDORA-2022-6b9b2232bd has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.