Skip to content

feat: make --num-slices and --num-cubes optional for reservations#1093

Closed
jamOne- wants to merge 28 commits intoAI-Hypercomputer:mainfrom
jamOne-:optional-num-slices
Closed

feat: make --num-slices and --num-cubes optional for reservations#1093
jamOne- wants to merge 28 commits intoAI-Hypercomputer:mainfrom
jamOne-:optional-num-slices

Conversation

@jamOne-
Copy link
Copy Markdown
Collaborator

@jamOne- jamOne- commented Mar 3, 2026

Description

Makes --num-slices, --num-cubes and --num-nodes optional when using --reservation capacity.

Issue

b/477114716

Testing

Needs thorough testing.

@jamOne- jamOne- force-pushed the optional-num-slices branch 2 times, most recently from 9fa6df1 to 953ee62 Compare March 3, 2026 18:41
@jamOne- jamOne- force-pushed the optional-num-slices branch 2 times, most recently from 28bacc9 to 4a3a679 Compare March 5, 2026 08:19
@jamOne- jamOne- force-pushed the optional-num-slices branch from 4a3a679 to a967251 Compare March 5, 2026 08:29
- Apply implementer refactoring for _determine_available_capacity and _set_cluster_topology_defaults.
- Ensure _determine_available_capacity does not modify args.num_nodes directly and returns early if not using a reservation.
- Centralize slice and node defaulting in _set_cluster_topology_defaults.
- Update unit tests in cluster_test.py to match new method signatures and test logic.
- Fix missing unittest.mock imports.
- Mock _determine_available_capacity where required to accurately test _set_cluster_topology_defaults.
@jamOne- jamOne- force-pushed the optional-num-slices branch from 9c91896 to c8da4b4 Compare March 9, 2026 07:58
@jamOne- jamOne- added release-features features Never stale Label used to bypass the Stale bot automation. and removed Never stale Label used to bypass the Stale bot automation. labels Mar 27, 2026
@jamOne- jamOne- closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant