Skip to content

test(control): close snapshot SQLite fixtures deterministically - #222

Merged
abruption merged 1 commit into
mainfrom
fix/209-sqlite-fixtures
Sep 27, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/209-sqlite-fixtures

Conversation

@abruption

Copy link
Copy Markdown
Owner

Summary

Close SQLite fixtures explicitly with contextlib.closing while preserving transaction scopes. Collect unraisable finalizer exceptions after GC so ResourceWarning cannot silently pass.

Closes #209

Type

  • chore / refactor / test / perf

Checklist

  • python3 cc_peer.py list works locally (live-session inspection not performed)
  • python3 cc_peer.py list --host <a real host> works over SSH (out of scope)
  • --dry-run resolves a target without posting anything (covered by existing mocked contracts; no live target)
  • Commits follow Conventional Commits
  • Docs updated if behavior changed
  • No secrets, tokens, or session keys in the diff (synthetic sentinels only)

Verified against

macOS arm64; Python 3.14.7, websockets 17.1; Node 22.14.0 for Control. Linux/Windows matrix results are left to PR CI, not claimed from this machine.

Snapshot fixture module: 4 tests under -X dev -W error::ResourceWarning, including failed backup paths. Documentation tests: 10. No runtime files changed.

Notes

Test-only fix. Real control services, snapshots and databases are untouched. Other PRs intentionally do not duplicate this fixture change.

Prepared in an isolated worktree from main 03d4bd4. No merge, release, production deployment, real send or ACK test is included. CI status is independent of the local checks above.

@abruption abruption added this to the v1.0.2 milestone Sep 27, 2026
@abruption
abruption merged commit fb55741 into main Sep 27, 2026
24 checks passed
@abruption
abruption deleted the fix/209-sqlite-fixtures branch September 27, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: close backup snapshot fixture SQLite connections explicitly

1 participant