Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

Let backend adapters create fresh databases for shared tests - #3802

Merged
adamtheturtle merged 1 commit into
mainfrom
codex/backend-database-factory-20261028
Oct 28, 2026
Merged

adamtheturtle merged 1 commit into
mainfrom
codex/backend-database-factory-20261028

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

The shared report fixture constructed a concrete mock database before passing it to an adapter. Replace that input contract with CreateCloudDatabase, which returns read-only named credentials. Each adapter now owns construction and registration, and the shared fresh_database fixture delegates creation to it. Keep the concrete database-adder inside the adapter and reuse it for fresh and rate-limited databases.

Towards #3738.

Validation:

  • Existing tests: 54 passed, 1 skipped in 26.27s.
  • Pre-commit and pre-push hooks passed, including type checkers and CI partition checks.
  • git diff --check passed.
  • Pylint passed for the changed Python files.

Hosted CI will run on the published branch.

@adamtheturtle
adamtheturtle merged commit c9b6619 into main Oct 28, 2026
11 checks passed
@adamtheturtle
adamtheturtle deleted the codex/backend-database-factory-20261028 branch October 28, 2026 16:21

This branch was successfully deployed

1 active deployment
development — 16a9802b Deployed Oct 28, 2026 by adamtheturtle via pages #2530
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant