chore(trainer): Align list_runtimes docstring with namespace-scoped TrainingRuntime behavior#305
chore(trainer): Align list_runtimes docstring with namespace-scoped TrainingRuntime behavior#305shaikmoeed wants to merge 2 commits intokubeflow:mainfrom
Conversation
Signed-off-by: Moeed Shaik <shaikmoeed@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
🎉 Welcome to the Kubeflow SDK! 🎉 Thanks for opening your first PR! We're happy to have you as part of our community 🚀 Here's what happens next:
Join the community:
Feel free to ask questions in the comments if you need any help or clarification! |
|
@andreyvelich, can you please review this following up PR? |
Pull Request Test Coverage Report for Build 22145544685Details
💛 - Coveralls |
Signed-off-by: Moeed Shaik <shaikmoeed@gmail.com>
There was a problem hiding this comment.
Pull request overview
Updates the SDK’s TrainerClient.list_runtimes() docstring to reflect support for namespace-scoped TrainingRuntime resources (in addition to cluster-scoped runtimes) and the “prefer namespaced on name collisions” behavior.
Changes:
- Revise
list_runtimesdocstring to mention namespace-scoped + cluster-scoped runtime listing. - Document duplicate-name resolution preference for namespace-scoped runtimes.
| """List of the available runtimes, preferring namespaced over cluster-scoped for duplicates. | ||
|
|
||
| Returns: | ||
| A list of available training runtimes. If no runtimes exist, an empty list is returned. | ||
| A list of training runtimes from both namespace-scoped and | ||
| cluster-scoped resources. If duplicates exist, the | ||
| namespace-scoped runtime is preferred. Returns an empty list | ||
| if no runtimes are found. |
There was a problem hiding this comment.
The updated list_runtimes docstring describes Kubernetes-specific behavior (namespace-scoped vs cluster-scoped runtime resources and duplicate resolution), but TrainerClient also supports LocalProcess and Container backends whose list_runtimes() implementations do not have this notion; please qualify the docstring (e.g., "When using the Kubernetes backend...") or reword it to be backend-agnostic so it remains accurate for all backends.
|
@andreyvelich CI failures are mostly due to timeouts. Possible to re-run them, or is it a whitespace change? |
What this PR does / why we need it:
Update the client-facing
list_runtimesAPI docstring to reflect current behavior i.e., including support for namespace-scoped TrainingRuntime resources.Fixes #88 #130
Checklist: