From 2113fa6bcf9a0d84ede750aa392a888b8784eb0b Mon Sep 17 00:00:00 2001 From: rUv Date: Fri, 26 Dec 2025 17:29:22 +0000 Subject: [PATCH] fix(ci): Add pgrx init step to benchmark workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The benchmark step was failing because pgrx wasn't initialized. Added cargo-pgrx install and pgrx init steps before running benchmarks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/postgres-extension-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/postgres-extension-ci.yml b/.github/workflows/postgres-extension-ci.yml index e8f61f76..03641791 100644 --- a/.github/workflows/postgres-extension-ci.yml +++ b/.github/workflows/postgres-extension-ci.yml @@ -170,6 +170,13 @@ jobs: sudo apt-get update sudo apt-get install -y postgresql-16 postgresql-server-dev-16 + - name: Install cargo-pgrx + run: cargo install cargo-pgrx --version 0.12.0 --locked + + - name: Initialize pgrx + run: cargo pgrx init --pg16=/usr/lib/postgresql/16/bin/pg_config + working-directory: crates/ruvector-postgres + - name: Run benchmarks run: cargo bench --no-default-features --features pg16 -- --output-format bencher | tee benchmark-output.txt working-directory: crates/ruvector-postgres