Skip to content

test(contract): enforce no-patch dependency isolation#2078

Merged
yastman merged 1 commit into
devfrom
test/no-patch-dependency-contract
May 22, 2026
Merged

test(contract): enforce no-patch dependency isolation#2078
yastman merged 1 commit into
devfrom
test/no-patch-dependency-contract

Conversation

@yastman
Copy link
Copy Markdown
Owner

@yastman yastman commented May 22, 2026

Summary

Extract the unique contract test from superseded PR #2072 as a focused PR.

This adds tests/contract/test_dependabot_no_patch_isolation_contract.py, which enforces the no-patch dependency isolation invariants documented in docs/security/no-patch-dependency-alerts.md:

  • ragas stays only in the optional eval extra
  • diskcache remains transitive-only
  • ragas imports stay confined to src/evaluation/
  • no first-party diskcache imports are introduced

What this does not do

Verification

  • git diff --check
  • uv run --prerelease=allow pytest tests/contract/test_dependabot_no_patch_isolation_contract.py -q -> 6 passed
  • Pre-commit hooks passed, including Ruff, private key detector, and gitleaks

Related

Refs #2043.
Supersedes the useful test portion of #2072; #2072 should be closed after this PR lands.

@yastman yastman merged commit 0486b13 into dev May 22, 2026
4 checks passed
@yastman yastman deleted the test/no-patch-dependency-contract branch May 22, 2026 17:55
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.

Track no-patch Dependabot alerts: diskcache and ragas

1 participant