Bug 2059937 - ansible-core fails to build with pytest 7
Summary: ansible-core fails to build with pytest 7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F37FTBFS PYTEST7
TreeView+ depends on / blocked
 
Reported: 2022-03-02 11:15 UTC by Miro Hrončok
Modified: 2022-04-03 23:53 UTC (History)
2 users (show)

Fixed In Version: ansible-core-2.12.4-1.fc37
Clone Of:
Environment:
Last Closed: 2022-04-03 23:53:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ansible ansible issues 76577 0 None closed pytest 7 test failures 2022-03-02 11:15:49 UTC
Github ansible ansible pull 76670 0 None Merged Fix tests failing on pytest 7 2022-03-02 11:15:49 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.