Add wait for minio pod and update images to multi-arch#643
Add wait for minio pod and update images to multi-arch#643lugi0 merged 2 commits intoopendatahub-io:mainfrom
Conversation
📝 WalkthroughWalkthroughWait for MinIO pod to reach Pod.Status.RUNNING in test fixture, switch a test parametrization to use MODEL_REGISTRY_MINIO_CONFIG, and refactor MinIO-related constants while updating the OCI registry image reference. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 (3)
🧰 Additional context used🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-08-08T15:59:16.170ZApplied to files:
📚 Learning: 2025-08-08T15:58:03.524ZApplied to files:
📚 Learning: 2025-08-11T07:34:44.352ZApplied to files:
🧬 Code graph analysis (1)tests/model_registry/async_job/test_async_upload_e2e.py (1)
🪛 Ruff (0.13.1)utilities/constants.py294-301: Mutable class attributes should be annotated with (RUF012) 303-306: Mutable class attributes should be annotated with (RUF012) 334-338: Mutable class attributes should be annotated with (RUF012) 🔇 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 |
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/hold', '/wip', '/cherry-pick', '/verified', '/lgtm', '/build-push-pr-image'} |
|
/build-push-pr-image |
|
Status of building tag pr-643: success. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tests/model_registry/async_job/test_async_upload_e2e.py (1)
135-135: Update the completion log messageWe now run with
MODEL_REGISTRY_MINIO_CONFIG, but the log still claims we’re using the KSERVE image. Please align the message with the new config so the test output stays accurate.- LOGGER.info("Async upload job test with KSERVE_MINIO_IMAGE: PASSED") + LOGGER.info("Async upload job test with MODEL_REGISTRY_MINIO_CONFIG: PASSED")
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
tests/conftest.py(1 hunks)tests/model_registry/async_job/test_async_upload_e2e.py(1 hunks)utilities/constants.py(4 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-08T15:59:16.170Z
Learnt from: lugi0
PR: opendatahub-io/opendatahub-tests#487
File: tests/model_registry/async_job/test_async_upload_e2e.py:344-356
Timestamp: 2025-08-08T15:59:16.170Z
Learning: In opendatahub-io/opendatahub-tests, tests/model_registry/async_job/test_async_upload_e2e.py’s test_end_to_end_async_upload_job intentionally expects an OCI image index (application/vnd.oci.image.index.v1+json) from pull_manifest_from_oci_registry and asserts on the "manifests" array. This format has been verified by the author (lugi0); no change to Accept headers or assertions is required.
Applied to files:
tests/model_registry/async_job/test_async_upload_e2e.py
📚 Learning: 2025-08-08T15:58:03.524Z
Learnt from: lugi0
PR: opendatahub-io/opendatahub-tests#487
File: tests/model_registry/async_job/constants.py:23-31
Timestamp: 2025-08-08T15:58:03.524Z
Learning: In opendatahub-io/opendatahub-tests, for tests under tests/model_registry/async_job (e.g., constants.py and related fixtures), runs start from a clean, known Model Registry state. Therefore, using static MODEL_ID, MODEL_VERSION_ID, and MODEL_ARTIFACT_ID values in MODEL_SYNC_CONFIG is intentional and acceptable; dynamic ID injection is not required for these async job tests (per guidance from user lugi0).
Applied to files:
tests/model_registry/async_job/test_async_upload_e2e.py
🧬 Code graph analysis (1)
tests/model_registry/async_job/test_async_upload_e2e.py (1)
utilities/constants.py (3)
MinIo(273-342)PodConfig(256-263)PodConfig(289-338)
🪛 Ruff (0.13.1)
utilities/constants.py
294-301: Mutable class attributes should be annotated with typing.ClassVar
(RUF012)
303-306: Mutable class attributes should be annotated with typing.ClassVar
(RUF012)
334-338: Mutable class attributes should be annotated with typing.ClassVar
(RUF012)
🔇 Additional comments (1)
tests/conftest.py (1)
520-521: Explicit MinIO readiness wait looks goodAdding the
wait_for_status(Pod.Status.RUNNING)call ensures downstream fixtures don’t race against pod startup. 👍
758917c to
0006a88
Compare
|
/build-push-pr-image |
|
Status of building tag pr-643: success. |
|
/lgtm |
|
Tested through Jenkins and works fine, merging |
|
Status of building tag latest: success. |
…o#643) Co-authored-by: Luca Giorgi <lgiorgi@redhat.com>
…o#643) Co-authored-by: Luca Giorgi <lgiorgi@redhat.com>
Description
How Has This Been Tested?
Merge criteria:
Summary by CodeRabbit
New Features
Chores
Refactor
Tests