Repository navigation
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
|
I have read the CLA Document and I hereby sign the CLA |
|
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. |
|
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. |
45b00bb to
84b3696
Compare
oliverguenther
left a comment
There was a problem hiding this comment.
A first preliminary pass:
-
I've tested that the application works fine without pgvector
-
pgvector also needs to be added to our docker-compose and helm-charts, if we want to roll this out as a default
-
pgvector docker image is not a docker official image, so there are no guarantees on when updates will be available. This is an important caveat for production systems
-
The image is pushed only on a pgvector release. I have not found individual releases. This means this image would not get postgres security updates unless manually built by the maintainer.
If you take a look at the current known vulnerabilities in the image, this becomes apparent:
postgres:17 (trixie): 88 high (2 critical) CVEs
This PR suggests to change to pgvector:pg17, which is Debian bookworkm:
pgvector/pgvector:pg17 (bookworm!): 129 high (16 critical)
If nothing else, this image should at least be changed to pgvector/pgvector:pg17-trixie , which has 89 high (2 critical).
If we want to ship this for production-ready systems, it would be easier to have an image built on our systems using the same logic on a schedule, to make sure we have an updated postgres ready and are not waiting for a maintainer to build theirs. This adds extra complexity however.
- I'm not sure if the migration rake task extension works fine on saas, please double-check
|
Thanks for the review, I've updated the image references to use debian trixie based images. And I created a work package to track that we use a custom image instead: https://community.openproject.org/projects/AI/work_packages/AI-200/activity FYI, they are planning to drop support for postgres 13 and 14 with the Regarding
in case of a fresh installation the task would not run as we would load the schema directly. As far as I am aware, that was the only issue with the approach on saas. |
ea9da11 to
7a85490
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. |
7a85490 to
8cf949c
Compare
8cf949c to
dfc469f
Compare
dfc469f to
5eee7af
Compare
Generated by 🚫 Danger |
10953c0 to
f4c8eca
Compare
This reverts commit 9c05b334d41dcb0c06a667d050d464cb606c46ec.
This reverts commit daca53f7342f8e3c55002ebfb9e60f61e6ed78d3.
This reverts commit 52eedcdbe1c9bf186ac380748c4ab15d384330dc.
dd4ff6c to
145cc16
Compare
Ticket
https://community.openproject.org/projects/AI/work_packages/AI-180/
What are you trying to accomplish?
pgvectorextension because we need it for semantic searchpgvectormight not be available (third party extension) keep the migration optionalpgvectoris not available, disable features that depend on it (which is only semantic search for now)pgvectoris not available, show information after migration and in admin areaScreenshots
Information displayed to Admins:
What approach did you choose and why?
To enable
pgvector, I added a migration that usesExtensions::Baseas we do for the other extensions.I've included updates to CI, dev environements, installation scripts, etc. so that we include
pgvectoreverywhere.As far as I can tell, we don't have any "optional" migrations yet. I am expecting that we will make
pgvectormandatory in a future release too. For this reason I tried to keep everything as close to the existing patterns as possible.The approach to make
pgvectoroptional is therefore as follows:pgvectorlive in a separate directory (../migrate_requires_pgvector) which is not on the migrations_path used by Rails to run migrationsdb:migratewe use a rake task to try to enablepgvector, as a check to find out if we actually canpgvectorto the migrations_pathpgvectorBenefits:
pgvectormandatory we simply move the migrations to the usual path that is on Rails migration_pathpgvector, we catch all error cases (extension not available, not enough permissions, ..)Downsides:
pgvectoris strictly speaking obsolete at the moment, as our check will already enable itpgvectorto check again and get access to features that depend on itAlternatives considered:
pgvectormandatory -> could cause issues during upgradepgvectorfrom admin area at runtime -> I wanted to avoid that and stick as much as possible to existing patternsAI involvement
Collaborative – AI generated a substantial part of the code; I reviewed and understand every line.
Merge checklist