Retire stale training documentation debt
This commit is contained in:
@@ -14,7 +14,7 @@ LOCAL_DEMO_COMPOSE_PREFIX = (
|
||||
)
|
||||
LOCAL_DEMO_DOCS = (
|
||||
ROOT / "README.md",
|
||||
ROOT / "docs" / "training_case_engine_m1_m6_product_readme.md",
|
||||
ROOT / "RUNBOOK.md",
|
||||
)
|
||||
LOCAL_DEMO_REBUILD_COMMANDS = (
|
||||
f"{LOCAL_DEMO_COMPOSE_PREFIX} down --remove-orphans",
|
||||
|
||||
@@ -42,7 +42,7 @@ TRADING_DELIVERY_COMMAND_GROUPS = (
|
||||
'test "$(docker ps --filter name=^/ai-ict$ --format \'{{.Names}}\' | wc -l | tr -d \' \')" = "1"',
|
||||
'test "$(docker inspect -f \'{{.State.Health.Status}}\' ai-ict)" = "healthy"',
|
||||
"curl -fsS http://127.0.0.1:8000/health",
|
||||
'curl -fsS "http://127.0.0.1:8000/signals?instrument_id=1&limit=1"',
|
||||
'curl -fsS "http://127.0.0.1:8000/trading/candidates?instrument_id=1&limit=1"',
|
||||
),
|
||||
),
|
||||
(
|
||||
|
||||
@@ -15,6 +15,7 @@ DEFAULT_CHECKS = [
|
||||
("script_static_checks", [sys.executable, "scripts/run_script_static_checks.py"]),
|
||||
("trading_delivery_readiness", [sys.executable, "scripts/check_trading_delivery_readiness.py"]),
|
||||
("dashboard_js_syntax", ["node", "--check", "src/web/app.js"]),
|
||||
("training_console_js_syntax", ["node", "--check", "src/web/training.js"]),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -378,7 +378,7 @@ def run_deploy_and_health_checks(
|
||||
|
||||
for name, url in (
|
||||
("http_health", f"http://127.0.0.1:{deploy_port}/health"),
|
||||
("http_signals", f"http://127.0.0.1:{deploy_port}/signals?instrument_id=1&limit=1"),
|
||||
("http_trading_candidates", f"http://127.0.0.1:{deploy_port}/trading/candidates?instrument_id=1&limit=1"),
|
||||
):
|
||||
step = _run_step(
|
||||
name=name,
|
||||
|
||||
@@ -112,6 +112,8 @@ def _build_parser() -> argparse.ArgumentParser:
|
||||
|
||||
|
||||
def _load_package(input_path: Path) -> dict:
|
||||
if input_path.is_dir():
|
||||
raise _PublicCliError("input_path_is_directory")
|
||||
with input_path.open("r", encoding="utf-8") as handle:
|
||||
payload = json.load(handle)
|
||||
if not isinstance(payload, dict):
|
||||
|
||||
Reference in New Issue
Block a user