Skip to content

Commit 1f9a675

Browse files
committed
docs: specify Core Python conformance setup and drop deleted PG workflow check
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
1 parent 85ba82c commit 1f9a675

2 files changed

Lines changed: 30 additions & 9 deletions

File tree

‎docs/development/testing-and-quality.md‎

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,23 @@ authority, configure `LOOPX_TEST_POSTGRES_URL` (for store tests) and
353353
`LOOPX_TEST_POSTGRES_SERVICE_URL` (for real service admission integration) to
354354
an isolated disposable server inside authorized access to the private/separately
355355
licensed `loopx-project/loopx-cloud` repository (unauthenticated public fetches
356-
return HTTP 404) and run `npm run test:postgresql-authority-store` plus
356+
return HTTP 404). Because `npm run test:postgresql-authority-store` also runs
357+
Core Python consumer conformance tests and `loopx-cloud` does not carry Core's
358+
fallback POSIX launcher, first prepare a Core validation environment following
359+
[Local Validation Environment](#local-validation-environment--本地验证环境) (for
360+
example, `uv sync --extra test` in the Core checkout), select that Core
361+
interpreter explicitly with `LOOPX_TEST_PYTHON=/path/to/loopx/.venv/bin/python`
362+
(also accepting `LOOPX_PYTHON_BIN` or `LOOPX_PYTHON`), and set
363+
`PYTHONSAFEPATH=1` so a directory named `loopx/` in the caller working tree
364+
never shadows Core's installed/editable `loopx` package. Verify the selected
365+
interpreter and imported source path with
366+
`PYTHONSAFEPATH=1 "$LOOPX_TEST_PYTHON" -c "import sys, loopx; print(sys.executable); print(loopx.__file__)"`,
367+
then run `npm run test:postgresql-authority-store` plus
357368
`npm run test:postgresql-authority-service`. Verify both suites report zero
358-
skipped tests (`0 skipped`, including the service suite, rather than relying on
359-
exit code `0` alone); a skipped suite or skipped service integration case is an
360-
evidence gap, not a pass. Record the exact commit, backend version, tested
369+
failures and zero skipped tests (`0 failed, 0 skipped`, including the Core
370+
Python conformance cases and service integration suite, rather than relying on
371+
exit code `0` alone); any failure or skipped case is an evidence gap, not a
372+
pass. Record the exact commit, backend version, tested
361373
behavior, and failures or limits. The `PostgreSQL Integration` workflow in
362374
`loopx-cloud` qualifies those suites against a disposable server, while public
363375
pre-split self-hosted installations stay on the frozen `v2.4.0` (tag
@@ -374,10 +386,19 @@ HTTPS 客户端契约)以及
374386
调度器网关)。影响服务端 PostgreSQL authority 时,请在经授权访问的私有/独立许可
375387
仓库 `loopx-project/loopx-cloud`(未登录匿名公开访问会返回 HTTP 404)中为隔离
376388
临时实例同时配置 `LOOPX_TEST_POSTGRES_URL`(store 套件)与
377-
`LOOPX_TEST_POSTGRES_SERVICE_URL`(真实服务接入集成),运行
378-
`npm run test:postgresql-authority-store` 与
379-
`npm run test:postgresql-authority-service`,并明确以两套测试(含服务套件 `0 skipped`)
380-
零跳过作为回读标准;不能仅凭退出码 `0` 判定通过,存在被跳过的套件或服务集成用例即
389+
`LOOPX_TEST_POSTGRES_SERVICE_URL`(真实服务接入集成)。由于
390+
`npm run test:postgresql-authority-store` 还包含 Core Python consumer conformance
391+
测试且 `loopx-cloud` 源码树不带 Core 的 POSIX 回退启动器,请先按
392+
[Local Validation Environment / 本地验证环境](#local-validation-environment--本地验证环境)
393+
中的可执行步骤准备 Core 测试环境(例如在 Core 检出目录运行 `uv sync --extra test`),
394+
通过 `LOOPX_TEST_PYTHON=/path/to/loopx/.venv/bin/python`(或
395+
`LOOPX_PYTHON_BIN` / `LOOPX_PYTHON`)显式指定该 Core 解释器,并设置
396+
`PYTHONSAFEPATH=1` 避免调用方工作目录下的同名 `loopx/` 目录遮蔽 Core 导入;运行
397+
`PYTHONSAFEPATH=1 "$LOOPX_TEST_PYTHON" -c "import sys, loopx; print(sys.executable); print(loopx.__file__)"`
398+
核实解释器与实际导入源码路径后,再执行 `npm run test:postgresql-authority-store` 与
399+
`npm run test:postgresql-authority-service`,并明确以两套测试零失败、零跳过
400+
(`0 failed, 0 skipped`,涵盖 store 中的 Core Python consumer 用例与服务套件)
401+
作为回读标准;不能仅凭退出码 `0` 判定通过,任何失败或被跳过的用例即
381402
视为证据缺口而非通过。记录精确 commit、后端版本、验证行为与失败或局限;`loopx-cloud`
382403
的 `PostgreSQL Integration` workflow 会在临时实例上验证这些套件,而公开拆分前的自托管
383404
部署可继续保留冻结标签 `v2.4.0`(tag `5037daecee`、commit `a6ffb3be6e`、`loopx postgres`、

‎tests/test_ci_resource_policy.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def test_daily_smokes_keep_every_shard_and_verify_one_shared_source_artifact() -
377377

378378

379379
def test_nightly_schedules_exist_and_release_publication_never_fires_on_schedule() -> None:
380-
for name in ("python-tests", "release-artifacts", "package-smoke", "postgresql-integration"):
380+
for name in ("python-tests", "release-artifacts", "package-smoke"):
381381
triggers = workflow(name)[True]
382382
assert "schedule" in triggers and triggers["schedule"], name
383383

0 commit comments

Comments
 (0)