kubeflow/sdk

Move shared Spark and Trainer test helpers to kubeflow.common

開放

#700 建立於 2026年7月31日

 (5 則留言) (1 個反應) (1 位負責人)Python (196 個分叉)auto 404
good first issuehelp wanted

倉庫指標

星標
 (124 顆星)
PR 合併指標
 (平均合併 12天 14小時) (30 天內合併 31 個 PR)

描述

Summary

The Spark and Trainer SDKs currently maintain duplicate test utilities, including TestCase, SUCCESS, FAILED, and related helper functionality.

To reduce duplication and keep testing utilities consistent across SDK components, these common helpers should be moved to a shared location under kubeflow.common.

Motivation

Currently both components provide nearly identical implementations:

  • kubeflow.spark.test.common
  • kubeflow.trainer.test.common

Maintaining duplicate implementations increases maintenance overhead and can lead to inconsistencies over time.

Proposed Changes

  • Create a shared test helper module under kubeflow.common.
  • Move the common testing utilities into the shared module.
  • Update Spark tests to import the shared implementation.
  • Update Trainer tests to import the shared implementation.
  • Remove duplicate implementations where appropriate.

Acceptance Criteria

  • Shared test helpers are available under kubeflow.common.
  • Spark and Trainer tests use the shared implementation.
  • Existing test behavior remains unchanged.
  • All affected test suites continue to pass.

ref : https://github.com/kubeflow/sdk/pull/685#discussion_r3683712958

貢獻者指南