Skip to content

FIX MOSSBench and VLSU SQLite isolation collisions (#2775) - #2781

Merged
Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
Kaap10:fix/mossbench-sqlite-isolation-2775
Sep 23, 2026
Merged

Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
Kaap10:fix/mossbench-sqlite-isolation-2775

Conversation

@Kaap10

Copy link
Copy Markdown
Contributor

Description

Fixes #2775.

The TestMossBenchDataset and TestVLSUMultimodalDataset classes previously relied on their own custom setup_memory fixtures which explicitly constructed default, file-backed SQLiteMemory() instances. This bypassed the isolated sqlite_instance fixture introduced in PR #2640, leading to OperationalError during concurrent test execution when multiple workers attempted to apply schema migrations to the same default database file.

This PR removes the custom memory setup routines and natively adopts the isolated sqlite_instance fixture for both dataset tests, guaranteeing isolated in-memory databases and scoped temporary results paths.

Note: While the exact original remote collision mechanism in #2775 remains unproven, this fix deterministically removes the precondition (shared file-backed memory) that enabled the collision.

Tests and Documentation

  • Replaced setup_memory in test_mossbench_dataset.py and test_vlsu_multimodal_dataset.py with @pytest.mark.usefixtures("sqlite_instance").
  • Added explicit deterministic coverage tests (test_dataset_uses_isolated_memory_and_results_path) to both classes to formally prove that tests now run against :memory: and use an absolute, non-default temporary path for results.
  • Verified that make unit-test passes on 4 workers cleanly without SQLite collisions.

JupyText execution was not required for this PR as changes are strictly limited to internal unit test fixtures and do not affect public APIs or documentation.

@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Sep 23, 2026
Merged via the queue into microsoft:main with commit beff212 Sep 23, 2026
41 checks passed
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.

BUG MOSSBench unit-test setup fails with an existing SQLite table

2 participants