refactor(constants): migrate chaos and utilities imports to submodules#5323
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (32)
📝 Walkthrough<stack_title>Constants submodule import refactor</stack_title> Every changed file replaces bulk imports from utilities.constants with targeted imports from utilities.constants.* submodules across utilities and tests/chaos.Utility modules (virt, hco, infra, monitoring, network, oadp, operator, os_utils, pytest_utils, sanity, ssp, storage, console, cpu, data_collector, guest_support, must_gather, artifactory, vnc_utils) updated to import from specific submodules.range_8e3209776114 range_49e8f9c4ef12 range_c0e750e4c9a4 range_24d6f2a4659a range_16333d20db1b range_ebc961bfa74d range_67c624fa8e0a range_e21d55000e4d range_4a6677a27db8 range_122bbb84b573 range_eae76ee719c4 range_9a0e76879c9f range_e3477add16dc range_6b3a36986496 range_903b69d9db9d range_683ca64a247b range_68032d9875fb range_be14bf8a832b range_62c5dad07c02 range_90684cdcf9d3 range_38934757f9ef range_c3ae72ed829a range_21762be28048 range_e247506c419b range_2f22b2657bcf range_3bb43693d91ftests/chaos modules (conftest, migration, oadp, snapshot, standard, utils) updated to import constants from specific submodules.range_5ed2b59be3d6 range_4530e68202b5 range_20ef33c57972 range_ec5d9a2b4527 range_de47561c96ca range_0728cf94a051 range_4feb4d5d5d40 range_6d203519c87f range_1345bc0aa9ff range_515be7120cd9 range_790f604a598cWalkthroughAll constant imports across ChangesConstants Submodule Import Refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
Replace `from utilities.constants import X` with direct submodule imports in tests/chaos/ and utilities/*.py. Images stays on the package shim until the compat shim is dropped. Generated-by: Claude Sonnet 4.6 Signed-off-by: vsibirsk <vsibirsk@redhat.com>
f81c816 to
64e1160
Compare
|
/verified collect only since it's only import path updates (no logic change) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5323 +/- ##
=======================================
Coverage 98.67% 98.67%
=======================================
Files 25 42 +17
Lines 2487 2492 +5
=======================================
+ Hits 2454 2459 +5
Misses 33 33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Clean rebase detected — no code changes compared to previous head ( |
|
/retest tox |
|
Clean rebase detected — no code changes compared to previous head ( |
|
/rerun-smoke |
|
/approve |
|
/lgtm |
|
/lgtm |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
What this PR does / why we need it:
Replace
from utilities.constants import Xwith direct submodule imports in tests/chaos/ and utilities/*.py. Images stays on the package shim until the compat shim is dropped.Generated-by: Claude Sonnet 4.6
Which issue(s) this PR fixes:
Special notes for reviewer:
This is a next PR in a series.
https://redhat.atlassian.net/browse/CNV-80952 and a follow up of #5188
jira-ticket:
https://redhat.atlassian.net/browse/CNV-89567
Summary by CodeRabbit
Refactor
Tests