Description
PR #3632 introduced 4 new unit tests in crates/zeph-core/src/provider_factory.rs inside a nested #[cfg(feature = \"gonka\")] mod gonka_tests. These tests call build_provider_from_entry via use super::*, but super resolves to mod tests — which only imports effective_embedding_model and stable_skill_embedding_model, not build_provider_from_entry. As a result, cargo nextest run --workspace --features full --lib --bins fails to compile zeph-core.
Reproduction Steps
git checkout b0a07602
cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins
- Observe 4 errors:
cannot find function build_provider_from_entry in this scope
Expected Behavior
All tests compile and pass.
Actual Behavior
error[E0425]: cannot find function `build_provider_from_entry` in this scope
--> crates/zeph-core/src/provider_factory.rs:633:26
--> crates/zeph-core/src/provider_factory.rs:647:26
--> crates/zeph-core/src/provider_factory.rs:663:26
--> crates/zeph-core/src/provider_factory.rs:677:26
error: could not compile `zeph-core` (lib test) due to 4 previous errors
Fix
In mod tests, add:
use super::build_provider_from_entry;
Or move the use into gonka_tests directly:
use super::super::build_provider_from_entry;
Environment
- Commit: b0a0760
- Features: full (gonka enabled)
Logs / Evidence
Detected in CI-687 live testing pre-flight (cargo nextest run step).
Description
PR #3632 introduced 4 new unit tests in
crates/zeph-core/src/provider_factory.rsinside a nested#[cfg(feature = \"gonka\")] mod gonka_tests. These tests callbuild_provider_from_entryviause super::*, butsuperresolves tomod tests— which only importseffective_embedding_modelandstable_skill_embedding_model, notbuild_provider_from_entry. As a result,cargo nextest run --workspace --features full --lib --binsfails to compilezeph-core.Reproduction Steps
git checkout b0a07602cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --binscannot find function build_provider_from_entry in this scopeExpected Behavior
All tests compile and pass.
Actual Behavior
Fix
In
mod tests, add:Or move the
useintogonka_testsdirectly:Environment
Logs / Evidence
Detected in CI-687 live testing pre-flight (cargo nextest run step).