test(compose): treat ./.state/ bind mounts as runtime state, like ./data/
Some checks failed
CI / lint (push) Failing after 33s
CI / test (push) Successful in 2m7s
CI / notebooks-smoke (push) Successful in 1m36s

main's CI test job has failed on every push since 2026-09-24: the llm
service mounts ./.state/comments and ./.state/llm/pdfcache, which are
gitignored runtime state and absent from a fresh checkout, and
test_all_relative_bind_mounts_exist only exempted ./data/. With
`pytest -x` that one failure also hid the coverage gate.

Refs #1365
This commit is contained in:
kert
2026-10-27 11:05:24 -04:00
parent bf4115195d
commit adc988dd84

View File

@@ -45,9 +45,10 @@ class TestBindMountSourcesExist:
missing = []
for svc, host_path, full in mounts:
# ./data/ is gitignored runtime state — populated by service
# bootstrap on first run, not present in a fresh checkout (CI).
if host_path.startswith("./data/"):
# ./data/ and ./.state/ are gitignored runtime state — populated
# by service bootstrap on first run, not present in a fresh
# checkout (CI).
if host_path.startswith(("./data/", "./.state/")):
continue
resolved = ROOT / host_path
if not resolved.exists():