Skip to content

Commit 1ea5746

Browse files
Terraphim CIclaude
andcommitted
fix(ci): enable zlob feature flag for fff-search in CI workflow
The fff-search build.rs requires the zlob feature when the CI env var is set. Add --features zlob to clippy, check, and test commands in ci-pr.yml. Also fix terraphim_file_search Cargo.toml where dependencies were misplaced under [features] section. Refs #227 Co-Authored-By: Terraphim AI <noreply@anthropic.com>
1 parent a0e85f4 commit 1ea5746

File tree

4 files changed

+58
-12
lines changed

4 files changed

+58
-12
lines changed

.github/workflows/ci-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
components: clippy
221221

222222
- name: Clippy Check
223-
run: cargo clippy --workspace --all-targets -- -D warnings
223+
run: cargo clippy --workspace --all-targets --features zlob -- -D warnings
224224
env:
225225
RUST_BACKTRACE: 1
226226

@@ -274,10 +274,10 @@ jobs:
274274
- name: Check compilation
275275
run: |
276276
# Quick compilation check without building all binaries
277-
cargo check --workspace
277+
cargo check --workspace --features zlob
278278
# Check key binaries compile
279279
cargo check --package terraphim_server
280-
cargo check --package terraphim_mcp_server
280+
cargo check --package terraphim_mcp_server --features zlob
281281
282282
# Frontend linting and type checking
283283
frontend-check:
@@ -384,8 +384,8 @@ jobs:
384384
385385
- name: Run unit tests
386386
run: |
387-
# Run unit tests (rocksdb feature disabled in CI)
388-
cargo test --workspace --lib --bins -- --test-threads=2
387+
# Run unit tests (rocksdb feature disabled in CI, zlob enabled for fff-search)
388+
cargo test --workspace --lib --bins --features zlob -- --test-threads=2
389389
390390
# WASM build verification
391391
wasm-build:

Cargo.lock

Lines changed: 47 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/terraphim_file_search/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ readme = "../../README.md"
1515
terraphim_automata = { path = "../terraphim_automata" }
1616
terraphim_types = { path = "../terraphim_types" }
1717
fff-search = { git = "https://github.com/AlexMikhalev/fff.nvim.git", branch = "feat/external-scorer" }
18+
1819
ahash = "0.8"
1920
parking_lot = "0.12"
2021
tracing = "0.1"
2122
notify = "8"
2223
notify-debouncer-full = "0.6"
2324

25+
[features]
26+
default = []
27+
zlob = ["fff-search/zlob"]
28+
2429
[dev-dependencies]
2530
tokio = { workspace = true }
2631
criterion = { version = "0.5", features = ["html_reports"] }

crates/terraphim_mcp_server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ axum = { version = "0.8" }
3131

3232
[features]
3333
openrouter = ["terraphim_config/openrouter"]
34+
zlob = ["fff-search/zlob", "terraphim_file_search/zlob"]
3435

3536
[dev-dependencies]
3637
ahash = "0.8"

0 commit comments

Comments
 (0)