[verified] chore(release): prepare v0.1.3
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
"""CI wrapper for the Streamlit dashboard HTTP smoke gate.
|
||||
"""CI wrapper for the production Dashboard ASGI HTTP smoke gate.
|
||||
|
||||
Creates a synthetic fixture DB, starts Streamlit against it, waits for HTTP 200,
|
||||
and always attempts process cleanup. Output is intentionally status-only.
|
||||
Creates a synthetic fixture DB, starts the authenticated Streamlit ASGI wrapper,
|
||||
waits for HTTP 200, and always attempts process cleanup. Output is intentionally
|
||||
status-only.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -26,7 +27,7 @@ from scripts.ci_fixture_db import create_ci_fixture_db
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(description="Run Streamlit dashboard HTTP smoke against a synthetic CI fixture DB.")
|
||||
parser = argparse.ArgumentParser(description="Run the Dashboard ASGI HTTP smoke against a synthetic CI fixture DB.")
|
||||
parser.add_argument("--host", default="127.0.0.1", help="Loopback host to bind")
|
||||
parser.add_argument("--port", type=int, default=18501, help="Deterministic smoke port")
|
||||
parser.add_argument("--timeout", type=int, default=45, help="Readiness timeout in seconds")
|
||||
@@ -75,21 +76,21 @@ def main() -> int:
|
||||
fixture = create_ci_fixture_db(fixture_path)
|
||||
env = os.environ.copy()
|
||||
env["JARCA_LEDGER_DB_PATH"] = str(fixture_path)
|
||||
env["JARCA_DASHBOARD_ADMIN_ID"] = "a"
|
||||
env["JARCA_DASHBOARD_ADMIN_PASSWORD"] = "p"
|
||||
env["JARCA_DASHBOARD_SIGNING_SECRET"] = "s" * 32
|
||||
env["FORWARDED_ALLOW_IPS"] = "127.0.0.1"
|
||||
env["STREAMLIT_BROWSER_GATHER_USAGE_STATS"] = "false"
|
||||
cmd = [
|
||||
sys.executable,
|
||||
"-m",
|
||||
"streamlit",
|
||||
"run",
|
||||
"dashboard/app.py",
|
||||
"--server.address",
|
||||
"uvicorn",
|
||||
"dashboard.server:app",
|
||||
"--host",
|
||||
args.host,
|
||||
"--server.port",
|
||||
"--port",
|
||||
str(args.port),
|
||||
"--server.headless",
|
||||
"true",
|
||||
"--browser.gatherUsageStats",
|
||||
"false",
|
||||
"--proxy-headers",
|
||||
]
|
||||
proc = subprocess.Popen(
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user