forked from bai/curriculum-project-hub
feat: add deployable alpha silo
This commit is contained in:
@@ -18,7 +18,7 @@ import { FeishuApplicationConnectionService } from "../../src/connections/feishu
|
||||
const execFileAsync = promisify(execFile);
|
||||
const TEST_DATABASE_URL = "postgresql://paradigm:paradigm@127.0.0.1:5432/cph_hub_test";
|
||||
|
||||
describe("deployment preflight CLI", () => {
|
||||
describe("deployment preflight CLI", { timeout: 20_000 }, () => {
|
||||
let root: string;
|
||||
let baseDir: string;
|
||||
let hubDir: string;
|
||||
@@ -224,15 +224,21 @@ describe("deployment preflight CLI", () => {
|
||||
[
|
||||
"NODE_ENV=production",
|
||||
`DATABASE_URL=${options.databaseUrl ?? TEST_DATABASE_URL}`,
|
||||
"FEISHU_APP_ID=cli_app_id",
|
||||
"FEISHU_APP_SECRET=feishu-app-secret",
|
||||
"FEISHU_BOT_OPEN_ID=ou_bot",
|
||||
"HUB_SILO_ORGANIZATION_ID=org_test",
|
||||
"HUB_SYSTEMD_UNIT=cph-hub-test.service",
|
||||
`CPH_BIN=${cphBin}`,
|
||||
"HOST=127.0.0.1",
|
||||
"PORT=8788",
|
||||
`HUB_PROJECT_WORKSPACE_ROOT=${options.workspaceRoot}`,
|
||||
"HUB_PUBLIC_BASE_URL=https://hub.example.com",
|
||||
"HUB_SESSION_SECRET=a-production-session-secret-with-32-bytes",
|
||||
"HUB_AGENT_MAX_CONCURRENT_RUNS=1",
|
||||
"HUB_AGENT_MAX_RUN_SECONDS=900",
|
||||
"HUB_HTTP_BODY_LIMIT_BYTES=1048576",
|
||||
"HUB_MAX_FILES_PER_MESSAGE=8",
|
||||
"HUB_MAX_FILE_BYTES=26214400",
|
||||
"HUB_HTTP_REQUESTS_PER_MINUTE=120",
|
||||
"HUB_FEISHU_EVENTS_PER_MINUTE=120",
|
||||
"",
|
||||
].join("\n"),
|
||||
{ mode: 0o600 },
|
||||
@@ -264,6 +270,8 @@ describe("deployment preflight CLI", () => {
|
||||
join(persistentDir, "cache"),
|
||||
"--workspace-root",
|
||||
options.workspaceRoot,
|
||||
"--service-unit",
|
||||
"cph-hub-test.service",
|
||||
"--bwrap-bin",
|
||||
bwrapBin,
|
||||
"--socat-bin",
|
||||
|
||||
Reference in New Issue
Block a user