Bug 2258085

Summary: Remove Python Mock Usage
Product: [Fedora] Fedora Reporter: Aoife Moloney <amoloney>
Component: Changes TrackingAssignee: Michel Lind <michel>
Status: ON_QA --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amoloney, awilliam, maxwell, michel
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: 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: 2387673    

Description Aoife Moloney 2024-01-12 15:10:33 UTC
This is a tracking bug for Change: Remove Python Mock Usage
For more details, see: https://fedoraproject.org/wiki/Changes/RemovePythonMockUsage

python-mock has been deprecated since Fedora 34 - 6 releases ago, but is still in use in many packages. We plan to go through the remaining usages and clean them up, with the goal of retiring python-mock from Fedora.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Aoife Moloney 2024-02-19 16:23:20 UTC
Hi there, we have passed the 'Testable' checkpoint for changes. Do you have any update to share on the progress of this change? How is the cleanup progressing?


Thanks!
Aoife

Comment 2 Michel Lind 2024-02-20 02:24:28 UTC
Hi Aoife!

We have some packages cleaned up - see https://pagure.io/michel-slm/python-mock-drawdown/blob/main/f/pull-requests for details - but likely won't be able to finish them all in time to properly retire python-mock in Fedora 40.

We plan to keep chugging along, but it might make it easier to retarget this to Fedora 41. We'll still clean up the specs in Rawhide, but once F40 requires updates to be submitted to Bodhi we won't be touching F40 specs anymore.

Comment 3 Adam Williamson 2024-02-21 02:44:48 UTC
OK, deferring (Aoife is on vacation). Thanks.

Comment 4 Aoife Moloney 2024-08-21 14:03:27 UTC
Hi @sallima, how is this change looking for F41? Are you still on track for this release or does this change need to be re-targeted? It needs to be in code complete shape before we enter Beta freeze next Tuesday 27th August so an update on where this work is at would be much appreciated.

Thanks!

Comment 5 Michel Lind 2024-08-24 03:48:22 UTC
Hi Aoife. This likely needs to be retargeted to F42. I'll start aggressively whacking the leftover packages, since they have been given a lot of notice

Comment 6 Aoife Moloney 2024-08-26 19:05:47 UTC
Thanks Michel! Tracker bug and wiki page have all been updated to retarget F42.

Comment 7 Aoife Moloney 2025-01-24 14:18:14 UTC
Hi Michel, how goes this change for F42? The testable deadline is coming up in about two weeks, on Feb 4th, and changes need to be in good shape at this point https://docs.fedoraproject.org/en-US/program_management/changes_policy/#_change_process_milestones

Please let me know if you need to defer this to F43, otherwise if youre good to go for the change to be ready to meet the testable requirements, please update the status of the tracker bug to MODIFIED.


Thanks!
Aoife

Comment 8 Michel Lind 2025-02-17 03:36:00 UTC
Let's defer it again to F43 - apologies!

Comment 9 Aoife Moloney 2025-02-17 22:47:15 UTC
Ack, no problem - thank you for confirming Michel. I will update the change now accordingly.  Thanks!

Comment 10 Aoife Moloney 2025-08-19 20:42:09 UTC
Dear change owner, this is a reminder that your change is required to be 100% code complete by August 26, which is the start of beta freeze. Please provide a status update on your change in the Incomplete Changes Report if you are not able to move your change to 'ON_QA' before this date. If you need to defer your change to the next Fedora release, please let me know and I will reassign this bug and the change page. Thank you kindly.

Comment 11 Aoife Moloney 2025-08-19 21:11:40 UTC
Dear change owner, this is a reminder that your change is required to be 100% code complete by August 26, which is the start of beta freeze. Please provide a status update on your change in the Incomplete Changes Report if you are not able to move your change to 'ON_QA' before this date. If you need to defer your change to the next Fedora release, please let me know and I will reassign this bug and the change page. Thank you kindly.

Comment 12 Allison King 2026-02-03 19:38:00 UTC
Hi michel, how goes this change for F44? The testable deadline is today, February 03, 2026, and changes need to be in good shape at this point https://docs.fedoraproject.org/en-US/program_management/changes_policy/#_change_process_milestones

Please let me know if you need to defer this to F45, otherwise if you're good to go for the change to be ready to meet the testable requirements, please update the status of the tracker bug to MODIFIED.

Thanks!

Comment 13 Michel Lind 2026-02-11 13:56:11 UTC
Hello! Doing a final push to fix the remaining packages - otherwise new usages will keep popping up

Comment 14 Adam Williamson 2026-02-11 16:27:49 UTC
So, you just modified one of my packages for this. Which is fine, but - I don't recall ever receiving any customized communication about it before. There's no bug report for it against the package (resultsdb_conventions) that I can find. I don't think I ever got a direct email about it, or a ping on chat, or anything. If I'd got anything like that I probably would have fixed it long ago.

It would also have been good to send the patch upstream instead of just committing it downstream. I'm the upstream as well as the downstream...

Comment 15 Michel Lind 2026-02-11 17:51:47 UTC
(In reply to Adam Williamson from comment #14)
> So, you just modified one of my packages for this. Which is fine, but - I
> don't recall ever receiving any customized communication about it before.
> There's no bug report for it against the package (resultsdb_conventions)
> that I can find. I don't think I ever got a direct email about it, or a ping
> on chat, or anything. If I'd got anything like that I probably would have
> fixed it long ago.
> 
fair point - and apologies for that. This change has been worked on, on and off, for several years now (in one of the earliest pushes we waited for weeks before merging), and partially because of dynamic BRs new packages end up using python-mock even though it's already deprecated years ago (and we don't have anything to catch it outside of initial reviews). Given the beta freeze that's looming and that we really should get to the point where we can retire python-mock (at least in rawhide) without surprising maintainers with FTBFS, I might have erred a bit too far on the 'get this done' side.
 
> It would also have been good to send the patch upstream instead of just
> committing it downstream. I'm the upstream as well as the downstream...

Also fair. Though hard to scale - though it definitely helps when upstream == downstream

Comment 16 Adam Williamson 2026-02-11 18:06:22 UTC
I'm pretty sure it's been in resultsdb_conventions for years, though. I barely touch that code.