fix(hub): give integration tests skill-store root and portable DB URL

Admin routes always construct OrganizationAgentConfiguration via
readSkillStoreRoot(); CI and local runs without HUB_SKILL_STORE_ROOT
failed open. Seed a tmp root when unset. Also make preflight CLI tests
honor DATABASE_URL and set the skill-store env in hub-check.
This commit is contained in:
2026-07-30 13:12:08 +08:00
parent ac53d42a0a
commit 9c1f9de9c1
3 changed files with 18 additions and 1 deletions
+1
View File
@@ -154,6 +154,7 @@ jobs:
--exclude test/integration/agent-sandbox-linux.test.ts
env:
DATABASE_URL: postgresql://paradigm:paradigm@postgres:5432/cph_hub_test
HUB_SKILL_STORE_ROOT: /tmp/cph-hub-check-skills
# Real-model tests are opt-in: set RUN_REAL_MODEL_TESTS=true and provide
# OPENROUTER_API_KEY when a branch should hit live OpenRouter.