Skip to content

✨ Windmill: Add Postgres-Backed Integration Tests for SQL Logic#2518

Open
Findeton wants to merge 4 commits intomainfrom
fix/meta-11342/main
Open

✨ Windmill: Add Postgres-Backed Integration Tests for SQL Logic#2518
Findeton wants to merge 4 commits intomainfrom
fix/meta-11342/main

Conversation

@Findeton
Copy link
Contributor

@Findeton Findeton commented Mar 14, 2026

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an automated SQL regression test for Windmill’s “latest cast vote per voter” query by introducing a Postgres bootstrapping helper and wiring the ignored test into CI.

Changes:

  • Introduces TestDatabase helper to bootstrap a Postgres DB by extracting devcontainer init SQL and applying Hasura backend migrations.
  • Refactors find_area_ballots SQL construction into a helper that validates UUID inputs, and adds an integration test asserting latest vote selection per voter.
  • Adds a dedicated GitHub Actions job to run the ignored SQL regression test; updates .gitignore.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/windmill/src/test_database.rs New test-only Postgres bootstrap utility (init SQL extraction + migrations + optional local Postgres process).
packages/windmill/src/services/cast_votes.rs Adds UUID-validating SQL builder for the COPY query and an ignored integration test using TestDatabase.
packages/windmill/src/lib.rs Exposes test_database module under #[cfg(test)].
.github/workflows/tests.yml Adds CI job to run the ignored Windmill SQL regression test with a Postgres service container.
.gitignore Normalizes airgapped-artifacts ignore and adds beyond/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Findeton Findeton changed the title 🐞 Tally: add sql tests ✨ Windmill: Add Postgres-Backed Integration Tests for SQL Logic Mar 16, 2026
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.

2 participants