Skip to content

test(core): add fidelity provider wiring tests for #5037 and #5039#5042

Merged
bug-ops merged 2 commits into
mainfrom
test-fidelity-provider-wiring
Jun 7, 2026
Merged

test(core): add fidelity provider wiring tests for #5037 and #5039#5042
bug-ops merged 2 commits into
mainfrom
test-fidelity-provider-wiring

Conversation

@bug-ops

@bug-ops bug-ops commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #5037
Closes #5039

Test plan

  • cargo nextest run --config-file .github/nextest.toml -p zeph-core -E 'test(fidelity)' → 2 passed
  • cargo clippy -p zeph-core --all-targets -- -D warnings → clean
  • cargo +nightly fmt --check → clean

@github-actions github-actions Bot added rust Rust code changes core zeph-core crate tests Test-related changes size/M Medium PR (51-200 lines) labels Jun 7, 2026
@bug-ops
bug-ops force-pushed the test-fidelity-provider-wiring branch from aa14613 to 2dff158 Compare June 7, 2026 18:33
@github-actions github-actions Bot removed the tests Test-related changes label Jun 7, 2026
bug-ops added 2 commits June 7, 2026 20:37
Add three tests to agent::builder::tests covering apply_session_config
fidelity provider wiring:

- apply_session_config_wires_fidelity_providers: asserts both
  fidelity_semantic_provider and fidelity_compress_provider are Some
  for non-empty names, None for empty names, and None when fidelity_config
  is absent.

- apply_session_config_fidelity_providers_none_when_not_configured:
  explicit standalone coverage for the fidelity_config: None path.

- apply_session_config_wires_fidelity_providers_registry_lookup:
  verifies resolve_background_provider performs a registry lookup —
  registers an Ollama entry "named-test" in provider_pool, asserts the
  resolved provider is name()=="ollama" with the expected model, and
  confirms an unregistered name falls back to the Mock primary.

Closes #5037, closes #5039
- Remove redundant apply_session_config_fidelity_providers_none_when_not_configured
  (exact duplicate of the absent-config sub-case already covered in the pre-existing
  apply_session_config_wires_fidelity_providers test from PR #5038)
- Add fidelity_compress_provider fallback assertion in the unregistered-name branch
  of apply_session_config_wires_fidelity_providers_registry_lookup for symmetric
  coverage of both provider fields
@bug-ops
bug-ops force-pushed the test-fidelity-provider-wiring branch from 2dff158 to d5c6fba Compare June 7, 2026 18:37
@github-actions github-actions Bot added tests Test-related changes and removed tests Test-related changes labels Jun 7, 2026
@bug-ops
bug-ops enabled auto-merge (squash) June 7, 2026 18:39
@bug-ops
bug-ops merged commit a1fbf32 into main Jun 7, 2026
66 of 68 checks passed
@bug-ops
bug-ops deleted the test-fidelity-provider-wiring branch June 7, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate rust Rust code changes size/M Medium PR (51-200 lines) tests Test-related changes

Projects

None yet

1 participant