utils/crdt-sync/crdt_sync/tests
Krzysztof kuhy Rudnicki 9f271b0d37 Fix the cap hook in CI, and the re-exports its --all-files run exposed
The hook entry was an absolute /home/kuhy/utils path, copied from a config
written for ~/.claude where it only ever ran locally. On an Actions runner
that is exit code 127 — "No such file or directory" — so gatelock-precommit
and crdt-sync-precommit failed on every commit of this refactor while the
hook silently checked nothing. Now repo-relative, matching the sibling hooks
(`entry: scripts/check_subproject_scope.sh`): pre-commit always runs from the
git root, so it resolves the same in both places.

Fixing that made the CI configs runnable locally, and `--all-files` then found
what per-file runs had missed — ruff pruning imports that exist *for* their
re-export. `import crdt_sync` was broken three separate ways (FileSyncStateStore,
encode_key, FileCredentialStore). Each affected module now states an explicit
__all__ so the autofixer cannot take them again, and the two files that pushed
past the cap once __all__ was added are split further:

  _firebase.py 260 -> 247 + _fberrors 25
  _sync.py     257 -> 188 + _syncargs 91

Test patch targets followed the code they patch: gatelock._outputs.shutil ->
_xrandr.shutil, gatelock._arbiter.Path -> _claims.Path.

gatelock and crdt-sync both pass `pre-commit run --all-files` in full;
389 and 259 tests at 100% branch coverage; the root gate exits 0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
2026-08-22 15:52:59 +02:00
..
__init__.py Initial implementation: unified CRDT merge scheme + GitHub sync transport 2026-07-05 20:40:09 +02:00
conftest.py Group sync_log's 11 arguments into three bundles 2026-08-21 14:22:25 +02:00
test_config_client.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_config_credentials.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_config.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_device.py Add DeviceIdentity and a legacy device id for the uuid migration 2026-08-09 16:54:33 +02:00
test_firebase_auth_google.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_firebase_auth_session.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_firebase_auth_tokens.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_firebase_auth.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_firebase_writes.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_firebase.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_github_writes.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_github.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_hlc.py Document every test, taking pylint from 8.58 to 9.90 2026-08-21 14:10:23 +02:00
test_log.py Document every test, taking pylint from 8.58 to 9.90 2026-08-21 14:10:23 +02:00
test_mirror_fallback.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_mirror.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_record.py Group sync_log's 11 arguments into three bundles 2026-08-21 14:22:25 +02:00
test_store.py Document every test, taking pylint from 8.58 to 9.90 2026-08-21 14:10:23 +02:00
test_sync_revisions_backends.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_sync_revisions_peers.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_sync_revisions.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00
test_sync_skips.py Fix the cap hook in CI, and the re-exports its --all-files run exposed 2026-08-22 15:52:59 +02:00
test_sync.py crdt-sync: split seven oversized test files by test group 2026-08-22 14:47:58 +02:00