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

fix: task-topology plugin cannot handle the tasks whose name contains - #2940

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

loheagn
Copy link

@loheagn loheagn commented Jun 27, 2023

fix #2939

@volcano-sh-bot
Copy link
Contributor

Welcome @loheagn! It looks like this is your first PR to volcano-sh/volcano 🎉

@volcano-sh-bot volcano-sh-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 27, 2023
@hwdef
Copy link
Member

hwdef commented Jun 27, 2023

@wangyang0616
Please help me trigger the CI of this PR

@lowang-bh
Copy link
Member

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:

func MakePodName(jobName string, taskName string, index int) string {

i := len(task.Name) - 1
for ; task.Name[i] != '-'; i-- {
}
tmpTaskName := strings.TrimPrefix(task.Name[:i], jobNamePrefix)
Copy link
Member

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.

Copy link
Author

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.

@stale
Copy link

stale bot commented Sep 16, 2023

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.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 16, 2023
@stale stale bot closed this Oct 15, 2023
@loheagn
Copy link
Author

loheagn commented Oct 15, 2023

@lowang-bh Hi, could help to reopen this pr? I forget to update this pr for a long time......

@lowang-bh
Copy link
Member

/reopen

@volcano-sh-bot
Copy link
Contributor

@lowang-bh: Reopened this PR.

In response to this:

/reopen

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.

@stale stale bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 23, 2023
@Monokaix
Copy link
Member

@loheagn Hi, are you still work on this?

@loheagn
Copy link
Author

loheagn commented Jan 29, 2024

@loheagn Hi, are you still work on this?

@Monokaix Yes, but I dismiss the reopen event.....

I'll update the code recently.

@loheagn loheagn force-pushed the master branch 2 times, most recently from 2dc0412 to 5238279 Compare February 6, 2024 02:18
@loheagn
Copy link
Author

loheagn commented Feb 6, 2024

@Monokaix Hi, I fixed the CI and this pr is ready for review

… `-`

Signed-off-by: linan.loheagn3 <linan.loheagn3@bytedance.com>
@Monokaix
Copy link
Member

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 21, 2024
@loheagn
Copy link
Author

loheagn commented Feb 28, 2024

hello, @Monokaix could we move this PR forward?

Copy link
Member

@william-wang william-wang left a comment

Choose a reason for hiding this comment

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

/approve

@volcano-sh-bot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 8, 2024
@volcano-sh-bot volcano-sh-bot merged commit d996dde into volcano-sh:master Mar 8, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The task-topology plugin cannot handle the tasks whose name contains -
6 participants