Skip to content

chore: fix marking of async upload job e2e and integration tests#2604

Merged
google-oss-prow[bot] merged 3 commits intokubeflow:mainfrom
dbasunag:async_tests
Apr 17, 2026
Merged

chore: fix marking of async upload job e2e and integration tests#2604
google-oss-prow[bot] merged 3 commits intokubeflow:mainfrom
dbasunag:async_tests

Conversation

@dbasunag
Copy link
Copy Markdown
Contributor

  • fix marking of async upload job e2e and integration tests
  • add pytest-html, since running the tests against live cluster would require test report generation
  • add support in e2e test to be able to run them against live cluster

Description

How Has This Been Tested?

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>
Copy link
Copy Markdown
Member

@jonburdo jonburdo left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
/hold

A couple comments that I think are worth address. If we're doing more work on these right away, they could be fixed in a follow-up, so feel free to merge as-is.

Feel free to unhold if you are ready to merge

Comment thread jobs/async-upload/tests/integration/test_integration_async_upload.py Outdated
return os.getenv("AUTH_TOKEN", None) # type: ignore[arg-type]

@pytest.fixture(scope="session")
def verify_ssl() -> bool:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This fixture is unused. If you want to avoid adding args to every function that needs this, you could just make this a function and call it where needed instead of inline:

    verify_env = os.environ.get("VERIFY_SSL")
    verify = verify_env.lower() == "true" if verify_env is not None else None

Also it's return type is bool but it can return None

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.

Since using it in only one place under jobs/async-upload, used it directly there without creating a utility. If this area adds more tests, then would definitely consider creating a utility function.

Comment thread jobs/async-upload/tests/integration/test_integration_async_upload.py Outdated
…oad.py

Co-authored-by: Jon Burdo <jon@jonburdo.com>
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>
@google-oss-prow google-oss-prow Bot added size/L and removed lgtm labels Apr 17, 2026
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>
Copy link
Copy Markdown
Member

@jonburdo jonburdo left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Looks great!

Comment on lines -237 to +240
job_name: str, namespace: str, k8s_batch_client: kubernetes.client.BatchV1Api, timeout_seconds: int = 60
job_name: str, namespace: str, k8s_batch_client: kubernetes.client.BatchV1Api, timeout_seconds: int = 120
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good call! Should help with intermittent failures due to timeout

@google-oss-prow google-oss-prow Bot added the lgtm label Apr 17, 2026
@google-oss-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jonburdo

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

@jonburdo
Copy link
Copy Markdown
Member

/unhold

@google-oss-prow google-oss-prow Bot merged commit 026f423 into kubeflow:main Apr 17, 2026
36 checks passed
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Apr 21, 2026
…eflow#2604)

* chore: fix marking of async upload job e2e and integration tests

Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>

* Update jobs/async-upload/tests/integration/test_integration_async_upload.py

Co-authored-by: Jon Burdo <jon@jonburdo.com>
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>

* fix: address review comments

Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>

---------

Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>
Co-authored-by: Jon Burdo <jon@jonburdo.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.

2 participants