Skip to content

Acceptance

CI / local

命令

bash
npm run acceptance         # typecheck → 打包 → 起服 → run.sh → 停服
npm run acceptance:build   # 只打包 scripts/acceptance/server.cjs
npm run acceptance:run     # 只跑(用现有 server.cjs,不 typecheck/打包)
npm run acceptance:server  # 只起服(调试)
npm run origin:dogfood     # typecheck → 打包 → Origin 场景(只读 ORIGIN_ROOT)

acceptanceorigin:dogfood 都以 npm run typecheck 为前置:electron:buildtsc -b,若类型不过则包本来就打不出来,验收全绿会给出误导信号。同理它们会自己重新 打包 server.cjs,避免拿旧产物跑出假绿灯。

当前基线

套件结果
npm run acceptance82 passed / 0 failed
npm run origin:dogfood21 passed / 0 failed(需 ORIGIN_ROOT 与 deno)

覆盖面(摘要)

  • LLM(chat/stream/embeddings/tools/Anthropic)
  • Auth OIDC + GoTrue
  • S3 / multipart
  • DB HTTP + pg wire
  • Redis 结构 / pubsub / stream / blpop
  • Secrets / Flags / Queue / Mail / SMTP / Billing
  • Search / Jobs / Gateway / CDN / Edge / AB
  • MCP tools + selftest + compat + ship.*
  • PostgREST RLS、Storage、Realtime CDC、Edge hello fixture

更细的脚本说明见仓库内 docs/acceptance/README.md(历史路径,内容仍有效)。