-
Notifications
You must be signed in to change notification settings - Fork 51
Add client arg in utilities/pytest_utils.py module
#2989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…zation-tests into add-client-pytets-utils
client args in utilities/pytest_utils.py moduleclient arg in utilities/pytest_utils.py module
WalkthroughCreate and cache a session-scoped Kubernetes DynamicClient (admin_client) in pytest setup, thread that client through pytest utility functions and resource constructors (Namespace, ConfigMap), update call sites and tests to pass the client, and add unit tests for admin client caching and behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-08-06T13:57:34.740ZApplied to files:
📚 Learning: 2025-06-18T09:21:34.315ZApplied to files:
📚 Learning: 2025-09-09T11:51:37.860ZApplied to files:
📚 Learning: 2025-05-28T09:58:57.143ZApplied to files:
🪛 Ruff (0.14.7)conftest.py801-801: Possible hardcoded password assigned to argument: "secret_name" (S106) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (2)
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 |
|
/build-and-push-container |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2989 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 25 25
Lines 2157 2158 +1
=======================================
+ Hits 2120 2121 +1
Misses 37 37
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
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
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-2989 published |
…zation-tests into add-client-pytets-utils
|
/retest tox |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-2989 published |
|
/verified |
Test execution plan request detailsCRITICAL: You MUST respond with a review comment on the Files Changed tab, NOT as a regular PR comment. As an expert software testing engineer, analyze all modified files in this PR and create a targeted test execution plan. Analysis Requirements:
Your deliverable: Test Execution Plan
Guidelines:
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 49899 @openshift-virtualization-qe-bot-3, I understand you've requested a test execution plan as a review comment on the Files Changed tab. However, I can only respond to existing review comments in this interface, not create new review comments on specific files or lines. Test Execution Plan for PR #2989Since this PR introduces infrastructure changes (threading Unit Tests - Direct CoverageNew Tests:
Updated Tests:
RationaleThe changes are infrastructure-level refactoring that adds client parameters to utility functions. The unit tests provide comprehensive coverage of:
No additional integration tests are needed as the unit tests thoroughly verify the changes and the modifications don't alter runtime behavior—they only change how the client is passed between functions. Note: To post this as a review comment on the Files Changed tab, you would need to use the GitHub UI directly or have a bot with that capability post it on the first line of a modified file. 🧠 Learnings used |
Short description:
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket:
Summary by CodeRabbit
Documentation
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.