Skip to content

CI: provision Postgres so statepsql DB-backed tests run instead of skipping #83

Description

@bensonc

Follow-up from #82 review.

internal/state/db/statepsql DB-backed tests call newTestDB, which t.Skipfs when Postgres is unreachable. There is currently no .github/workflows in the repo, so nothing provisions PG and these tests are green no-ops in automation:

Ask

Add a CI workflow with a Postgres service and point PSQL/the test DSN at it so these guards actually run on PRs.

Note

The pure-in-memory batcher tests (incl. TestShardedBatcherFlushForShardSurfacesAsyncError, added in #82) do not need a DB and run anywhere — this issue is specifically about the DB-backed slice.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions