-
Couldn't load subscription status.
- Fork 1.2k
Description
Description
When running unit tests for the Volcano scheduler’s capacity plugin, pods are not being bound even though the plugin’s allocatable logic returns true and all resource checks pass. This occurs even in a minimal test case with only one node, one queue, one PodGroup, and one pod. The plugin’s logic is invoked, but the scheduler never issues a bind request, causing the test to fail with failed to get Bind request
Steps to reproduce the issue
1.Create a minimal test file(place in pkg/scheduler/plugins/capacity/capacity_minimal_test.go)
2.Run the test
Describe the results you received and expected
expected: The pod should be scheduled and bound to the node, and the test should pass
received: the test fails with
failed to get Bind request in case 0(minimal: one pod should be scheduled)
What version of Volcano are you using?
1.12.1
Any other relevant information
The same issue occurs in more complex tests (e.g., TestEnqueueAndAllocatable).
The session’s Jobs map, PodGroups, and pods are all set up correctly.
The plugin’s logic is invoked, but the scheduler never issues a bind request.
This may indicate a bug in the test harness (uthelper), the FakeBinder, or the scheduler’s action execution