Skip to content

Surface Volcano gang scheduling status - #2632

Merged
varungup90 merged 2 commits into
vllm-project:mainfrom
googs1025:issue-2631-volcano-gang-integration
Aug 31, 2026
Merged

varungup90 merged 2 commits into
vllm-project:mainfrom
googs1025:issue-2631-volcano-gang-integration

Conversation

@googs1025

@googs1025 googs1025 commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Surface Volcano PodGroup sync and gang scheduling error status on RoleSet, and aggregate those conditions onto StormService.
  • Default generated Volcano task spec metadata to the RoleSet role name while preserving user-provided scheduler/task-spec values.
  • Add a PD-disaggregated Volcano gang scheduling sample using existing minTaskMember semantics.

Test Plan

  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/roleset -run 'Test(RenderStormServicePodVolcanoScheduler|RenderStormServicePod_WithRoleSetVolcanoPodGroup|CreatePodSetForRole_VolcanoTaskSpec|SetVolcanoGangConditions)$' - 13 passed
  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/podset -run 'TestCreatePodFromTemplate_VolcanoSchedulingMetadata$' - 1 passed
  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/stormservice -run 'TestSetGangSchedulingConditions$' - 6 passed
  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/roleset ./pkg/controller/podset ./pkg/controller/stormservice -run '^$' - compile check passed
  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./api/orchestration/v1alpha1 -run '^$' - compile check passed
  • kubectl apply --dry-run=client -f samples/disaggregation/vllm/volcano-gang-pd.yaml - passed
  • git diff --check - passed

Closes #2631

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

Copy link
Copy Markdown
Contributor

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 introduces support for Volcano gang scheduling across RoleSets and StormServices. It adds new status conditions (PodGroupSynced, GangSchedulingConfigured, and GangSchedulingError) to track the reconciliation and health of Volcano PodGroups. It also ensures that Pods and PodSets are configured with the appropriate Volcano scheduler name and task specifications. The review feedback highlights a potential gap in the StormService status aggregation logic, where incomplete PodGroup syncs might be omitted from the status if the underlying RoleSets are still reconciling, and provides a code suggestion to unify and improve this tracking.

@googs1025
googs1025 force-pushed the issue-2631-volcano-gang-integration branch from 5e78932 to 9d6287e Compare August 28, 2026 13:23
@googs1025
googs1025 requested a lite review from Copilot August 28, 2026 13:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

This PR adds Volcano gang scheduling status reporting at the RoleSet level and aggregates it onto StormService status, while also defaulting Volcano task-spec metadata to role names (without overriding user-specified values) and providing a PD disaggregation sample manifest.

Changes:

  • Add RoleSet Volcano PodGroup sync + gang scheduling error conditions and surface/aggregate them on StormService.
  • Default Volcano volcano.sh/task-spec label/annotation on generated Pods/PodSets to the role name while preserving explicit user metadata.
  • Add a sample StormService manifest demonstrating PD-disaggregated Volcano gang scheduling with minTaskMember.

Reviewed changes

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

