Skip to content

fix(build,tools): add testing to full feature; fix DynExecutor::requires_confirmation delegation#3649

Merged
bug-ops merged 2 commits intomainfrom
3648-3646-testing-dynexecutor
May 6, 2026
Merged

fix(build,tools): add testing to full feature; fix DynExecutor::requires_confirmation delegation#3649
bug-ops merged 2 commits intomainfrom
3648-3646-testing-dynexecutor

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 6, 2026

Summary

Changes

Cargo.toml: testing added to full feature. The testing feature gates only zeph_llm::mock and AnyProvider::Mock — stub test infrastructure with no effect on release binaries. Without this, integration tests compiled via --all-targets cannot see AnyProvider::Mock, producing 40 compilation errors.

crates/zeph-tools/src/executor.rs: DynExecutor::requires_confirmation now delegates to self.0.requires_confirmation_erased(call), consistent with is_tool_retryable, is_tool_speculatable, set_skill_env, and set_effective_trust. Previously the method was absent and the trait default (false) was returned, silently bypassing the inner executor's confirmation policy.

Test plan

…res_confirmation delegation

Closes #3648: integration tests use zeph_llm::mock which is gated on
cfg(any(test, feature = "testing")); adding "testing" to the "full"
feature bundle makes clippy --all-targets --features full compile cleanly.

Closes #3646: DynExecutor::requires_confirmation was missing from the
ToolExecutor impl, always returning the trait default (false) instead of
delegating to the inner ErasedToolExecutor, inconsistent with all other
delegation methods (is_tool_retryable, is_tool_speculatable, etc.).
@github-actions github-actions Bot added the bug Something isn't working label May 6, 2026
@github-actions github-actions Bot added size/XS Extra small PR (1-10 lines) rust Rust code changes dependencies Dependency updates labels May 6, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 6, 2026 11:17
…o 2s

The 500 ms bound is too tight for slow CI runners; the test was previously
not compiled (no 'testing' in 'full') and is now exposed by #3648's fix.
2 s is still meaningful for a mock-only run with no real I/O.
@github-actions github-actions Bot added tests Test-related changes size/XS Extra small PR (1-10 lines) size/S Small PR (11-50 lines) and removed size/XS Extra small PR (1-10 lines) labels May 6, 2026
@bug-ops bug-ops merged commit cb5fc5d into main May 6, 2026
32 checks passed
@bug-ops bug-ops deleted the 3648-3646-testing-dynexecutor branch May 6, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Dependency updates rust Rust code changes size/S Small PR (11-50 lines) size/XS Extra small PR (1-10 lines) tests Test-related changes

Projects

None yet

1 participant