Skip to content

chore: remove pii filter plugin tests - #4333

Merged
jonpspri merged 6 commits into
mainfrom
fix/remove-pii-filter-tests
Apr 20, 2026
Merged

jonpspri merged 6 commits into
mainfrom
fix/remove-pii-filter-tests

Conversation

@lucarlig

@lucarlig lucarlig commented Apr 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • remove the dedicated pii_filter unit test package from this repo
  • remove the unit-test fixture and unit-test expectations that still assumed PIIFilterPlugin loaded from this repo
  • leave repo/plugin/perf config entries intact

Verification

  • uv run pytest tests/unit/mcpgateway/plugins/framework/test_manager.py tests/unit/mcpgateway/plugins/plugins/test_init_hooks_plugins.py -q
    • still fails only on other missing optional external cpex_* packages (cpex_rate_limiter, cpex_retry_with_backoff, cpex_secrets_detection, cpex_url_reputation)
  • rtk grep -n "cpex_pii_filter|PIIFilterPlugin" tests/unit tests/integration
    • returns no matches

Notes

  • corrected scope after restoring non-test changes
  • standard detailed code review workflow has not been run in this task yet

@lucarlig
lucarlig marked this pull request as ready for review April 20, 2026 10:36
@lucarlig
lucarlig force-pushed the fix/remove-pii-filter-tests branch from c176a5d to de51cf8 Compare April 20, 2026 10:38
@lucarlig
lucarlig requested a review from msureshkumar88 April 20, 2026 12:27

@msureshkumar88 msureshkumar88 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #4333 - APPROVED ✅

PR: #4333
Title: CHORE: REMOVE PII FILTER PLUGIN TESTS
Status: ✅ APPROVED FOR MERGE
Date: 2026-04-20


Verification Results

✅ Tests Working in cpex-plugins

  • Location: cpex-plugins/plugins/rust/python-package/pii_filter/tests/test_plugin.py
  • Result: 26/26 tests PASSED (100% success rate, 0.28s)
  • Coverage: All plugin functionality tested (initialization, prompt hooks, tool hooks, edge cases)

✅ Tests Removed from mcp-context-forge

  • No PII filter test implementations remain
  • Only stale __pycache__ directory (cosmetic cleanup opportunity)
  • Remaining references are appropriate framework/integration tests

✅ Migration Complete

  • Clean separation of concerns achieved
  • Test infrastructure fully functional
  • No regression in test coverage
  • Follows best practices for plugin externalization

Recommendation

✅ APPROVE AND MERGE

The PII filter plugin tests have been successfully migrated to cpex-plugins with 100% test pass rate. All unit tests are working in the new location, and no test implementations remain in mcp-context-forge.


Detailed review: See pr-4333-review-approval.md

Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
@jonpspri
jonpspri force-pushed the fix/remove-pii-filter-tests branch from de51cf8 to 7204a45 Compare April 20, 2026 20:04
@jonpspri
jonpspri merged commit 6f7a6d2 into main Apr 20, 2026
18 checks passed
@jonpspri
jonpspri deleted the fix/remove-pii-filter-tests branch April 20, 2026 20:16
gcgoncalves pushed a commit that referenced this pull request Apr 23, 2026
* chore: remove pii filter plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: restore non-test pii filter references

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: fix restored pii config indentation

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: remove secrets detection plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: skip optional plugin packages in unit suites

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: restore manager hook unit files

Signed-off-by: lucarlig <luca.carlig@ibm.com>

---------

Signed-off-by: lucarlig <luca.carlig@ibm.com>
brian-hussey pushed a commit that referenced this pull request May 5, 2026
* chore: remove pii filter plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: restore non-test pii filter references

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: fix restored pii config indentation

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: remove secrets detection plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: skip optional plugin packages in unit suites

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: restore manager hook unit files

Signed-off-by: lucarlig <luca.carlig@ibm.com>

---------

Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: Brian Hussey <brian.hussey@ie.ibm.com>
msureshkumar88 pushed a commit that referenced this pull request May 13, 2026
* chore: remove pii filter plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: restore non-test pii filter references

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: fix restored pii config indentation

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* chore: remove secrets detection plugin tests

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: skip optional plugin packages in unit suites

Signed-off-by: lucarlig <luca.carlig@ibm.com>

* test: restore manager hook unit files

Signed-off-by: lucarlig <luca.carlig@ibm.com>

---------

Signed-off-by: lucarlig <luca.carlig@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants