Skip to content

Commit

Permalink
Respond to review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ashao committed Oct 16, 2023
1 parent 0e25a4a commit c6930c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import sys
import typing as t
import warnings
import contextlib


# pylint: disable=redefined-outer-name,invalid-name,global-statement
Expand Down Expand Up @@ -683,13 +682,12 @@ def setup_test_colo(
colo_model_name: t.Optional[str] = "colocated_model",
port: t.Optional[int] = test_port,
on_wlm: t.Optional[bool] = False,
sr_test_script = fileutils.get_test_conf_path(application_file)
) -> Model:
"""Setup database needed for the colo pinning tests"""

# get test setup
test_dir = fileutils.make_test_dir(level=level)
sr_test_script = fileutils.get_test_conf_path("send_data_local_smartredis.py")
test_dir = fileutils.make_test_dir(level=2)
sr_test_script = fileutils.get_test_conf_path(application_file)

# Create an app with a colo_db which uses 1 db_cpu
if colo_settings is None:
Expand Down
8 changes: 4 additions & 4 deletions tests/on_wlm/test_colocated_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
def test_launch_colocated_model_defaults(fileutils, coloutils, db_type):
"""Test the launch of a model with a colocated database and local launcher"""

db_args = { "debug":DEBUG_DB }
db_args = { "debug": DEBUG_DB }

exp = Experiment(f"colocated_model_defaults_{db_type}", launcher=launcher)
colo_model = coloutils.setup_test_colo(
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_colocated_model_disable_pinning(fileutils, coloutils, db_type):
db_args = {
"db_cpus": 1,
"custom_pinning": [],
"debug":DEBUG_DB,
"debug": DEBUG_DB,
}

# Check to make sure that the CPU mask was correctly generated
Expand All @@ -101,7 +101,7 @@ def test_colocated_model_pinning_auto_2cpu(fileutils, coloutils, db_type):

db_args = {
"db_cpus": 2,
"debug":DEBUG_DB
"debug": DEBUG_DB
}

# Check to make sure that the CPU mask was correctly generated
Expand All @@ -128,7 +128,7 @@ def test_colocated_model_pinning_range(fileutils, coloutils, db_type):
db_args = {
"db_cpus": 4,
"custom_pinning": range(4),
"debug":DEBUG_DB
"debug": DEBUG_DB
}

colo_model = coloutils.setup_test_colo(
Expand Down

0 comments on commit c6930c0

Please sign in to comment.