mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 04:27:11 +00:00
## Summary Complete RuVector-Postgres v2 implementation with all major features: - 148 pg_extern SQL functions across 27 source files - Docker Hub publication ready with multi-arch builds (PG14-17) - Full pgvector drop-in compatibility verified ## New Features - **Hybrid Search** (7 functions): BM25 + vector fusion with RRF/linear/learned - **Multi-Tenancy** (17 functions): Tenant isolation, RLS, quotas - **Self-Healing** (23 functions): Problem detection, remediation strategies - **Integrity Control** (4 functions): Mincut gating, contracted graphs - **Self-Learning** (10 functions): Query trajectory tracking, optimization ## Infrastructure - GitHub Actions workflow for Docker Hub publication - CI workflow for testing PG14-17 - Integration test Docker setup with baseline testing - Benchmark suite for e2e, hybrid, integrity testing ## Files Changed - New: src/healing/, src/hybrid/, src/integrity/, src/tenancy/, src/workers/ - New: sql/ruvector--2.0.0.sql (SQL migration) - New: docker/publish-dockerhub.sh, docker-compose.integration.yml - Updated: Dockerfile for PG17 default, multi-arch builds - Updated: HNSW/IVFFlat index access methods with full pgrx AM support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
# Integration Test Runner Dockerfile for RuVector-Postgres
|
|
# Provides full Rust toolchain and test dependencies
|
|
|
|
FROM rust:1.83-bookworm
|
|
|
|
ARG PG_VERSION=17
|
|
|
|
# Add PostgreSQL APT repository for client tools
|
|
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
|
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
# PostgreSQL client
|
|
postgresql-client-${PG_VERSION} \
|
|
# Build dependencies
|
|
libclang-dev \
|
|
clang \
|
|
pkg-config \
|
|
libssl-dev \
|
|
cmake \
|
|
# Test utilities
|
|
jq \
|
|
curl \
|
|
netcat-openbsd \
|
|
# Performance analysis
|
|
linux-perf \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install pgrx for PostgreSQL extension testing
|
|
RUN cargo install cargo-pgrx --version 0.12.6 --locked
|
|
|
|
# Install additional Rust tools for testing
|
|
RUN cargo install cargo-nextest --locked && \
|
|
cargo install cargo-criterion --locked && \
|
|
cargo install cargo-llvm-cov --locked
|
|
|
|
# Create app directory
|
|
WORKDIR /app
|
|
|
|
# Pre-download common dependencies (speeds up subsequent builds)
|
|
RUN cargo new --lib dummy && \
|
|
cd dummy && \
|
|
echo 'pgrx = "0.12"' >> Cargo.toml && \
|
|
echo 'serde = { version = "1.0", features = ["derive"] }' >> Cargo.toml && \
|
|
echo 'serde_json = "1.0"' >> Cargo.toml && \
|
|
echo 'rand = "0.8"' >> Cargo.toml && \
|
|
cargo fetch && \
|
|
cd .. && \
|
|
rm -rf dummy
|
|
|
|
# Environment setup
|
|
ENV RUST_BACKTRACE=1
|
|
ENV RUST_LOG=info
|
|
ENV CARGO_HOME=/usr/local/cargo
|
|
ENV PATH="${CARGO_HOME}/bin:${PATH}"
|
|
|
|
# Default command runs tests
|
|
CMD ["cargo", "test", "--release", "--features", "pg_test"]
|