-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: task-topology plugin cannot handle the tasks whose name contains -
#2940
Conversation
Welcome @loheagn! It looks like this is your first PR to volcano-sh/volcano 🎉 |
@wangyang0616 |
how about add some comments of the task name format in following codes. The task's name is from pod name which generate by job controlller. i := len(task.Name) - 1
for ; task.Name[i] != '-'; i-- {
}
tmpTaskName := strings.TrimPrefix(task.Name[:i], jobNamePrefix) FYI:
|
i := len(task.Name) - 1 | ||
for ; task.Name[i] != '-'; i-- { | ||
} | ||
tmpTaskName := strings.TrimPrefix(task.Name[:i], jobNamePrefix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func MakePodName(jobName string, taskName string, index int) string { |
how about add some comments of the task name format.The task's name is from pod name which generate by job controlller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks sensible. I'll update it.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@lowang-bh Hi, could help to reopen this pr? I forget to update this pr for a long time...... |
/reopen |
@lowang-bh: Reopened this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@loheagn Hi, are you still work on this? |
2dc0412
to
5238279
Compare
@Monokaix Hi, I fixed the CI and this pr is ready for review |
… `-` Signed-off-by: linan.loheagn3 <linan.loheagn3@bytedance.com>
/lgtm |
hello, @Monokaix could we move this PR forward? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang 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 |
fix #2939