Skip to content

Update release-14 PostgreSQL images to 16.16, 17.12 and 18.7 - #268

Merged
ibrahim halatci (ihalatci) merged 5 commits into
release-14from
ihalatci-pg-images-citus-14
Nov 22, 2026
Merged

ibrahim halatci (ihalatci) merged 5 commits into
release-14from
ihalatci-pg-images-citus-14

Conversation

@ihalatci

@ihalatci ibrahim halatci (ihalatci) commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Update the existing supported PostgreSQL matrix to 16.16, 17.12 and 18.7 without adding unsupported majors or changing support categories.
  • Add each PostgreSQL major's Bookworm PGDG component, preserving exact server/client/server-dev/dbgsym and matching libpq pins (no prerelease libpq).
  • Dependency updates are main-only per the user's clarified scope. All task-introduced Python dependency upgrades and mitmproxy fork repinning have been removed. The four image requirements files are byte-identical to the release-14 baseline ed0dad9593112944a593e5aa4dedd90234b8d07a, retaining fork 70bad9a3c098f605e5f8b25553e5db5334018ff1 and Black 26.3.1.
  • Existing image runtimes and tools version remain unchanged. Net image diff is only the three PostgreSQL version lines and four per-major APT component additions.

Current dev publication

Image commit: 439dbb26ce189d64a6a913d7ecee010f2b03fae6. Development suffix: -dev-439dbb2.

Exact-commit build/publication workflow succeeded; all development jobs passed and both release publication jobs were skipped. All 14 exact-SHA GHCR manifests were independently fetched and match successful push-log digests:

  • ghcr.io/citusdata/{extbuilder,exttester,failtester,citusupgradetester}:{16.16,17.12,18.7}-dev-439dbb2
  • ghcr.io/citusdata/pgupgradetester:16.16-17.12-18.7-dev-439dbb2
  • ghcr.io/citusdata/stylechecker:0.8.33-dev-439dbb2

Build logs confirm baseline Python dependencies installed, including Black 26.3.1 in stylechecker. The entire image source tree matches the previously validated PG-only e2d5dee tree. No task-introduced dependency updates remain.

Current paired Citus validation

Paired consumer: citusdata/citus#8975, targeting release-14.0, at normalization head 77ed0e73f9b3f46c30d47b4045cb892e39500d12. It consumes the same verified -dev-439dbb2 images, including stylechecker 0.8.33. All five source dependency files remain byte-identical to untouched release-14.0 cefd6ce76bfbcfa76581b8fa274ec9c5f8766941, matching these image inputs. The normalization backport does not alter dependency pins or require an image rebuild.

Required CI passed in both full dispatch 44577717940 and PR Build & Test 44577726289 at that exact source head. Each completed with 148 successful jobs, 44 historical advisory failures and 2 skipped jobs. All PG16/17/18 query-generator and operations jobs, Worker N-1 coverage and style passed; there are no additional operations/Worker N-1/query-generator failures in these runs. Packaging-image builds 44577726465 also succeeded (23 successful jobs).

Overall Build & Test workflow conclusions remain failure, not all-green. The 44 remaining failures comprise 12 frozen-14.2 PG18 Lib/Coordinator N-1 jobs and 32 metadata flakiness jobs, also evidenced on untouched baseline run 42777074395. They are excluded from the required aggregate and have not been fixed or hidden by this image update. See the consumer PR for normalization changes and detailed source validation.

Historical evidence retained

  • At previous head bb7ef22170f6a12e3a1843296d54cae8383de94c, PR run 44080938711 passed required CI and packaging 44080938897 succeeded, while dispatch 44080929861 failed required PG17 operations on selected rebalance shard IDs 85674016/17 versus 85674020/21 in two output blocks, with unchanged row counts. PG18 Worker N-1 also differed in pt_1/pt_2 ordering in three catalog queries without ORDER BY. The source owner inspected complete diffs and unchanged baseline test SQL/shard_rebalancer.c; this was not represented as deterministic baseline reproduction or a green dispatch. Corresponding tests pass in both fresh current runs; no filtering or rerun of those old jobs hid the failures.
  • PR run 43426226146 at 1419228651f645f5cc79eb716a3e8ff95c04d840 failed PG17 query-generator and required CI. Its sole q70 mismatch (0 / NULL distributed versus 26 / 18.3333333333333333 local) was reproduced on untouched cefd6ce76bfbcfa76581b8fa274ec9c5f8766941, independently built with -Werror on previous PG17.11 (17.11-ved0dad9) and PG17.12. This predates the branch/minor update; passing current randomized runs do not establish that the exact saved q70 fixture or underlying bug is fixed.
  • Earlier dispatch 43423825467 passed its required aggregate with 44 advisory failures; it remains historical. Its -dev-bf6c2ae dependency-upgrade images are superseded by this release-baseline pair.
  • Initial paired run 43414593434 failed, including introduced compatibility/query-generator issues subsequently corrected in the consumer; it is not described as successful or entirely pre-existing failures.

