harbor run -t openthoughts/tasktrove-exp-rle-error-report-v3-5k-error-report-4408harbor download openthoughts/tasktrove-exp-rle-error-report-v3-5k-error-report-4408Title: Bug: Broken session-scoped OmniSciDB fixture and fragile temp resource cleanup in pytest config
Description: The current pytest OmniSciDB configuration contains a broken session-scoped connection fixture (session_con) and an under-hardened temporary resource lifecycle (e.g., temp_table). The fixture currently exhibits unreachable/duplicated code paths, does not reliably yield a live connection for teardown, and the temporary resource cleanup can fail or be flaky. This leads to indeterminate teardown behavior, potential resource leaks, and brittle tests. The requirements mandate a yield-based session_con fixture that mirrors the module-scoped connection, robust cleanup for temporary resources, precise typing and docstrings, and no public API changes beyond fixing teardown behavior.
Observed Behavior:
Expected Behavior:
Steps to Reproduce:
Environment:
Root Causes (as currently observed):
Proposed Fixes (What to implement):
Implement a proper session_con fixture:
Harden temp_table fixture cleanup:
Typing, docstrings, and consistency:
Maintain compatibility and non-intrusive changes:
Acceptance Criteria: