Repository navigation
fix(ci): defer MLflow provisioning and add CRD wait helpers - #1527
Conversation
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
e7da352 to
52ed4e0
Compare
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests PassedCommit: The If you push new commits, the label will be removed and you'll need to comment |
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
058a961 to
99c9ae1
Compare
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
|
/run-e2e |
E2E HyperShift Tests PassedCommit: The If you push new commits, the label will be removed and you'll need to comment |
Root cause: setup-kagenti.sh Step 2.5 checked for RHOAI CRDs before Step 3 (kagenti-deps) installed the RHOAI operator. MLflow was always silently skipped on fresh CI clusters. Multiple additional CI failures were discovered and fixed during iteration. setup-kagenti.sh: - Extract reusable _wait_for_crd() with configurable timeout and periodic OLM InstallPlan auto-approval - Move MLflow provisioning from Step 2.5 to Step 3d (after kagenti-deps): wait for RHOAI operator deployment readiness, create DSC with only CRD-schema fields then patch mlflowoperator to Managed (webhook injects it), wait for MLflow CRD, create CR, fall back to in-cluster endpoint when gateway URL missing - Wait for MLflow RBAC ClusterRole before granting OTEL access - Make MLflow Service wait non-fatal (return 1, not exit 1) - Adopt cert-manager resources for Helm before MLflow OTEL upgrade - Enable KServe (Managed) in DSC for RHOAI integration tests - Make PSA labels conditional on openshift in agent-namespaces.yaml CI scripts: - Re-enable RHOAI/MLflow in ocp_ci_values.yaml - Fix jq parse error on SPIRE OIDC HCL config (55-setup-spiffe-idp.sh) - Add 3-attempt build retry for DNS flakes (37-build-platform-images.sh, 71-build-weather-tool.sh) - Sync keycloak-admin-secret to agent namespace for AuthBridge sidecar (91-run-authbridge-weather-e2e.sh) - Port-forward MLflow from redhat-ods-applications on RHOAI (85-start-port-forward.sh) - Remove shellcheck SC2168 (local outside function) E2E tests: - Accept 401 (API-key auth) in MLflow version/health/connectivity tests - Follow up 401 with authenticated Keycloak token request - Check redhat-ods-applications for MLflow pod on OpenShift - Skip MLflow auth/trace tests gracefully when MLflow unavailable - Verify MLflow connectivity in setup_mlflow_client before proceeding Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
7d6e022 to
2f8d4e8
Compare
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
CodeQL flagged verify=False as a high-severity issue. Use /health (unprotected by mlflow-oidc-auth) with default SSL verification instead of /version with verify=False. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
fix(ci): defer MLflow provisioning and add CRD wait helpers (cherry picked from commit b18c157)
…aits-v2 fix(ci): defer MLflow provisioning and add CRD wait helpers Signed-off-by: Eran Raichstein <[email protected]>
Summary
Fixes HyperShift E2E CI failures caused by ordering issues in
setup-kagenti.shwhere MLflow provisioning (Step 2.5) ran beforekagenti-deps(Step 3) installed the RHOAI operator Subscription._wait_for_crd()helper with configurable timeout and periodic OLM InstallPlan auto-approval_auto_approve_installplans()for operator namespaces (OLM batching workaround)_apply_operand_crs()to use_wait_for_crd()for Keycloak, ZTWIM (SPIRE), and Sail CRDspod-security.kubernetes.io) conditional onopenshiftinagent-namespaces.yamlHelm templateocp_ci_values.yamlRoot Cause
setup-kagenti.shStep 2.5 checked for theDataScienceClusterCRD before Step 3 (kagenti-deps) created the RHOAI operator OLM Subscription. On fresh HyperShift CI clusters, this always silently skipped MLflow provisioning because the CRD didn't exist yet.Test plan
/run-e2e— HyperShift E2E passes with deferred MLflow provisioning🤖 Generated with Claude Code