Skip to content

fix: correct typos in scheduler comments#5328

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:masterfrom
pmady:fix/scheduler-typos
May 21, 2026
Merged

fix: correct typos in scheduler comments#5328
volcano-sh-bot merged 1 commit into
volcano-sh:masterfrom
pmady:fix/scheduler-typos

Conversation

@pmady
Copy link
Copy Markdown
Contributor

@pmady pmady commented May 19, 2026

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Fixes a few typos I noticed while reading through the scheduler code:

  • seperateseparate in deviceshare and agentscheduler cache
  • resourc-exporterresource-exporter in cpu_mng.go
  • schduledscheduled in vnpu type.go

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
Comment-only changes, no logic changes.

Does this PR introduce a user-facing change?
NONE

Copilot AI review requested due to automatic review settings May 19, 2026 21:30
@volcano-sh-bot volcano-sh-bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 19, 2026
@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects typos in scheduler-related comments without changing runtime behavior.

Changes:

  • Fixed spelling in comments for CPU manager, deviceshare, vnpu, and agentscheduler cache code.
  • Keeps the changes limited to comment-only cleanup as described.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/scheduler/plugins/numaaware/provider/cpumanager/cpu_mng.go Corrects resourc-exporter to resource-exporter in a comment.
pkg/scheduler/plugins/deviceshare/deviceshare.go Corrects seperate to separate in a TODO comment.
pkg/scheduler/api/devices/ascend/mindcluster/ascend310p/vnpu/type.go Corrects schduled to scheduled in a status comment.
pkg/agentscheduler/cache/cache.go Corrects seperate to separate in cache-related comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request corrects several typos in code comments across multiple files, specifically fixing misspellings of 'separate', 'scheduled', and 'resource-exporter'. Review feedback suggests additional refinements to the grammar and capitalization in these comments to enhance clarity and maintain consistency with naming conventions.

NodedNodeHealtyStatuskey = "nodedNodeHealtyStatus"
// NodeSubHealthy means there is some fault on the node which is reported by nodeD, but will not immediately
// make node unhealthy, this status will prevent new task schduled on this node and reschedule will not consider
// make node unhealthy, this status will prevent new task scheduled on this node and reschedule will not consider
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The grammar in this comment could be improved for better clarity and professionalism. Using the plural tasks and the gerund rescheduling makes the sentence more natural.

Suggested change
// make node unhealthy, this status will prevent new task scheduled on this node and reschedule will not consider
// make node unhealthy; this status will prevent new tasks from being scheduled on this node, and rescheduling will not consider


// getPhysicalCoresNum return the number of physical cores.
// The resourc-exporter reports core ids only unique in each socket,
// The resource-exporter reports core ids only unique in each socket,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Capitalizing IDs is more consistent with the naming conventions used in the surrounding code (e.g., CoreID and SocketID in the function below). The phrasing is also slightly adjusted for better clarity.

Suggested change
// The resource-exporter reports core ids only unique in each socket,
// The resource-exporter reports core IDs that are only unique within each socket,

Signed-off-by: pmady <pavan4devops@gmail.com>
@pmady pmady force-pushed the fix/scheduler-typos branch from e785081 to bdc686e Compare May 20, 2026 03:31
@archlitchi
Copy link
Copy Markdown
Contributor

/ok-to-test

@volcano-sh-bot volcano-sh-bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 20, 2026
@pmady
Copy link
Copy Markdown
Contributor Author

pmady commented May 20, 2026

e2e-sequence failure is unrelated to this PR, the cleanup hook in queue_job_status.go:117 got a 404 trying to delete a vcjob that was already gone. classic flaky cleanup race. all 32 other tests passed.

could you re-run the failed job? thanks @archlitchi

@JesseStutler
Copy link
Copy Markdown
Member

@pmady Totally fine, merge now.
/approve
/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label May 21, 2026
@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JesseStutler

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

The pull request process is described here

Details 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 May 21, 2026
@volcano-sh-bot volcano-sh-bot merged commit cfad2e1 into volcano-sh:master May 21, 2026
26 of 27 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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants