Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Refine name and signature of 2 replicaName functions #1660

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

houz42
Copy link
Contributor

@houz42 houz42 commented Sep 14, 2022

What this PR does / why we need it:

2 tiny functions in pytorch and xgboost controllers are renamed and redesigned. They both

  1. do the same thing: generating names for each replica of a job
  2. share same parameters: the job name, the type of the replica, an index number

So, they are renamed to replicaName, and redesigned to use proper types for parameters

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #

Checklist:

  • Docs included if any changes are user facing

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm

/cc @kubeflow/wg-training-leads

Thanks for your contribution! 🎉 👍

@gaocegege
Copy link
Member

/ok-to-test

@coveralls
Copy link

coveralls commented Sep 14, 2022

Pull Request Test Coverage Report for Build 3051346530

  • 5 of 9 (55.56%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 39.785%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller.v1/xgboost/xgboost.go 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/mpi/mpijob_controller.go 2 78.03%
Totals Coverage Status
Change from base Build 2973439690: -0.03%
Covered Lines: 2329
Relevant Lines: 5854

💛 - Coveralls

@houz42
Copy link
Contributor Author

houz42 commented Sep 14, 2022

/retest

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: houz42, terrytangyuan

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

The pull request process is described here

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

@google-oss-prow google-oss-prow bot merged commit 2728b25 into kubeflow:master Sep 14, 2022
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.

None yet

4 participants