mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-13 17:10:59 +01:00
Fifth module of the tool/ coverage task, split into the GitHub-reading half and main() at 216 and 248 lines. This is a one-shot migration whose worst outcome is reporting success while having moved the wrong bytes, so the tests pin the decisions that prevent exactly that: reading blobs by sha rather than by path (the contents API would return whatever is at that path *now*, which need not be what the tree listing described), refusing a truncated tree instead of migrating part of the repo, never fetching a skipped path, emitting the report before the first write, and failing the run when the byte-for-byte read-back disagrees -- including the partial case, where one bad file out of two is a failed migration rather than a 50% success. Also fixes the S105 finding the previous commit's preflight tests carried: `_PASSWORD` trips the hardcoded-credential rule on the binding name, the same trap this task's notes already record. Renamed rather than suppressed. The blanket rename briefly caught the module attribute `_PASSWORD_FILE` too, which the suite caught immediately. crdt_sync 333 -> 365 passed, still 100%. 5 of 7 tool/ modules done; the two remaining are link_google.py and seed_session.py. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_config_client.py | ||
| test_config_credentials.py | ||
| test_config.py | ||
| test_device.py | ||
| test_firebase_auth_google.py | ||
| test_firebase_auth_session.py | ||
| test_firebase_auth_tokens.py | ||
| test_firebase_auth.py | ||
| test_firebase_writes.py | ||
| test_firebase.py | ||
| test_github_writes.py | ||
| test_github.py | ||
| test_hlc.py | ||
| test_log.py | ||
| test_mirror_fallback.py | ||
| test_mirror.py | ||
| test_record.py | ||
| test_store.py | ||
| test_sync_revisions_backends.py | ||
| test_sync_revisions_peers.py | ||
| test_sync_revisions.py | ||
| test_sync_skips.py | ||
| test_sync.py | ||
| test_tool_google_id_token_cli.py | ||
| test_tool_google_id_token.py | ||
| test_tool_interop_seed.py | ||
| test_tool_migrate_github_main.py | ||
| test_tool_migrate_github.py | ||
| test_tool_oauth_callback.py | ||
| test_tool_preflight_firebase_main.py | ||
| test_tool_preflight_firebase.py | ||