Skip to content

Commit

Permalink
Realtime embedding updates (#38)
Browse files Browse the repository at this point in the history
- Implements triggers to the table applied in vectorize.table that handle row updates.
- changes default schedule parameter to realtime
  • Loading branch information
ChuckHend authored Jan 29, 2024
1 parent f59f13a commit 454af54
Show file tree
Hide file tree
Showing 15 changed files with 3,749 additions and 140 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/extension_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
name: Run tests
needs: dependencies
runs-on: ubuntu-22.04
services:
# Label used to access the service container
vector-serve:
image: quay.io/tembo/vector-serve:latest
ports:
- 3000:3000
steps:
- uses: actions/checkout@v2
- name: Install Rust stable toolchain
Expand All @@ -104,16 +110,23 @@ jobs:
key: ${{ runner.os }}-bins-${{ github.sha }}
restore-keys: |
${{ runner.os }}-bins-
- name: test
- name: setup-tests
run: |
pgrx15_config=$(/usr/local/bin/stoml ~/.pgrx/config.toml configs.pg15)
~/.cargo/bin/trunk install pgvector --pg-config ${pgrx15_config}
~/.cargo/bin/trunk install pgmq --pg-config ${pgrx15_config}
~/.cargo/bin/trunk install pg_cron --pg-config ${pgrx15_config}
echo "shared_preload_libraries = 'pg_cron, vectorize'" >> ~/.pgrx/data-15/postgresql.conf
rm -rf ./target/pgrx-test-data-* || true
- name: unit-test
run: |
cargo pgrx test
- name: integration-test
run: |
pgrx15_config=$(/usr/local/bin/stoml ~/.pgrx/config.toml configs.pg15)
pg_version=$(/usr/local/bin/stoml Cargo.toml features.default)
cargo pgrx run ${pg_version} --pgcli || true
cargo pgrx test ${pg_version}
echo "\q" | make run
cargo test -- --ignored --test-threads=1
publish:
if: github.event_name == 'release'
Expand Down
Loading

0 comments on commit 454af54

Please sign in to comment.