Skip to content

test(picklescan): cover invoked source refresh#1224

Merged
mldangelo-oai merged 1 commit intomainfrom
test/picklescan-invoked-source-refresh
May 3, 2026
Merged

test(picklescan): cover invoked source refresh#1224
mldangelo-oai merged 1 commit intomainfrom
test/picklescan-invoked-source-refresh

Conversation

@mldangelo-oai
Copy link
Copy Markdown
Contributor

Summary

  • add a focused call-graph regression for source rewrites on the invoked import fallback path
  • prove a safe scan result does not mask a later user-code import when the same module source changes

Validation

  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache PROMPTFOO_DISABLE_TELEMETRY=1 uv run pytest packages/modelaudit-picklescan/tests/test_call_graph_import_statements.py::test_scan_bytes_refreshes_invoked_import_fallback_after_source_rewrite
  • UV_CACHE_DIR=/tmp/modelaudit-uv-cache PROMPTFOO_DISABLE_TELEMETRY=1 uv run pytest packages/modelaudit-picklescan/tests/test_call_graph_import_statements.py
  • 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

@mldangelo-oai mldangelo-oai merged commit b393f6f into main May 3, 2026
29 checks passed
@mldangelo-oai mldangelo-oai deleted the test/picklescan-invoked-source-refresh branch May 3, 2026 19:44
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