← Back to Pull requests

Strip authentication from editable VCS URLs in pip freeze #14222

Closed
unknown closed this pull request without merging on Aug 12, 2026 22:20 UTC
View on GitHub
unknown unknown commented on Aug 01, 2026 23:37 UTC
Author

What does this PR do?

Fixes #11410.

Editable VCS installs derive their frozen requirement from the clone's remote URL. This change strips concrete authentication information before pip freeze emits that requirement, while preserving literal PEP 610 environment-variable references and the git@ user for SSH remotes.

It adds an end-to-end regression test and focused coverage for safe and unsafe user-info forms.

PR Checklist:

  • I agree to follow the PSF Code of Conduct.

  • I have read and have followed the CONTRIBUTING.md file.

  • I have added a news file fragment.

  • I have read and followed the AI_POLICY.md file, and I take full ownership and responsibility for every line.
  • Assisted-by: OpenAI Codex

    Tests

  • pytest tests/unit/test_operations_freeze.py: 13 passed

  • pytest tests/functional/test_freeze.py: 25 passed, 6 skipped, 1 xfailed

  • Black, Ruff, codespell, and repository policy hooks passed

  • Mypy passed for all three changed Python files under its Linux target platform
  • Diff: 150 lines (+112 / -38) across 1 files Reviewer: sepehr-rs Review duration: 15762m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.61) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.61 · 150 lines diff across 1 files
    0.61
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.300
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.061
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #14222"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 54.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 61.2% (MEDIUM) · Higher = larger blast radius
    61.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.2% · Lower = rushed or shallow review
    54.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.0% · Safe to merge
    28.0%
    Repository