Repository navigation
Default managed installations to PostgreSQL 18 with pgvector - #26780
Conversation
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
oliverguenther
left a comment
There was a problem hiding this comment.
Appears to work fine on a local PG17 started from stable/17. We'll want this against release/18.0 to include it as part of 18.0
Remove extension creation from database provisioning and require tests to verify availability without activation. Restore the PostgreSQL 13 migration guide and links, and align current installation guidance.
Preserve the release branch helper that installs pgvector for existing managed databases. Verify that reconfiguration retains PostgreSQL 17 and leaves extension activation to application migrations.
2754a20 to
3ccab96
Compare
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
machisuji
left a comment
There was a problem hiding this comment.
LGTM (I did push some corrections directly myself).
oliverguenther
left a comment
There was a problem hiding this comment.
The addon-postgres could easily be it's own repository, then we wouldn't bloat up the workflows. The changes itself look fine to me.
The tests in docker/tests/postgresql were never run automatically and only cover the one-off PostgreSQL 17 to 18 upgrade. They are kept on the auto/postgresql-18-tests branch for running manually. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
we do this to be able to control security updates
|
Moved manual docker/tests into separate branch for future reference should we need it and removed the mostly dead code from this branch. I suggest we move the packaging tests along with the whole packager addon into a separate repository in a separate step. For now we keep it here. Once CI is green this can at last be merged. |
What are you trying to accomplish?
New managed installations use PostgreSQL 18 with pgvector. Existing packaged databases keep their current major. AIO now rejects a configured/data-version mismatch with an explicit pin or upgrade instruction, instead of silently selecting the older server.
Bundle only PostgreSQL 17 and 18, with matching pgvector packages. PostgreSQL 13/15 users retain their previous image until dump/restore. Retain the historical PostgreSQL 13 migration guide and links for older installations.
Make pgvector available without creating the extension during provisioning. Application migrations in #26210 own extension creation for fresh and existing databases. Update development/CI database defaults and client tools, repair the bundled 17→18 upgrade helper for checksum settings and statistics collection, and document migration, pinning, activation, and rollback.
The production Compose change is a companion draft PR. Replacing the Helm Bitnami dependency remains a separate follow-up.
WP: https://community.openproject.org/projects/OP/work_packages/OP-20725/activity
Validation of this revision
Rebased onto
release/18.0on 2026-11-16. Preserved its pgvector package helper and application migrations from #26210. Re-ran AIO provisioning, package provisioning, clean Debian 12 installation, and PostgreSQL 17→18 upgrades with checksums on/off; all passed. Adversarial and architectural reviews found no substantive issues.Earlier image and upgrade validation
The following checks ran before provisioning-time activation was removed. They cover the previous images; current provisioning behavior is validated above.
Actual production Dockerfiles built successfully on Linux ARM64 with
BIM_SUPPORT=false, for bothall-in-oneandslim, against the current dev base.postgres-db-upgrade, then started OpenProject 18.0.0 on PostgreSQL 18.6.AMD64/BIM Docker image builds and the remaining supported OS installation matrix still need release validation. The full application test suite was not run locally; CI remains required before merge.
Earlier full-package validation (2026-11-10)
All five jobs in the package build passed: Debian 11/12, Ubuntu 22.04, EL9, and SLES15. Tested actual published AMD64 packages on four disposable EC2 instances:
systemctl stop openproject(the packaged CLI has nostopcommand), and explicitly create the PostgreSQL 18 cluster on Debian/Ubuntu when installation does not create it. The dump example now includes the wizard's default port, 45432. Both migrations passed with these corrected steps.AIO vector validation also passed: automatic activation on a fresh database, working distance queries, and vector data preserved through 17→18
pg_upgradewith checksums on and off.Packages for reviewers
Browse all packages for this branch on go.packager.io.
18.0.0-1794235361.3780fde.ubuntu2218.0.0-1794235344.3780fde.el9These packages were built from
3780fde0b7479ebddedc5ec7d28226a05862bed7and still activate vector during provisioning. They do not include this revision's removal of that behavior. They are published only toauto/postgresql-18, not a stable channel. Use a disposable test machine and the migration guide for existing databases.Ticket
Related extension work: AI-180 and #26210. This PR covers distribution defaults and provisioning; it does not add a required application migration for vector.
AI involvement
Autonomous – AI implemented and validated the changes, including the requested updates following human review.
Merge checklist