Skip to content

fix(tests): gate subgoal_extraction_tests on context-compression feature (#2067)#2069

Merged
bug-ops merged 1 commit intomainfrom
fix-2067
Mar 20, 2026
Merged

fix(tests): gate subgoal_extraction_tests on context-compression feature (#2067)#2069
bug-ops merged 1 commit intomainfrom
fix-2067

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 20, 2026

Summary

The test module subgoal_extraction_tests at line 3520 in crates/zeph-core/src/agent/context/summarization.rs calls parse_subgoal_extraction_response() which is gated with #[cfg(feature = "context-compression")]. However, the test module itself was missing this feature gate, causing E0425 (cannot find function) when running cargo nextest without --features full.

Changes

  • Added #[cfg(feature = "context-compression")] attribute to the subgoal_extraction_tests module
  • Updated CHANGELOG.md with the fix entry

Testing

  • ✅ Compilation without --features full: 5711 tests passed
  • ✅ Tests with --features full: 6241 tests passed
  • ✅ No regressions, no fmt/clippy warnings
  • ✅ Attribute ordering matches idiomatic Rust patterns used elsewhere in the file

Pre-merge Checklist

  • cargo +nightly fmt --check passed
  • cargo clippy --workspace -- -D warnings passed
  • cargo nextest run --workspace --lib --bins passed (both with and without --features full)
  • Code review approved
  • CHANGELOG.md updated

Closes #2067

…ure (#2067)

The test module subgoal_extraction_tests at line 3520 in
crates/zeph-core/src/agent/context/summarization.rs calls
parse_subgoal_extraction_response() which is gated with
#[cfg(feature = "context-compression")]. However, the test module
itself was missing this feature gate, causing E0425 (cannot find function)
when running cargo nextest without --features full.

Added #[cfg(feature = "context-compression")] attribute to the
subgoal_extraction_tests module definition.

Fixes: #2067
@bug-ops bug-ops enabled auto-merge (squash) March 20, 2026 21:29
@github-actions github-actions bot added bug Something isn't working size/XS Extra small PR (1-10 lines) documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate and removed bug Something isn't working labels Mar 20, 2026
@bug-ops bug-ops merged commit 486205d into main Mar 20, 2026
25 checks passed
@bug-ops bug-ops deleted the fix-2067 branch March 20, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tests): subgoal_extraction_tests module missing #[cfg(feature = "context-compression")] gate

1 participant