← Back to Pull requests

[MNT] migrate test-deps-2024 to uv date cutoffs #666

Open
unknown opened this pull request with 230 lines diff across 2 files
View on GitHub
unknown unknown commented on Sep 13, 2026 12:31 UTC
Author

Fixes #665

What does this implement/fix?

Migrates the test-deps-2024 job from the explicitly pinned dependencies_2024 extra to uv's date cutoff, following sktime/pytorch-forecasting#2055:

run: >
  uv pip install -e .[dev]
  --exclude-newer-package "setuptools=false"
  --exclude-newer-package "mkdocstrings=false"
  --exclude-newer-package "mkdocstrings-python=false"
  --exclude-newer-package "mkdocs-autorefs=false"
env:
  UV_SYSTEM_PYTHON: 1
  UV_EXCLUDE_NEWER: "2024-12-10"

and removes the now-unused dependencies_2024 extra from pyproject.toml.

Why 2024-12-10: the pinned set included numpy 2.2.0 (Dec 8) and scikit-learn 1.6.0 (Dec 9), so this date reproduces it closely. A uv pip install --dry-run with Python 3.12 resolves to:

| package | old pin | cutoff resolves |
|---|---|---|
| torch | 2.5.0 | 2.5.1 |
| numpy | 2.2.0 | 2.2.0 |
| pandas | 2.2.3 | 2.2.3 |
| scikit-learn | 1.6.0 | 1.6.0 |
| pytorch-lightning | 2.4.0 | 2.4.0 |
| scipy | 1.14.1 | 1.14.1 |
| omegaconf | 2.3.0 | 2.3.0 |
| torchmetrics | 1.5.2 | 1.6.0 |
| einops | 0.8.0 | 0.8.0 |

Why the exemptions: without them resolution fails. The build requires setuptools>=78.1.1 and dev requires mkdocstrings[python]>=0.29, both published after the cutoff; mkdocstrings-python and mkdocs-autorefs follow from mkdocstrings. I found them by re-running the dry run until it resolved. If you'd rather keep docs tooling out of this job, dropping mkdocs* from the install is an alternative.

Verification

  • Dry-run resolution as above; actionlint reports nothing new (its one finding, matrix.requires in test-all-extras, predates this PR).

  • I didn't run the full test suite locally with this environment. This job's CI run on this PR is the real check.
  • 🤖 Generated with Claude Code

    Diff: 230 lines (+172 / -58) across 2 files Reviewer: phoeenniixx Review duration: 69483m
    All Vouch review confidence checks passed
    Residual risk 0.39 = Change Risk (0.67) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 230 lines diff across 2 files
    0.67
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.326
    Sensitive Paths sensitive_paths
    0.067
    Real PR Conversation Timeline
    1 comments
    "Review active on #666"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 42.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: 67.2% (HIGH) · Higher = larger blast radius
    67.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: 42.2% · Lower = rushed or shallow review
    42.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: 38.8% · Moderate risk
    38.8%