Repository navigation
chore: make PostgreSQL 16 the 10.x floor, and run the integration suites on 16 and 18 - #218
Merged
Merged
Conversation
…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]>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #215
Stacked on #217 (#216): the PostgreSQL 16 leg passes only with #217's probe fix. Retarget to
mainonce #217 merges.Problem
SECURITY.md said the 10.x line targets PostgreSQL 14+. Nothing below 16 was ever tested:
pg_input_is_valid, which PostgreSQL 16 added.RangeAggover a multirange column needsrange_agg(anymultirange), which 14 doesn't have.The maintainer set the 10.x floor at 16, the same as 11.x.
Change
Stated floor
PostgreSQL 16+for 10.x.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
test/CodoMetis.ValueRanges.EFCore.PostgreSQL.IntegrationTests/PostgresServer.cs, linked into both integration projects. The shared container's image comes fromVALUERANGES_POSTGRES_IMAGE, defaulting topostgres:16-alpine.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.ComplexIndexesCrossTestsis unchanged.CI (
.github/workflows/dotnet.yml)integration-legsis a matrix of[16, 18]that runs everytest/*IntegrationTests/with the image set.fail-fast: false.main, and a matrix job would report "Integration (PostgreSQL 16)" and "(PostgreSQL 18)" instead. So a smallintegrationjob keeps that exact name: itneedsthe legs, runsif: always(), and passes only when both legs passed.packstill needs[test, integration], and branch protection needs no change.ReleaseWiringConventionTests:TheRequiredChecks_AreStillJobNames: the four checks branch protection requires ("Test (ubuntu-latest)", "Integration (live PostgreSQL)", "Pack", "Consumer smoke test") must stay literal job names indotnet.yml.TheIntegrationGate_PassesOnlyWhenEveryLegPassed: the gate must need the legs, run withif: always(), and pass only onsuccess. This matters because a gate skipped after a failed leg would read as passed.if: always()fails the second.release.yml's singledotnet testruns on the default (16). A comment there says so.Coordination: #214 also edits
dotnet.yml(global-json-file). The two changes touch different lines, so whichever lands second updates from main.Tests
VALUERANGES_POSTGRES_IMAGE=postgres:18-alpine): 256 + 4 passed.The container (postgres:15-alpine) runs PostgreSQL 150019, below the 10.x floor 160000 (PostgreSQL 16). Set VALUERANGES_POSTGRES_IMAGE to a supported image.NestedEmptyArrays_…("Int32Set does not read {{}} as {}"), whichever image the shared container runs.ReleaseWiringConventionTestsstill pass, and thepull_requesttrigger is unchanged.🤖 Generated with Claude Code