Repository navigation
Surface Volcano gang scheduling status - #2632
Conversation
There was a problem hiding this comment.
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.
5e78932 to
9d6287e
Compare
There was a problem hiding this comment.
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-speclabel/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.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
967a9ce to
8998243
Compare
Signed-off-by: CYJiang <[email protected]>
8998243 to
e5a0224
Compare
|
Correctness bugs (3, all CONFIRMED):
Design concern (1, PLAUSIBLE): Simplification (1, CONFIRMED): |
|
Pushed
Verification run:
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. |
Signed-off-by: CYJiang <[email protected]>
f71f6fb to
04a972f
Compare
Summary
Test Plan
GOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/roleset -run 'Test(RenderStormServicePodVolcanoScheduler|RenderStormServicePod_WithRoleSetVolcanoPodGroup|CreatePodSetForRole_VolcanoTaskSpec|SetVolcanoGangConditions)$'- 13 passedGOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/podset -run 'TestCreatePodFromTemplate_VolcanoSchedulingMetadata$'- 1 passedGOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/stormservice -run 'TestSetGangSchedulingConditions$'- 6 passedGOCACHE=/private/tmp/aibrix-go-build-cache go test ./pkg/controller/roleset ./pkg/controller/podset ./pkg/controller/stormservice -run '^$'- compile check passedGOCACHE=/private/tmp/aibrix-go-build-cache go test ./api/orchestration/v1alpha1 -run '^$'- compile check passedkubectl apply --dry-run=client -f samples/disaggregation/vllm/volcano-gang-pd.yaml- passedgit diff --check- passedCloses #2631