Show a summary per file
File Description
samples/disaggregation/vllm/volcano-gang-pd.yaml Adds a PD disaggregation example using Volcano gang scheduling fields.
pkg/controller/stormservice/sync.go Hooks gang scheduling condition aggregation into StormService status updates.
pkg/controller/stormservice/gang_status.go Implements StormService condition aggregation from RoleSet gang conditions.
pkg/controller/stormservice/gang_status_test.go Adds unit tests for aggregation behavior.
pkg/controller/roleset/utils.go Defaults Volcano task-spec metadata on rendered Pods when missing.
pkg/controller/roleset/utils_test.go Extends tests to verify task-spec defaulting/preservation on Pods/PodSets.
pkg/controller/roleset/roleset_controller.go Captures PodGroup sync errors to feed into status calculation.
pkg/controller/roleset/sync.go Extends status calculation to set Volcano gang scheduling conditions.
pkg/controller/roleset/podset_rollsyncer.go Defaults Volcano task-spec metadata on generated PodSets when missing.
pkg/controller/roleset/gang_status.go Adds RoleSet-level Volcano PodGroup health/sync condition reporting.
pkg/controller/roleset/gang_status_test.go Adds unit tests for RoleSet Volcano gang scheduling condition reporting.
pkg/controller/podset/podset_controller.go Ensures annotations map exists; defaults scheduler to Volcano when PodGroup metadata present.
pkg/controller/podset/podset_controller_test.go Adds test validating Volcano scheduling metadata propagation to Pods.
pkg/controller/constants/stormservice.go Introduces VolcanoTaskSpecKey constant.
api/orchestration/v1alpha1/stormservice_types.go Adds StormService condition types for aggregated gang scheduling state.
api/orchestration/v1alpha1/roleset_types.go Adds RoleSet condition types for PodGroup sync and gang scheduling errors.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/controller/roleset/gang_status.go Resolved
Comment thread pkg/controller/roleset/utils.go Resolved
@googs1025

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-29T02:40:20.121658Z 9d6287e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d6287e331

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/controller/roleset/gang_status.go Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Comment thread pkg/controller/roleset/gang_status.go Resolved
@googs1025
googs1025 force-pushed the issue-2631-volcano-gang-integration branch 2 times, most recently from 967a9ce to 8998243 Compare August 29, 2026 02:54
@googs1025
googs1025 force-pushed the issue-2631-volcano-gang-integration branch from 8998243 to e5a0224 Compare August 29, 2026 03:06
@varungup90

varungup90 commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator

Correctness bugs (3, all CONFIRMED):

  1. sync.go:412 — Status conditions are wiped right before the new gang-scheduling conditions are set, so LastTransitionTime resets every reconcile instead of only on real transitions, forcing needless status writes.
  2. utils.go:248 — ensureVolcanoTaskSpec skips writing the task-spec annotation when only the label is present, but Volcano reads the annotation — silently breaking gang scheduling. The PR’s own test locks in the broken behavior.
  3. gang_status.go:38 — ConditionUnknown at the RoleSet level aggregates to “healthy” at the StormService level, inconsistent with the sibling PodGroupSynced aggregation (currently dead code in production, but a real logic bug).

Design concern (1, PLAUSIBLE):
4. roleset_controller.go:172 — Relies on 1-minute polling instead of an event-driven watch, costing up to 60s detection latency plus permanent reconcile churn. Corrected from my earlier framing: there’s no existing Volcano PodGroup watch to “restore” — the commented-out watch elsewhere is for Godel’s PodGroup type, and the manager registers no scheme for Volcano’s CRD, so a real watch would need new plumbing, not a one-line fix.

Simplification (1, CONFIRMED):
5. gang_status.go:78 — Hand-rolled set-difference/sort logic duplicates k8s.io/apimachinery’s sets.String, already used elsewhere in this codebase.

@googs1025

googs1025 commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Pushed 04a972f addressing the review items from #2632 (comment):

  • Preserved StormService gang-scheduling conditions while updating Ready/Progressing, so gang condition LastTransitionTime is not reset on every reconcile.
  • Fixed Volcano task-spec injection so a missing annotation is written even when the label already exists, while preserving explicit existing values.
  • Aggregated RoleSet GangSchedulingError=Unknown to StormService GangSchedulingError=Unknown instead of treating it as healthy.
  • Replaced the hand-rolled roleSet name set-difference/sort logic with k8s.io/apimachinery/pkg/util/sets.

Verification run:

  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/roleset -run 'TestRenderStormServicePodVolcanoScheduler|TestSetVolcanoGangConditions' -count=1
  • GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/stormservice -run 'TestSetGangSchedulingConditions|TestSetStormServiceAvailabilityConditionPreservesGangConditionTransitionTime' -count=1
  • git diff --check

I did not include the event-driven Volcano PodGroup watch design concern in this commit because it requires additional scheme/watch plumbing beyond the correctness fixes.

@googs1025
googs1025 force-pushed the issue-2631-volcano-gang-integration branch from f71f6fb to 04a972f Compare August 30, 2026 09:40
@varungup90
varungup90 merged commit d3e7ac3 into vllm-project:main Aug 31, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve StormService Volcano gang scheduling integration

3 participants