Skip to content

test(tools): add hot-reload regression tests for DeclarativeFilter::compile()#3024

Merged
bug-ops merged 1 commit intomainfrom
test-tools-hot-reload-regression
Apr 14, 2026
Merged

test(tools): add hot-reload regression tests for DeclarativeFilter::compile()#3024
bug-ops merged 1 commit intomainfrom
test-tools-hot-reload-regression

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 14, 2026

Summary

Test plan

  • compile_repeated_produces_consistent_filters — 5x StripNoise, name/output identity
  • compile_repeated_truncate_consistent — 3x Truncate, name/output identity
  • compile_drop_then_recompile — explicit drop between compilations, models real hot-reload lifecycle
  • compile_strategy_change_consistent — StripNoise then Truncate, no cross-contamination
  • All 4 tests pass: cargo nextest run -p zeph-tools -E 'test(compile_repeated)'

…ompile()

Four tests guard against regressions in repeated compile() calls (issue #3020):
- compile_repeated_produces_consistent_filters: 5x StripNoise, asserts name/output identity
- compile_repeated_truncate_consistent: 3x Truncate, same assertions
- compile_drop_then_recompile: drop then recompile cycle models real hot-reload lifecycle
- compile_strategy_change_consistent: StripNoise -> Truncate, guards against cross-contamination

Closes #3020
@github-actions github-actions Bot added rust Rust code changes tests Test-related changes size/M Medium PR (51-200 lines) labels Apr 14, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 14, 2026 22:39
@bug-ops bug-ops merged commit f8167ee into main Apr 14, 2026
30 checks passed
@bug-ops bug-ops deleted the test-tools-hot-reload-regression branch April 14, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(tools): add hot-reload regression test for declarative filter compile()

1 participant