Skip to content

LS-65: Fix procfs-dependent tests on macOS and close Store connections - #35

Open
Ferryyer wants to merge 1 commit into
mainfrom
agent/inspire-queue/47dff49b2476
Open

Ferryyer wants to merge 1 commit into
mainfrom
agent/inspire-queue/47dff49b2476

Conversation

@Ferryyer

Copy link
Copy Markdown
Owner

On macOS, stop tests that read Linux procfs fail during release validation. Gate the five procfs-dependent methods on /proc/self/status, retaining their original assertions and existing pidfd checks on Linux.

Make Store.connect() a context manager that preserves SQLite commit/rollback behavior and always closes the connection, including initialization errors. All Store callers already use it through with. Add regression tests for persisted commits, rolled-back writes, row access, and closed connections after either outcome.

Validation:

  • Full unittest discovery with -W default: Python 3.12.3 and Python 3.13.17 on Linux, 266 tests passed in each; all five procfs tests executed.
  • Simulated absent procfs while importing stop-test decorators: 266 tests passed, with exactly five Requires Linux /proc skips.
  • No SQLite ResourceWarning: unclosed database in either full run.
  • Both new lifetime tests fail against the original main implementation.
  • git diff --check passed.

Local discovery used a harness to redirect existing scratch fixtures to writable short paths for Unix sockets. Native macOS execution remains unverified. No release workflows or runtime service configuration changed.

Closes LS-65

Tracking issue: LS-65

Co-authored-by: multica-agent <github@multica.ai>
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.

1 participant