Skip to content

Commit b008ba2

Browse files
committed
Normalize compose YAML, typing, and test fix
Standardize docker-compose quoting and healthcheck array formatting for consistency and YAML compatibility. Update ai-service logging type hints by importing typing.Optional and changing get_logger signature to accept Optional[str]. Fix auth service spec to use displayName in the test payload (was name).
1 parent ba69e33 commit b008ba2

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ services:
44
container_name: agentbase-postgres
55
restart: unless-stopped
66
ports:
7-
- '5432:5432'
7+
- "5432:5432"
88
environment:
99
POSTGRES_USER: ${POSTGRES_USER:-agentbase}
1010
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-agentbase_dev}
1111
POSTGRES_DB: ${POSTGRES_DB:-agentbase}
1212
volumes:
1313
- postgres_data:/var/lib/postgresql/data
1414
healthcheck:
15-
test: ['CMD-SHELL', 'pg_isready -U agentbase']
15+
test: ["CMD-SHELL", "pg_isready -U agentbase"]
1616
interval: 10s
1717
timeout: 5s
1818
retries: 5
@@ -22,7 +22,7 @@ services:
2222
container_name: agentbase-mongodb
2323
restart: unless-stopped
2424
ports:
25-
- '27017:27017'
25+
- "27017:27017"
2626
environment:
2727
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-agentbase}
2828
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-agentbase_dev}
@@ -40,12 +40,13 @@ services:
4040
container_name: agentbase-redis
4141
restart: unless-stopped
4242
ports:
43-
- '6379:6379'
43+
- "6379:6379"
4444
command: redis-server --requirepass ${REDIS_PASSWORD:-agentbase_dev}
4545
volumes:
4646
- redis_data:/data
4747
healthcheck:
48-
test: ['CMD', 'redis-cli', '-a', '${REDIS_PASSWORD:-agentbase_dev}', 'ping']
48+
test:
49+
["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-agentbase_dev}", "ping"]
4950
interval: 10s
5051
timeout: 5s
5152
retries: 5

packages/ai-service/app/core/logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
import os
55
import sys
6+
from typing import Optional
67
import structlog
78

89

@@ -63,6 +64,6 @@ def setup_logging() -> None:
6364
logging.getLogger("motor").setLevel(logging.WARNING)
6465

6566

66-
def get_logger(name: str | None = None) -> structlog.stdlib.BoundLogger:
67+
def get_logger(name: Optional[str] = None) -> structlog.stdlib.BoundLogger:
6768
"""Get a structlog logger instance."""
6869
return structlog.get_logger(name)

packages/core/src/modules/auth/auth.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe("AuthService", () => {
6262
service.register({
6363
email: "test@example.com",
6464
password: "password123",
65-
name: "Test",
65+
displayName: "Test",
6666
}),
6767
).rejects.toThrow(ConflictException);
6868
});

0 commit comments

Comments
 (0)