Use wait_for_pods_by_labels() instead of direct api call#646
Use wait_for_pods_by_labels() instead of direct api call#646dbasunag merged 1 commit intoopendatahub-io:mainfrom
Conversation
📝 WalkthroughWalkthroughReplaced manual Kubernetes Pod discovery in the model_registry_pod pytest fixture with a call to wait_for_pods_by_labels, enforcing an exact count of one and returning the first pod. Removed explicit Pod.get usage, direct length assertion, and manual indexing. Error handling now relies on wait_for_pods_by_labels. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-07-17T15:42:23.880ZApplied to files:
📚 Learning: 2025-07-17T15:42:26.275ZApplied to files:
📚 Learning: 2025-07-30T14:15:25.605ZApplied to files:
📚 Learning: 2025-07-17T15:42:04.167ZApplied to files:
📚 Learning: 2025-08-08T16:00:51.421ZApplied to files:
🧬 Code graph analysis (1)tests/model_registry/conftest.py (1)
🔇 Additional comments (1)
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 |
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/wip', '/cherry-pick', '/verified', '/lgtm', '/hold', '/build-push-pr-image'} |
|
/build-push-pr-image |
|
Status of building tag pr-646: success. |
|
/verified |
|
Status of building tag latest: success. |
Description
How Has This Been Tested?
Merge criteria:
Summary by CodeRabbit