Skip to content

test(core): cover shard allowlist advanced scan handoff#1235

Merged
mldangelo-oai merged 2 commits intomainfrom
test/shard-advanced-allowlist-config
May 9, 2026
Merged

test(core): cover shard allowlist advanced scan handoff#1235
mldangelo-oai merged 2 commits intomainfrom
test/shard-advanced-allowlist-config

Conversation

@mldangelo-oai
Copy link
Copy Markdown
Contributor

Summary

  • Add a focused regression for the shard-family allowlist handoff from scan_file() into scan_advanced_large_file().
  • Verify malformed shard fingerprint members are ignored and only validated shard paths reach the advanced handler.

Validation

  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache PROMPTFOO_DISABLE_TELEMETRY=1 uv run pytest tests/test_core.py::test_scan_file_passes_shard_allowlist_to_advanced_handler
  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache uv run ruff format modelaudit/ packages/modelaudit-picklescan/src packages/modelaudit-picklescan/tests tests/
  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache uv run ruff check --fix modelaudit/ packages/modelaudit-picklescan/src packages/modelaudit-picklescan/tests tests/
  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache uv run mypy modelaudit/ packages/modelaudit-picklescan/src packages/modelaudit-picklescan/tests tests/
  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache PROMPTFOO_DISABLE_TELEMETRY=1 uv run pytest -n auto -m "not slow and not integration" --maxfail=1 (4456 passed, 988 skipped)

@mldangelo-oai mldangelo-oai merged commit 05e1fa5 into main May 9, 2026
22 checks passed
@mldangelo-oai mldangelo-oai deleted the test/shard-advanced-allowlist-config branch May 9, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant