refactor(constants): final cleanup of old constants imports#5440
Conversation
Remove all re-exports from utilities/constants/__init__.py except Images. Migrate remaining callers to direct submodule imports, move NODE_STR from aaq.py to cluster.py, and update docs and analyzer test fixtures. Assisted-by: Cursor Agent (Composer 2.5) Signed-off-by: vsibirsk <vsibirsk@redhat.com>
|
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
Custom Commands
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. |
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughShared constants moved into dedicated submodules, ChangesConstants package restructuring and import migration
Estimated code review effort: 3 (Moderate) | ~25 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 |
Test execution plan request detailsCRITICAL: You MUST post an inline review comment on the first changed line of the first file. As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Output rules: Your deliverable: Test Execution Plan
Use these formats:
Real test commands (MANDATORY when changes affect session/runtime code): When the affected code runs at session/collection time (conftest fixtures, pytest plugins,
Example output for a session-startup fix: Guidelines:
Hardware-Related Checks (SR-IOV, GPU, DPDK): When PR modifies fixtures for hardware-specific resources:
CRITICAL WORKFLOW COMPLETION RULES: When responding to this test execution plan request, you MUST follow these rules EXACTLY:
ABSOLUTE PROHIBITIONS (violating these creates empty/meaningless reviews):
Remember: The pull request review is visible to users. Additional comments are redundant noise. CRITICAL — Verification rules for smoke and gating decisions: |
|
Test Execution Plan
Affected tests to run
Real tests (cluster required) Happy path (regression, amd64 default): Note: your manual smoke run in this thread (22 passed) plus full collect-only (2156/2234 collected) already covers the primary regression risk for the amd64 path. ✅ Action performedReview finished.
|
|
/approve |
|
/approve |
- Fix broken links to QUARANTINE_GUIDELINES.md and SOFTWARE_TEST_DESCRIPTION.md - Remove nonexistent tier1 from tier marker semantics - Fix typo: "commiting" → "committing" - Generalize utility module placement (no explicit module list) - Document gating marker and tier2 exclusion markers reference - Document quarantined marker auto-add behavior (with run=False) - Add Scripts Directory section - Add missing Related Documentation links (AI policy, maintainer guidelines, arch support) - Remove Constants and conftest Architecture sections (covered by CODE_ORGANIZATION.md from PR RedHatQE#5440) Signed-off-by: Ruth Netser <rnetser@redhat.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: PI (claude-opus-4-6) <noreply@pi.dev> Signed-off-by: rnetser <rnetser@redhat.com>
- Fix broken links to QUARANTINE_GUIDELINES.md and SOFTWARE_TEST_DESCRIPTION.md - Remove nonexistent tier1 from tier marker semantics - Fix typo: "commiting" → "committing" - Generalize utility module placement (no explicit module list) - Document gating marker and tier2 exclusion markers reference - Document quarantined marker auto-add behavior (with run=False) - Add Scripts Directory section - Add missing Related Documentation links (AI policy, maintainer guidelines, arch support) - Remove Constants and conftest Architecture sections (covered by CODE_ORGANIZATION.md from PR RedHatQE#5440) Signed-off-by: Ruth Netser <rnetser@redhat.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: PI (claude-opus-4-6) <noreply@pi.dev> Signed-off-by: rnetser <rnetser@redhat.com>
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
What this PR does / why we need it:
Remove all re-exports from utilities/constants/init.py except Images. Migrate remaining callers to direct submodule imports, move NODE_STR from aaq.py to cluster.py, and update docs and analyzer test fixtures.
Updated docs for the new project modules structure guidelines
Assisted-by: Cursor Agent (Composer 2.5)
Which issue(s) this PR fixes:
Special notes for reviewer:
Final PR in refactor series https://redhat.atlassian.net/browse/CNV-80952
The only remaining constant in
__init__.pyisImagesdue to circular imports issue (planned to be fixed in follow uprefactors of remaining
utilities/modules.jira-ticket:
https://redhat.atlassian.net/browse/CNV-89568
Summary by CodeRabbit
Summary by CodeRabbit
nodevia a shared constant.