Skip to content

test(e2e): poll MLflow status after retry run failure#13468

Merged
google-oss-prow[bot] merged 1 commit into
kubeflow:mlflow-integrationfrom
VaniHaripriya:mlflow-retryrun-test-fix
Jun 1, 2026
Merged

test(e2e): poll MLflow status after retry run failure#13468
google-oss-prow[bot] merged 1 commit into
kubeflow:mlflow-integrationfrom
VaniHaripriya:mlflow-retryrun-test-fix

Conversation

@VaniHaripriya
Copy link
Copy Markdown
Contributor

@VaniHaripriya VaniHaripriya commented Jun 1, 2026

Description of your changes:

This PR fixes the intermittent failures observed in MLflow retry run Integration test. Here is a recent test failure.

Fixes the race in the MLflow retry E2E test where the test asserted MLflow parent run status immediately after KFP reached a terminal state. This PR adds WaitForMLflowRunStatus, and uses it in the retry test instead of VerifyMLflowRunStatus.

Checklist:

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>
@google-oss-prow
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@VaniHaripriya
Copy link
Copy Markdown
Contributor Author

/retest

@VaniHaripriya VaniHaripriya marked this pull request as ready for review June 1, 2026 19:36
@google-oss-prow google-oss-prow Bot requested review from HumairAK and hbelmiro June 1, 2026 19:36
func WaitForMLflowRunStatus(endpoint, runID, experimentID, expectedStatus string, timeout *time.Duration) error {
ginkgo.GinkgoHelper()
logger.Log("Waiting for MLflow run %s to reach status %s", runID, expectedStatus)
maxTimeToWait := time.Duration(300)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't 5min too long?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will create follow PR to update the change the default from 300 to 120

Copy link
Copy Markdown
Collaborator

@mprahl mprahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@google-oss-prow
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mprahl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


// Verify the MLflow parent run reflects the retry
err = e2e_utils.VerifyMLflowRunStatus(mlflowEndpoint, rootRunID, mlflowExperimentID, "FAILED")
err = e2e_utils.WaitForMLflowRunStatus(mlflowEndpoint, rootRunID, mlflowExperimentID, "FAILED", &timeout)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

540sec is too long just to wait for mlflow run status to change

@google-oss-prow google-oss-prow Bot merged commit 763bfe9 into kubeflow:mlflow-integration Jun 1, 2026
161 of 165 checks passed
mprahl pushed a commit that referenced this pull request Jun 1, 2026
Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>
google-oss-prow Bot pushed a commit that referenced this pull request Jun 1, 2026
* feat(backend): Add plugin input/output fields to RecurringRun and Run protobufs (#12919)

Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>

* feat(backend): Add pipeline run lifecycle hooks

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>

* feat(backend) integrate MLflow lifecycle hooks across the driver and launcher (#13052)

Signed-off-by: Alyssa Goins <80764587+alyssacgoins@users.noreply.github.com>

* chore(backend): Fix MLflow tags,nested run status update (#13307)

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>

* test(backend): Add MLFlow Integrations tests with KFP (#13195)

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>

* fix(backend): Address CI failures after rebase

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>

* test(e2e): poll MLflow status after retry run failure (#13468)

Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>

---------

Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Signed-off-by: Vani Haripriya Mudadla <vmudadla@redhat.com>
Signed-off-by: Alyssa Goins <80764587+alyssacgoins@users.noreply.github.com>
Co-authored-by: Helber Belmiro <helber.belmiro@gmail.com>
Co-authored-by: Alyssa Goins <80764587+alyssacgoins@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants