You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): git-sync/test_s7_reserve_instance_id.py::TestMigrationPreflight fails in full suite, passes in isolation #763
4 tests in tests/git-sync/test_s7_reserve_instance_id.py::TestMigrationPreflight fail when run as part of the full integration suite. All 4 pass when run in isolation.
This test is the runtime guard for the S7 partial UNIQUE index (agent_git_config (github_repo, working_branch) WHERE source_mode=0) — preserved as a load-bearing invariant by #714. Silent failure at suite level means the production preflight migration check isn't being verified on every PR.
All 4 TestMigrationPreflight tests pass when run (a) standalone, (b) in the full integration suite.
Root cause documented in PR description.
Add an order-independence pin in tests/conftest.py (or tests/git-sync/conftest.py) so the test's own DB seeding survives whichever earlier test pollutes state.
Investigation hints
Likely the same shape as #762 (sys.modules / db.connection.DB_PATH pollution from an earlier test). #714 already addressed a tests/unit/test_backlog.py:tmp_db leak that polluted db.connection.DB_PATH for unit tests; check whether a non-unit equivalent exists at integration tier.
Activity
fix(tests): order-independence pin for S7 migration preflight (#763) (#…
fix(tests): conftest sys.modules baseline + tests-side lint (closes #762
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
fix(tests): pin payments-py's transitive runtime set so CI matches th…