Skip to content

chore: make PostgreSQL 16 the 10.x floor, and run the integration suites on 16 and 18 - #218

Merged
CaffeinatedCoder merged 3 commits into
mainfrom
chore/postgres-floor-16
Oct 18, 2026
Merged

CaffeinatedCoder merged 3 commits into
mainfrom
chore/postgres-floor-16

Conversation

@CaffeinatedCoder

@CaffeinatedCoder CaffeinatedCoder commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Closes #215

Stacked on #217 (#216): the PostgreSQL 16 leg passes only with #217's probe fix. Retarget to main once #217 merges.

Problem

SECURITY.md said the 10.x line targets PostgreSQL 14+. Nothing below 16 was ever tested:

The maintainer set the 10.x floor at 16, the same as 11.x.

Change

Stated floor

  • SECURITY.md: PostgreSQL 16+ for 10.x.
  • The root README and both EF package READMEs say "It needs PostgreSQL 16 or later". The README's "Verified against PostgreSQL" section says CI runs 16 and 18.
  • Facts about when PostgreSQL added something ("PostgreSQL 14+ auto-creates timemultirange", "a PostgreSQL 14+ multirange") stay as they are.

What can break you

  • docs/migration.md: the v9.x list opens with the floor, and a new section, "Run PostgreSQL 16 or later", gives the reasons and what to expect on 14 and 15.
  • CHANGELOG.md: a 10.0.0 → Breaking entry. The summary line is capped at 40 words (ChangelogConventionTests), so the floor lives in the Breaking entry.

The test server

  • New test/CodoMetis.ValueRanges.EFCore.PostgreSQL.IntegrationTests/PostgresServer.cs, linked into both integration projects. The shared container's image comes from VALUERANGES_POSTGRES_IMAGE, defaulting to postgres:16-alpine.
  • A server below 16, read from server_version_num, fails every test that needs it, Docker or not, instead of letting the sweeps compare 0 literals. This is the optional guard from the issue.
  • LiteralGrammarParityTests.NestedEmptyArrays_… relied on the shared container being 17. It now starts its own 16, 17 and 18 and reads each major from the server. ComplexIndexesCrossTests is unchanged.

CI (.github/workflows/dotnet.yml)

  • integration-legs is a matrix of [16, 18] that runs every test/*IntegrationTests/ with the image set. fail-fast: false.
  • "Integration (live PostgreSQL)" is a required status check on main, and a matrix job would report "Integration (PostgreSQL 16)" and "(PostgreSQL 18)" instead. So a small integration job keeps that exact name: it needs the legs, runs if: always(), and passes only when both legs passed. pack still needs [test, integration], and branch protection needs no change.
  • New convention tests in ReleaseWiringConventionTests:
    • TheRequiredChecks_AreStillJobNames: the four checks branch protection requires ("Test (ubuntu-latest)", "Integration (live PostgreSQL)", "Pack", "Consumer smoke test") must stay literal job names in dotnet.yml.
    • TheIntegrationGate_PassesOnlyWhenEveryLegPassed: the gate must need the legs, run with if: always(), and pass only on success. This matters because a gate skipped after a failed leg would read as passed.
    • Seeded: removing the gate fails both tests, and dropping if: always() fails the second.
  • release.yml's single dotnet test runs on the default (16). A comment there says so.
  • CONTRIBUTING.md and AGENTS.md name the variable and the default.

Coordination: #214 also edits dotnet.yml (global-json-file). The two changes touch different lines, so whichever lands second updates from main.

Tests

  • 16 (default): main integration project 256 passed (once the nested-empty test asked its own 17), InfinityDisabled 4 passed.
  • 18 (VALUERANGES_POSTGRES_IMAGE=postgres:18-alpine): 256 + 4 passed.
  • 15: every database test fails with The container (postgres:15-alpine) runs PostgreSQL 150019, below the 10.x floor 160000 (PostgreSQL 16). Set VALUERANGES_POSTGRES_IMAGE to a supported image.
  • The nested-empty seed still fails NestedEmptyArrays_… ("Int32Set does not read {{}} as {}"), whichever image the shared container runs.
  • Conventions 395 passed, ASP.NET Core 92 passed. Both workflows parse; ReleaseWiringConventionTests still pass, and the pull_request trigger is unchanged.
  • Not verified: the new CI legs themselves. They run for the first time on this PR.

🤖 Generated with Claude Code

…tes on 16 and 18

SECURITY.md said the 10.x line targets PostgreSQL 14+, but nothing below 16 was ever tested: the
literal oracles need pg_input_is_valid (16+), RangeAgg over a multirange column needs
range_agg(anymultirange), which 14 lacks, and 15 and older reject the integer forms read since
#127. The maintainer set the floor at 16, as for 11.x (#215).

- SECURITY.md, the root and EF package READMEs state 16+; facts about when PostgreSQL added
  something stay. docs/migration.md (v9.x) and the 10.0.0 Breaking list say what changed and why.
- PostgresServer.cs, linked into both integration projects: the shared container's image comes from
  VALUERANGES_POSTGRES_IMAGE, default postgres:16-alpine, and a server below 16 (read from
  server_version_num) fails every test that needs it instead of letting sweeps compare nothing.
- CI: the integration job becomes two legs, PostgreSQL 16 and 18, and a job keeping the required
  check's name "Integration (live PostgreSQL)" that passes only when both legs passed.
- LiteralGrammarParityTests' nested-empty test asks three containers of its own (16, 17, 18) and
  reads each major from server_version_num, since the shared one no longer runs 17.

Measured: both integration projects pass on 16 (256 + 4) and 18 (256 + 4); on 15, 51 of the 52
tests the probe filter selects fail with "runs PostgreSQL 150019, below the 10.x floor".

Closes #215

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 10.0.0 milestone Oct 18, 2026
@CaffeinatedCoder CaffeinatedCoder added chore Build, CI, packaging, refactoring with no behaviour change breaking Changes an answer or a signature — needs a major package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL area/release Versioning, changelogs, release wiring package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime stacked Base is another open PR; merge in order, CI does not run until it targets main labels Oct 18, 2026
main's branch protection requires "Test (ubuntu-latest)", "Integration (live PostgreSQL)", "Pack"
and "Consumer smoke test" by name, and is configured on GitHub. Splitting the integration job into
a matrix renames its checks, so #218 keeps a gate job with the required name; nothing held that.

TheRequiredChecks_AreStillJobNames requires each name as a literal job name in dotnet.yml, and
TheIntegrationGate_PassesOnlyWhenEveryLegPassed requires the gate to need the legs, run with
if: always() and pass only on success (a skipped gate reads as passed). Seeded: removing the gate
fails both; dropping if: always() fails the second.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from test/corpus-nested-empty-version-split to main October 18, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring breaking Changes an answer or a signature — needs a major chore Build, CI, packaging, refactoring with no behaviour change package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime stacked Base is another open PR; merge in order, CI does not run until it targets main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The 10.x PostgreSQL floor is 16, not 14: state it, and test it in CI

1 participant