Dependency rollback and verified source/image pairing are complete. No new image builds were needed for this evidence update. These results do not authorize a merge or stable promotion; neither has been performed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep server, client, server-dev and debug packages pinned while allowing compatible libpq packages from PGDG.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore exact libpq versions alongside pinned PostgreSQL packages without selecting prerelease libpq.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Generate base and dev-only exports using pipenv 2025.0.3 from citusdata/citus@d4f1fd2. Preserve unrelated pins, Python runtime and matched PostgreSQL/libpq versions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove task-introduced dependency updates and fork repinning: dependency updates are main-only. Preserve PostgreSQL minor updates and per-major PGDG components with matching libpq pins.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ihalatci ibrahim halatci (ihalatci) changed the title Update release-14 PostgreSQL images and Python dependencies Update release-14 PostgreSQL images to 16.16, 17.12 and 18.7 Nov 17, 2026
@ihalatci
ibrahim halatci (ihalatci) merged commit d742f20 into release-14 Nov 22, 2026
16 checks passed
ibrahim halatci (ihalatci) added a commit to citusdata/citus that referenced this pull request Nov 22, 2026
Pair with citusdata/the-process#268, merged as d742f20d2d25c3e03c43ab1c685382c77c451a36; stable publication 45002751043.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ibrahim halatci (ihalatci) added a commit to citusdata/citus that referenced this pull request Nov 26, 2026
DESCRIPTION: Update PostgreSQL 16/17/18 and related compatibility
handling.

