-
Notifications
You must be signed in to change notification settings - Fork 4
feat: update test configuration to use specific PostGIS version and improve database readiness checks #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,15 +31,26 @@ jobs: | |||||
| SESSION_SECRET_KEY: supersecretkeyforunittests | ||||||
| AUTHENTIK_DISABLE_AUTHENTICATION: 1 | ||||||
|
|
||||||
| services: | ||||||
| postgis: | ||||||
| image: postgis/postgis:17-3.5 | ||||||
| # don't test against latest. be explicit in version being tested to avoid breaking changes | ||||||
| # image: postgis/postgis:latest | ||||||
| env: | ||||||
| POSTGRES_PASSWORD: postgres | ||||||
| POSTGRES_PORT: 5432 | ||||||
| options: >- | ||||||
| --health-cmd pg_isready | ||||||
|
||||||
| --health-cmd pg_isready | |
| --health-cmd pg_isready -U postgres -d postgres |
Copilot
AI
Mar 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PostGIS service configuration is duplicated in both unit-tests and bdd-tests. To reduce drift, consider factoring this into a reusable workflow (workflow_call) or using YAML anchors (if accepted in this repo’s workflow style) so the service definition is maintained in one place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
POSTGRES_PORThere is set as an environment variable inside the service container, but it does not configure Postgres’ listen port (Postgres listens on 5432 by default) and it is not exported to the job steps. If the tests/app needPOSTGRES_PORT, set it under the job-levelenv:instead; otherwise, remove it to avoid implying it has an effect. (Same issue in the duplicated block in thebdd-testsjob.)