Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jun 24, 2024
1 parent 1e238c3 commit ac6b0a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ai/backend/storage/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
EventProducer,
)
from ai.backend.common.logging import BraceStyleAdapter, Logger
from ai.backend.common.types import LogSeverity

from .abc import CAP_FAST_SIZE, AbstractVolume
from .config import load_local_config, load_shared_config
Expand Down Expand Up @@ -324,7 +325,7 @@ def main(
Print migration script to OUTFILE.
Pass - as OUTFILE to print results to STDOUT.
"""
local_config = load_local_config(config_path, debug=debug)
local_config = load_local_config(config_path, LogSeverity.DEBUG, debug=debug)
ipc_base_path = local_config["storage-proxy"]["ipc-base-path"]
log_sockpath = Path(
ipc_base_path / f"storage-proxy-logger-{os.getpid()}.sock",
Expand Down
4 changes: 2 additions & 2 deletions tests/storage-proxy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from ai.backend.common.etcd import AsyncEtcd, ConfigScopes
from ai.backend.common.exception import ConfigurationError
from ai.backend.common.types import HostPortPair, QuotaScopeID, QuotaScopeType
from ai.backend.common.types import HostPortPair, LogSeverity, QuotaScopeID, QuotaScopeType
from ai.backend.storage.abc import AbstractVolume
from ai.backend.storage.config import load_local_config
from ai.backend.storage.types import VFolderID
Expand Down Expand Up @@ -47,7 +47,7 @@ def mock_etcd() -> Iterator[AsyncEtcd]:

def has_backend(backend_name: str) -> dict[str, Any] | None:
try:
local_config = load_local_config(None, debug=True)
local_config = load_local_config(None, LogSeverity.DEBUG, debug=True)
except ConfigurationError:
return None
for _, info in local_config["volume"].items():
Expand Down

0 comments on commit ac6b0a1

Please sign in to comment.