Skip to content

World's first open-source enterprise world model.

Run documents route tests against Postgres in CI so they cannot skip silently (#868)

WaylandYangd8c69be26c18
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 201b4b11..26682cf1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -107,6 +107,16 @@ jobs:
UTOPIA_DATABASE_URL: postgres://utopia:utopia@localhost:5432/utopia
UTOPIA_TEST_REQUIRE_DB: "1"
+ # 文档路由测试(含 #860 新增的 PAT 作用域、purged → 410、账本引用但 blob 缺失 → 500)
+ # 全部以 test_db::url() 为门槛:backend job 没有库,它们静默跳过并显示绿色;
+ # 而这个 job 之前只跑 mcp / chat / retrieval 三个过滤器,于是它们从未在 CI 执行过(#248)。
+ # 模块由 documents_routes.rs 里的 #[path] 声明,路径是 api::documents_routes::tests::…
+ - name: Documents routes against Postgres
+ run: "cargo test -p utopia-server api::documents_routes::"
+ env:
+ UTOPIA_DATABASE_URL: postgres://utopia:utopia@localhost:5432/utopia
+ UTOPIA_TEST_REQUIRE_DB: "1"
+
- name: Hybrid retrieval against Postgres
run: "cargo test -p utopia-server retrieval::"
env: