test: reconcile P4.2 PostgreSQL integration split - #38
Merged
Conversation
tests/test_pg_integration.py (3611 lines, 20 test classes) becomes tests/pg/ -- twelve domain-grouped files (schema/init, outbox ingestion, sprint+track, work item, event+takeup, claim, ref+dep, remote recovery, ndjson round-trip, maintain, authority, capability admission) sharing one tests/pg/_shared.py module for the pg_test_scope/store fixtures, skip machinery, and helpers, registered for the whole directory by tests/pg/conftest.py. Module-scoped fixtures now instantiate once per split file instead of once for the whole former monolith -- more PG connections and repo scopes, but each file collects and runs independently, matching the item's stated goal (faster, focused tests, parallelizable in CI). Verified zero regressions: full SQLite+PG suite unchanged at 1660 passed, 8 pre-existing unrelated failures, 3 skipped (same baseline as before the split). Updated the doc/CI references that named the old single file (docs/guides/postgres-integration-tests.md, .github/workflows/ci.yml, tests/test_core.py, tests/test_db_recover.py, sprintctl/workitemcore.py).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reconcile the P4.2 PostgreSQL integration test split on merged
main(c7de104):tests/pg/split fromcc97543;psycopgdependency is absent;tests/pg/;Verification
uv run --extra dev --extra remote pytest -q --collect-only tests/pg— 126 collecteduv run --extra dev pytest -q tests/pg— 126 skipped cleanly withoutSPRINTCTL_TEST_PG_URLgit diff --check— clean/tmpcloneThe disposable PostgreSQL run requires an explicitly provisioned
SPRINTCTL_TEST_PG_URLand was not attempted here.