fix(detection): pass single chunk validation flag to exports#190
fix(detection): pass single chunk validation flag to exports#190lipikaramaswamy wants to merge 2 commits into
Conversation
Signed-off-by: lipikaramaswamy <lramaswamy@nvidia.com>
Greptile SummaryThis PR fixes a
Confidence Score: 4/5The crash fix itself is correct, but the The src/anonymizer/interface/anonymizer.py — three forwarding sites need Important Files Changed
|
Signed-off-by: lipikaramaswamy <lramaswamy@nvidia.com>
Summary
Fixes the integrated
mainregression where detection workflow construction referencedvalidation_single_chunk_full_textinside_build_detection_spec(...)without defining or passing that parameter. This brokeEntityDetectionWorkflow.run(...)andAnonymizer.export_detection_config(...)after PR #177 merged on top of PR #182.This PR threads the existing
validation_single_chunk_full_textargument into_build_detection_spec(...)and adds regression coverage for both the direct detection path and the external detection config path.Type of Change
Testing
make testpasses locallymake checkpasses locally (format + lint + typecheck + lock-check)Ran:
uv run pytest tests/engine/test_detection_workflow.py make format-check make test make checkNotes:
make test:914 passed, 94 warningsmake check: exited successfully. Thetypechecksubstep is advisory and printed existing ty diagnostics, then make continued throughuv lock --checkand copyright checks.Also reproduced the failure on merged
maincommitf6dd05din a temporary worktree:tests/engine/test_detection_workflow.pyfailed withNameError: name 'validation_single_chunk_full_text' is not defined.Documentation
make docs-buildpasses locallyNo docs changes.
Related Issues
Follow-up fix for the stacked PR integration of #177 and #182.