**Current stable-image head `d9a556c1ff9e6f7fefdf1e555a58671c9345189c`:
suffix-only promotion to `-vd742f20`.** Paired with merged
[citusdata/the-process#268](citusdata/the-process#268),
exact merge/image SHA `d742f20d2d25c3e03c43ab1c685382c77c451a36`.
[Stable publication
45002751043](https://github.com/citusdata/the-process/actions/runs/45002751043)
succeeded: all release jobs passed, dev jobs skipped; the image owner
independently verified all 14 exact-merge manifests and matching push
digests. All four per-PG families for 16.16/17.12/18.7, pgupgradetester
16.16-17.12-18.7, and stylechecker 0.8.33 use this suffix. The image
source comparison from the previously validated development revision has
no file changes; baseline dependencies are retained. Actual
PG/server/libpq versions remain matched, including PG18 package revision
18.7-1.pgdg12+5 (upstream 18.7 unchanged).

[Full stable-image Build & Test
45003337608](https://github.com/citusdata/citus/actions/runs/45003337608)
was dispatched with `skip_test_flakyness=false`. New-head results are
pending, not inherited from the previous head. Only the workflow suffix
was committed/pushed; no dependency or planner changes were published,
and this PR has not been merged.

**q13/q70 disclosure:** both saved complete fixtures remain unfixed in
the published source. The independently proven query-local
relation-index collision is tracked by
[#8838](#8838); the existing
correction is [#8842](#8842). Its
local-only release14 adaptation passed strict builds, focused 8-test
schedules and both original complete 250-query distributed/local
workloads on PG16.16/17.12/18.7, including a PG18 negative control. That
three-file correction is deliberately uncommitted/unpublished pending
separate authorization. These references do not close the main issue.
Stable-image promotion and randomized green runs do not establish that
the published source fixes these workloads.

**Historical development-image validation below refers to
`707d96fab6bf7b687b455e963377b3d108e94b72`, not the new stable-image
gate.** Required CI and style passed in both [full dispatch
44731403982](https://github.com/citusdata/citus/actions/runs/44731403982)
and [PR Build & Test
44731409394](https://github.com/citusdata/citus/actions/runs/44731409394).
All 32 flakiness jobs passed in each run: 64 actual advisory executions,
no skips. [Packaging
44731409419](https://github.com/citusdata/citus/actions/runs/44731409419)
passed all 23 jobs. Actual Codecov checks passed: project **88.26%
against unchanged 87.50%**, patch **97.59% against 75%**.

Overall historical workflows were still **failure**, not green. The PR
run retained 12 frozen-14.2 PG18 Lib/Coordinator N-1 failures. The
dispatch additionally had a SQL N-1 PG18 check-split job whose exact
step metadata reported **Run Test success**, failure in
**save_logs_and_results**; its logs returned HTTP404/stream errors and
no matching SQL-N-1 artifact was published, so no SQL regression or
baseline attribution is claimed for that artifact-publication failure.
These groups remain disclosed and unsuppressed.

**Coverage report recovery at the historical head:** initial project
86.44% had 149 accepted uploads stuck `started` without totals,
including all six create-Citus reports from both runs; 152 reports were
merged. A single bounded [successful PG18 create-Citus suite
rerun](https://github.com/citusdata/citus/actions/runs/44731409394/job/136298300373)
at unchanged head uploaded a genuine 5,516,306-byte report with HTTP200,
restoring 1,197 covered lines (56,646 to 57,843 of 65,530). The actual
GitHub project check then passed at 88.26%. The PR workflow's attempt2
still retained historical N-1 failures. No source, threshold, ignores,
dependency or result filtering changed for coverage recovery, and no
failing tests were blanket-rerun away.

**Surgical test-flakiness corrections:** `55eb90b68` disables
propagation before creating the local replay-security schema, matching
its local-only teardown. `3447df177` removes the four auxiliary schemas,
sequence/extension and tenant role after all non-superuser metadata
assertions, preventing stale ownership and distributed-sequence reuse.
`47b540b61` restores the coordinator metadata entry at the start of
foreign-server replay testing, because that fixture requires and later
removes it. `1e7346233` orders five partition membership/bound queries
by child name and corrects the introduced expected-header normalization
issue. `707d96fab` orders two independently reproduced
exclusion-constraint catalog permutations and extends the existing
optional `Planning:` label filter to nested worker indentation; all
memory, timing and plan content remains asserted. Three corresponding
expected label lines/row counts were updated. No security/result
assertions were weakened, errors blessed, tests skipped, product
behavior changed or dependencies upgraded.

Focused validation on actual PG16.16/17.12/18.7: `make -C
src/test/regress check-custom-schedule SCHEDULE=metadata_repeat_schedule
WORKERCOUNT=2`, `SCHEDULE=object_metadata_repeat_schedule`, and
`SCHEDULE=foreign_server_repeat_schedule` — each passed all 13 tests on
each major (three prerequisites plus ten fixture repetitions). `make -C
src/test/regress check-custom-schedule SCHEDULE=pg17_repeat_schedule
WORKERCOUNT=2` — final 15 tests passed on every major, including ten
full PG17 fixtures and a controlled assertion that both
indented/unindented optional labels are removed while scan/timing lines
survive. Original fixture failures were reproduced before correction;
subsequent CI independently passed their eight repetitions. The
temporary PG17 schedule initially omitted its documented
behavioral-analytics prerequisite; adding that prerequisite fixed only
the validation harness. Actual full style and expected-output
normalization checks passed at the historical head.

Updates supported PostgreSQL versions to **16.16, 17.12, and 18.7**,
including PG18 SQL snapshots, upgrade-image combinations and
development-container PostgreSQL pins. Support categories remain
unchanged.

**Dependency upgrades are main-only.** Both regression Pipfile/lockfile
pairs and development-container formatter requirements match untouched
release14 baseline `cefd6ce76bfbcfa76581b8fa274ec9c5f8766941`, including
mitmproxy ref `70bad9a3c098f605e5f8b25553e5db5334018ff1`. No optional
dependency upgrade remains in final dependency files; contributor work
through `65233c58bc8e747e804389d2af747266685e4723` is preserved.

**Historical verified development-image pair, now superseded only by the
stable suffix:** `-dev-439dbb2`, from `citusdata/the-process` commit
`439dbb26ce189d64a6a913d7ecee010f2b03fae6`, [successful exact-SHA
publication
44079514035](https://github.com/citusdata/the-process/actions/runs/44079514035).
The image owner verified all 14 manifests/digests and four baseline
dependency exports, including Black 26.3.1/original fork.
PostgreSQL/per-major matched libpq remain updated. Earlier
dependency-upgrade images are superseded.

**Focused normalization backport:** `77ed0e73f` backports main
`48be61fc2eabb8fe6bd01d5b227ca9fa958902ba` here, not in the competing
PR. Normalization runs after initial PostgreSQL planning and
subquery/CTE replanning, not the fast path, with identities assigned
first. Modifying CTEs/surviving distributed relations no longer exclude
it. Empty-subquery replacements clear inheritance and repair
dropped-column numbering, aliases, parent join mappings,
whole-row/correlated references and multiple replacements. Existing
remote-only coverage, earlier bitmapset/nulling-identity compatibility,
coordinator-only fixtures and contributor fixes remain intact.

Normalization validation: `make -j4` with configured `CFLAGS=-Werror` —
passed on PG16.16/17.12/18.7. `make -C src/test/regress
check-custom-schedule SCHEDULE=bitmap_compat_schedule WORKERCOUNT=2` —
all 16 tests passed each major, including CTE side effects (99
remaining), surviving distributed subquery, dropped aliases,
whole-row/correlated references and remote-only LEFT/RIGHT counts101.
Exact uncrustify0.82.0/stylechecker0.8.33 checks and full-CI style
passed. An initial temporary-schedule missing-table failure was
corrected by loading prerequisites.

**Honest prior CI history:**

- At `1e7346233`, [full
44725641422](https://github.com/citusdata/citus/actions/runs/44725641422)
and [PR
44725649245](https://github.com/citusdata/citus/actions/runs/44725649245)
passed required CI/style; coverage passed 88.28%/97.59%. Dispatch
exposed the indented optional planning label now corrected; remaining
jobs were naturally cancelled by the newer head, not counted as passes.
Packaging passed.
- At `47b540b61`, [full
44718771946](https://github.com/citusdata/citus/actions/runs/44718771946)
and [PR
44718779246](https://github.com/citusdata/citus/actions/runs/44718779246)
failed introduced expected-header normalization, subsequently corrected;
intermittent partition permutations were fixed without changing
rows/bounds. Packaging passed.
- At `3447df177`, [dispatch
44713089243](https://github.com/citusdata/citus/actions/runs/44713089243)
passed required CI; [PR
44713096152](https://github.com/citusdata/citus/actions/runs/44713096152)
failed on a PG17 query-generator 20-minute timeout (not a reported wrong
result) and PG18 SQL-N-1 TOAST frozen-XID advancement assertion. Both
retained32 coordinator-prerequisite repeat failures subsequently fixed.
Packaging and coverage88.49%/97.59% passed. No baseline attribution is
claimed for the timeout/TOAST failures.
- At `55eb90b68`, [full
44708345432](https://github.com/citusdata/citus/actions/runs/44708345432)
and [PR
44708324909](https://github.com/citusdata/citus/actions/runs/44708324909)
passed required CI/coverage; packaging passed;32 advisory repeats
exposed the auxiliary-fixture leak subsequently fixed.
- At `77ed0e73f`, [full
44577717940](https://github.com/citusdata/citus/actions/runs/44577717940)
and [PR
44577726289](https://github.com/citusdata/citus/actions/runs/44577726289)
passed required CI/packaging but retained44 advisory failures also
present on [untouched
baseline42777074395](https://github.com/citusdata/citus/actions/runs/42777074395).
An earlier missing-create-Citus report recovery restored actual project
coverage from86.62% to88.39%, thresholds unchanged.
- Earlier
[dispatch44080929861](https://github.com/citusdata/citus/actions/runs/44080929861)
failed chosen move-shard IDs and unordered partition rows while its
paired PR passed. Old failures were not filtered or blanket-rerun.

**Baseline-proven saved q70:** [earlier
PR43426226146](https://github.com/citusdata/citus/actions/runs/43426226146)
produced distributed `0 / NULL` versus local `26 / 18.3333333333333333`.
Entire untouched release14 source built with `-Werror` on previous
PG17.11 and PG17.12 reproduces the identical sole mismatch in exact
saved artifact14038580795. It predates this source and minor update.
Subsequent root investigation established the shared q13/q70 collision
noted above; the validated local correction has not been published. No
expected errors were masked.

Only stable-image suffix publication is included in the latest commit.
No merge or planner-fix publication is included.

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
Co-authored-by: Colm McHugh <colm.mchugh@gmail.com>
Co-authored-by: Muhammad Usama <m.usama@gmail.com>
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.

1 participant