Skip to content

Commit 2d94201

Browse files
committed
Standardize on plural for modules/packages and update from copilot review
Signed-off-by: Mark Kurtz <[email protected]>
1 parent 54b8ed6 commit 2d94201

File tree

9 files changed

+18
-12
lines changed

9 files changed

+18
-12
lines changed

src/guidellm/benchmark/scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from guidellm.backend.backend import BackendType
1313
from guidellm.benchmark.profile import ProfileType
1414
from guidellm.objects.pydantic import StandardBaseModel
15-
from guidellm.scheduler.strategy import StrategyType
15+
from guidellm.scheduler.strategies import StrategyType
1616

1717
__ALL__ = ["Scenario", "GenerativeTextScenario", "get_builtin_scenarios"]
1818

src/guidellm/scheduler/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
SerializableConstraintInitializer,
1212
UnserializableConstraintInitializer,
1313
)
14-
from .environment import Environment, NonDistributedEnvironment
14+
from .environments import Environment, NonDistributedEnvironment
1515
from .objects import (
1616
BackendInterface,
1717
BackendT,
@@ -27,7 +27,7 @@
2727
SchedulerUpdateActionProgress,
2828
)
2929
from .scheduler import Scheduler
30-
from .strategy import (
30+
from .strategies import (
3131
AsyncConstantStrategy,
3232
AsyncPoissonStrategy,
3333
ConcurrentStrategy,

src/guidellm/scheduler/environment.py renamed to src/guidellm/scheduler/environments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
ScheduledRequestInfo,
3333
SchedulerState,
3434
)
35-
from guidellm.scheduler.strategy import SchedulingStrategy
35+
from guidellm.scheduler.strategies import SchedulingStrategy
3636
from guidellm.settings import settings
3737
from guidellm.utils import InfoMixin
3838

src/guidellm/scheduler/scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Constraint,
1818
ConstraintsInitializerFactory,
1919
)
20-
from guidellm.scheduler.environment import Environment, NonDistributedEnvironment
20+
from guidellm.scheduler.environments import Environment, NonDistributedEnvironment
2121
from guidellm.scheduler.objects import (
2222
BackendInterface,
2323
MultiTurnRequestT,
@@ -26,7 +26,7 @@
2626
ScheduledRequestInfo,
2727
SchedulerState,
2828
)
29-
from guidellm.scheduler.strategy import SchedulingStrategy
29+
from guidellm.scheduler.strategies import SchedulingStrategy
3030
from guidellm.scheduler.worker_group import WorkerProcessGroup
3131
from guidellm.utils.singleton import ThreadSafeSingletonMixin
3232

File renamed without changes.

src/guidellm/scheduler/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
ScheduledRequestInfo,
3838
SchedulerMessagingPydanticRegistry,
3939
)
40-
from guidellm.scheduler.strategy import ScheduledRequestTimings
40+
from guidellm.scheduler.strategies import ScheduledRequestTimings
4141
from guidellm.utils import (
4242
InterProcessMessaging,
4343
wait_for_sync_barrier,

src/guidellm/scheduler/worker_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
SchedulerState,
3434
SchedulerUpdateAction,
3535
)
36-
from guidellm.scheduler.strategy import SchedulingStrategy
36+
from guidellm.scheduler.strategies import SchedulingStrategy
3737
from guidellm.scheduler.worker import WorkerProcess
3838
from guidellm.settings import settings
3939
from guidellm.utils import (

tests/unit/scheduler/test_constraints.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,14 @@ def test_create_constraint_raises(self, valid_instances):
286286
def test_call_raises(self, valid_instances):
287287
"""Test that calling constraint raises RuntimeError."""
288288
instance, _ = valid_instances
289-
state = SchedulerState()
290-
request = ScheduledRequestInfo()
289+
state = SchedulerState(node_id="test_node", num_processes=1, start_time=0.0)
290+
request = ScheduledRequestInfo(
291+
request_id="test_request",
292+
status="pending",
293+
scheduler_node_id="test_node",
294+
scheduler_process_id=1,
295+
scheduler_start_time=0.0,
296+
)
291297

292298
with pytest.raises(
293299
RuntimeError, match="Cannot invoke unserializable constraint"

tests/unit/scheduler/test_strategy.py renamed to tests/unit/scheduler/test_strategies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
SynchronousStrategy,
2626
ThroughputStrategy,
2727
)
28-
from guidellm.scheduler.strategy import (
28+
from guidellm.scheduler.strategies import (
2929
_exponential_decay_fraction,
3030
_exponential_decay_tau,
3131
)
@@ -35,7 +35,7 @@ def test_strategy_type():
3535
"""Test that StrategyType is defined correctly as a Literal type."""
3636
# StrategyType is a type alias/literal type, we can't test its runtime value
3737
# but we can test that it exists and is importable
38-
from guidellm.scheduler.strategy import StrategyType
38+
from guidellm.scheduler.strategies import StrategyType
3939

4040
assert StrategyType is not None
4141

0 commit comments

Comments
 (0)