Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
2fa3627a
Unverified
Commit
2fa3627a
authored
Dec 30, 2025
by
Hongkuan Zhou
Committed by
GitHub
Dec 30, 2025
Browse files
test: fix missing args in replica calculation test (#5113)
Signed-off-by:
hongkuanz
<
hongkuanz@nvidia.com
>
parent
d7c27e68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tests/planner/test_replica_calculation.py
tests/planner/test_replica_calculation.py
+4
-1
No files found.
tests/planner/test_replica_calculation.py
View file @
2fa3627a
...
@@ -40,6 +40,8 @@ from dynamo.planner.utils.planner_core import Metrics, Planner # noqa: E402
...
@@ -40,6 +40,8 @@ from dynamo.planner.utils.planner_core import Metrics, Planner # noqa: E402
@
pytest
.
fixture
@
pytest
.
fixture
@
pytest
.
mark
.
pre_merge
@
pytest
.
mark
.
gpu_0
def
planner
():
def
planner
():
"""Set up test environment with mocked dependencies."""
"""Set up test environment with mocked dependencies."""
# Create mock arguments
# Create mock arguments
...
@@ -54,7 +56,8 @@ def planner():
...
@@ -54,7 +56,8 @@ def planner():
args
.
backend
=
"vllm"
args
.
backend
=
"vllm"
args
.
no_operation
=
True
# Don't actually scale
args
.
no_operation
=
True
# Don't actually scale
args
.
no_correction
=
False
# Allow correction factors
args
.
no_correction
=
False
# Allow correction factors
args
.
prometheus_port
=
0
# 0 means disabled
args
.
metric_pulling_prometheus_endpoint
=
"http://localhost:9090"
# dummy endpoint
args
.
metric_reporting_prometheus_port
=
0
# 0 means disabled
args
.
load_predictor
=
"constant"
args
.
load_predictor
=
"constant"
args
.
load_prediction_window_size
=
10
args
.
load_prediction_window_size
=
10
args
.
profile_results_dir
=
os
.
path
.
join
(
args
.
profile_results_dir
=
os
.
path
.
join
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment