Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 809b14c

Browse files
committed
fix: update pgrx to 0.12.9 in both CI workflows and fix formatting
- postgres-extension-ci.yml: bump cargo-pgrx 0.12.0→0.12.9 (4 locations) - ruvector-postgres-ci.yml: bump PGRX_VERSION 0.12.6→0.12.9 - Run cargo fmt to reformat multi-attribute #![allow(...)] lines Co-Authored-By: claude-flow <[email protected]>
1 parent 0304dcd commit 809b14c

44 files changed

Lines changed: 496 additions & 62 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/postgres-extension-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
${{ runner.os }}-cargo-build-target-${{ matrix.pg_version }}-
9090
9191
- name: Install cargo-pgrx
92-
run: cargo install cargo-pgrx --version 0.12.0 --locked
92+
run: cargo install cargo-pgrx --version 0.12.9 --locked
9393

9494
- name: Initialize pgrx (Ubuntu)
9595
if: runner.os == 'Linux'
@@ -139,7 +139,7 @@ jobs:
139139
sudo apt-get install -y postgresql-17 postgresql-server-dev-17
140140
141141
- name: Install cargo-pgrx
142-
run: cargo install cargo-pgrx --version 0.12.0 --locked
142+
run: cargo install cargo-pgrx --version 0.12.9 --locked
143143

144144
- name: Initialize pgrx
145145
run: cargo pgrx init --pg17=/usr/lib/postgresql/17/bin/pg_config
@@ -178,7 +178,7 @@ jobs:
178178
sudo apt-get install -y postgresql-17 postgresql-server-dev-17
179179
180180
- name: Install cargo-pgrx
181-
run: cargo install cargo-pgrx --version 0.12.0 --locked
181+
run: cargo install cargo-pgrx --version 0.12.9 --locked
182182

183183
- name: Initialize pgrx
184184
run: cargo pgrx init --pg17=/usr/lib/postgresql/17/bin/pg_config
@@ -241,7 +241,7 @@ jobs:
241241
sudo apt-get install -y postgresql-${{ matrix.pg_version }} postgresql-server-dev-${{ matrix.pg_version }}
242242
243243
- name: Install cargo-pgrx
244-
run: cargo install cargo-pgrx --version 0.12.0 --locked
244+
run: cargo install cargo-pgrx --version 0.12.9 --locked
245245

246246
- name: Initialize pgrx
247247
run: cargo pgrx init --pg${{ matrix.pg_version }}=/usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config

.github/workflows/ruvector-postgres-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
env:
3737
CARGO_TERM_COLOR: always
3838
RUST_BACKTRACE: 1
39-
PGRX_VERSION: '0.12.6'
39+
PGRX_VERSION: '0.12.9'
4040
RUST_VERSION: 'stable'
4141

4242
# Concurrency control - cancel in-progress runs for same PR

crates/ruvector-core/src/advanced/hypergraph.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ impl HypergraphIndex {
150150
/// Add an entity node
151151
pub fn add_entity(&mut self, id: VectorId, embedding: Vec<f32>) {
152152
self.entities.insert(id.clone(), embedding);
153-
self.entity_to_hyperedges
154-
.entry(id)
155-
.or_default();
153+
self.entity_to_hyperedges.entry(id).or_default();
156154
}
157155

158156
/// Add a hyperedge
@@ -192,10 +190,7 @@ impl HypergraphIndex {
192190

193191
self.add_hyperedge(temporal_edge.hyperedge)?;
194192

195-
self.temporal_index
196-
.entry(bucket)
197-
.or_default()
198-
.push(edge_id);
193+
self.temporal_index.entry(bucket).or_default().push(edge_id);
199194

200195
Ok(())
201196
}

crates/ruvector-core/src/advanced/neural_hash.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,7 @@ impl<H: NeuralHash + Clone> HashIndex<H> {
268268
pub fn insert(&mut self, id: VectorId, vector: Vec<f32>) {
269269
let code = self.hasher.encode(&vector);
270270

271-
self.tables
272-
.entry(code)
273-
.or_default()
274-
.push(id.clone());
271+
self.tables.entry(code).or_default().push(id.clone());
275272

276273
self.vectors.insert(id, vector);
277274
}

crates/ruvllm/benches/ane_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! ANE vs NEON Benchmark Suite
315
//!
416
//! Compares Apple Neural Engine (via BNNS) operations against

crates/ruvllm/benches/attention_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! Attention Kernel Benchmarks for M4 Pro
315
//!
416
//! Benchmarks for Flash Attention 2, Paged Attention, MQA, and GQA implementations.

crates/ruvllm/benches/e2e_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! End-to-End LLM Inference Benchmarks for M4 Pro
315
//!
416
//! Comprehensive benchmarks for complete inference pipeline:

crates/ruvllm/benches/lora_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! MicroLoRA Benchmarks for M4 Pro
315
//!
416
//! Benchmarks for LoRA adapter operations:

crates/ruvllm/benches/matmul_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! Matrix Multiplication Benchmarks for M4 Pro
315
//!
416
//! Benchmarks for GEMV, GEMM, and batched GEMM implementations.

crates/ruvllm/benches/metal_bench.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
#![allow(clippy::all, unused_imports, unused_variables, dead_code, unused_mut, unused_assignments, non_camel_case_types, clippy::approx_constant, unexpected_cfgs, unused_must_use, unused_parens)]
1+
#![allow(
2+
clippy::all,
3+
unused_imports,
4+
unused_variables,
5+
dead_code,
6+
unused_mut,
7+
unused_assignments,
8+
non_camel_case_types,
9+
clippy::approx_constant,
10+
unexpected_cfgs,
11+
unused_must_use,
12+
unused_parens
13+
)]
214
//! Metal GPU acceleration benchmarks
315
//!
416
//! Benchmarks Metal compute shaders for LLM operations.

0 commit comments

Comments
 (0)