Forward the lab 5 foundation while preserving lab 6 telemetry
Source: immutable lab5 snapshot f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071; forward the allowed diff from 64d5c67. Carry SQLAlchemy, Alembic, reliability fixes, versioned jobs, infrastructure and student tests without changing protected coursework files.
Validation: make check, validate, lint; 515 student tests passed with one Linux-only skip; public smoke with telemetry enabled and repeat migration passed. Stop the owned stack and retain volumes. Preserve the existing OTel work in progress; grade implementation remains a separate phase.
This commit is contained in:
@@ -32,6 +32,10 @@ def compose(*args: str, stdin: str | None = None) -> str:
|
||||
return done.stdout.strip()
|
||||
|
||||
|
||||
def restart_stack() -> None:
|
||||
subprocess.run(["sh", "scripts/restart.sh"], cwd=ROOT, check=True, capture_output=True)
|
||||
|
||||
|
||||
def psql(sql: str, **variables: str) -> str:
|
||||
assigned = [item for name, value in variables.items() for item in ("-v", f"{name}={value}")]
|
||||
command = ["exec", "-T", "postgres", "psql", "-U", "messenger", "-d", "messenger", "-tA"]
|
||||
|
||||
Reference in New Issue
Block a user