Skip to content

fix: test pg13-18 in CI for old version compat - #1401

Merged
ferhatelmas merged 1 commit into
masterfrom
ferhat/pg13
Sep 16, 2026
Merged

ferhatelmas merged 1 commit into
masterfrom
ferhat/pg13

Conversation

@ferhatelmas

@ferhatelmas ferhatelmas commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

PG15 is used in CI but we aim pg13+ compatibility.

What is the new behavior?

Use pg13 in CI by default to ensure that old version is compatible.
Run integration tests with from 13 to 18.

Additional context

Related to #1400

Copilot AI lite review requested due to automatic review settings September 16, 2026 19:16
@ferhatelmas
ferhatelmas requested a review from a team as a code owner September 16, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, straightforward CI/infra config change.

What was reviewed: the docker-compose image tags for tenant_db/multitenant_db now use a ${POSTGRES_VERSION:-15} substitution instead of hardcoded tags, defaulting to 15 for unaffected consumers; the new POSTGRES_VERSION: "13" env blocks in ci.yml (workflow-level) and acceptance.yml (job-level) correctly override the default so CI/acceptance test against pg13. No code logic, auth, or data-handling paths are touched.

Extended reasoning...

Overview

The PR touches only three CI/infra files: .docker/docker-compose-infra.yml, .github/workflows/acceptance.yml, and .github/workflows/ci.yml. It replaces hardcoded Postgres image tags (pg15/15) with a ${POSTGRES_VERSION:-15} shell-style variable substitution (default 15), and adds POSTGRES_VERSION: "13" env vars at the workflow level in ci.yml and job level in acceptance.yml, so CI now exercises Postgres 13 while other consumers of the compose file keep the prior default of 15.

Security risks

None. This is a version-pinning change for a test/dev database image; no secrets, auth, or permission logic is touched, and the env var substitution syntax used (${VAR:-default}) is standard docker-compose behavior, not a shell-injection vector since it's resolved by docker compose itself from a controlled, non-user-supplied environment variable.

Level of scrutiny

Low. This is a small, mechanical, well-scoped config change consistent with the stated goal (testing pg13+ compatibility) and matches the PR description. The diff is easy to verify by inspection — three small hunks, correct YAML placement (env block correctly placed between permissions and concurrency in ci.yml, and at job level in acceptance.yml), and no other workflow references were left inconsistent.

Other factors

No CODEOWNERS restriction applies (none of the changed files matched an owned path in this repo, and none was found). No open review threads or CHANGES_REQUESTED states in the timeline. The bug hunter found no issues, consistent with the change's simplicity.

@coveralls

coveralls commented Sep 16, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 35142878596

Coverage increased (+0.09%) to 82.844%

Details

  • Coverage increased (+0.09%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14072
Covered Lines: 12107
Line Coverage: 86.04%
Relevant Branches: 8602
Covered Branches: 6677
Branch Coverage: 77.62%
Branches in Coverage %: Yes
Coverage Strength: 3022.86 hits per line

💛 - Coveralls

Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>
@ferhatelmas ferhatelmas changed the title fix: use pg13 for old version compat fix: test pg13-18 in CI for old version compat Sep 16, 2026
@ferhatelmas
ferhatelmas merged commit 228c95c into master Sep 16, 2026
40 checks passed
@ferhatelmas
ferhatelmas deleted the ferhat/pg13 branch September 16, 2026 20:00
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.

4 participants