Skip to content

fix: sync all dev dependency pin surfaces - #2790

Merged
stranske merged 3 commits into
mainfrom
fix/maint52-sync-all-dev-pin-surfaces
Jul 18, 2026
Merged

fix: sync all dev dependency pin surfaces#2790
stranske merged 3 commits into
mainfrom
fix/maint52-sync-all-dev-pin-surfaces

Conversation

@stranske

@stranske stranske commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • sync direct requirements-dev.txt pins alongside supported lockfiles
  • refresh an existing uv.lock after canonical dev pins change
  • include both files in Maint 52 generated PRs

Validation

  • python -m pytest tests/scripts/test_sync_dev_dependencies.py tests/workflows/test_maint52_sync_dev_versions_pr_body.py -q
  • YAML parse for maint-52-sync-dev-versions.yml

Summary by CodeRabbit

  • Enhancements
    • Development dependency synchronization now refreshes uv lockfiles when applying updates, including running lockfile checks to ensure changes are captured.
    • Generated synchronization pull requests include updated uv lockfiles when present.
    • Development requirements coverage now extends to additional requirements surfaces, with requirement pins normalized while preserving environment markers and comments.
  • Tests
    • Added coverage to verify lockfile normalization behavior and to ensure the sync workflow uses fail-fast behavior and performs uv lock --check before updating.

Copilot AI review requested due to automatic review settings July 18, 2026 04:31
@cursor

cursor Bot commented Jul 18, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@stranske
stranske temporarily deployed to agent-high-privilege July 18, 2026 04:31 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 50 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 277279ef-d1db-4144-9c8e-e69cb792bf39

📥 Commits

Reviewing files that changed from the base of the PR and between ddcace6 and 2dda560.

📒 Files selected for processing (2)
  • scripts/sync_dev_dependencies.py
  • tests/scripts/test_sync_dev_dependencies.py
📝 Walkthrough

Walkthrough

The workflow now refreshes and stages uv.lock during non-dry-run dev version synchronization. The dependency sync script also normalizes requirements-dev.txt and supports broader requirement specifiers while preserving markers.

Changes

Dev version synchronization

Layer / File(s) Summary
Normalize requirements lockfiles
scripts/sync_dev_dependencies.py, tests/scripts/test_sync_dev_dependencies.py
Adds requirements-dev.txt as a supported lockfile, converts broader requirement forms to exact pins, preserves markers and trailing text, and tests apply behavior.
Refresh and stage uv lockfiles
.github/workflows/maint-52-sync-dev-versions.yml
Checks and refreshes uv.lock after dev dependency synchronization and stages it when preparing the sync pull request.
Validate workflow lock handling
tests/workflows/test_maint52_sync_dev_versions_pr_body.py
Verifies fail-fast shell settings, uv lock --check, and stale-lock tracking.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant SyncWorkflow
  participant ConsumerRepo
  participant uv
  participant SyncPR
  SyncWorkflow->>ConsumerRepo: apply dev dependency updates
  SyncWorkflow->>uv: run uv lock --check
  uv->>ConsumerRepo: refresh uv.lock
  SyncWorkflow->>SyncPR: stage uv.lock when present
Loading

Possibly related PRs

  • stranske/Workflows#2789: Modifies the same dependency sync script and workflow paths for requirements-dev lockfile handling.

Suggested labels: sync, maintenance

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: syncing all development dependency pin surfaces, including the new requirements-dev.txt support.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/maint52-sync-all-dev-pin-surfaces

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/maint-52-sync-dev-versions.yml:
- Around line 204-207: Update both dependency-sync branches in the workflow so
the apply command’s failure causes the step to fail rather than being swallowed.
Only execute the uv lock command after that apply command succeeds, ensuring a
successful lock refresh cannot mask a partial dependency sync.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 030e5114-0f95-4705-8389-34076d7ad46a

📥 Commits

Reviewing files that changed from the base of the PR and between 47304ed and 3ca9bd3.

📒 Files selected for processing (3)
  • .github/workflows/maint-52-sync-dev-versions.yml
  • scripts/sync_dev_dependencies.py
  • tests/scripts/test_sync_dev_dependencies.py

Comment thread .github/workflows/maint-52-sync-dev-versions.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the dev-dependency pin synchronization surfaces so that direct dev requirement files (requirements-dev.txt) stay aligned with the canonical pin source (.github/workflows/autofix-versions.env), and ensures Maint-52’s sync workflow can also refresh uv.lock when applying changes.

Changes:

  • Extend sync_dev_dependencies.py to include requirements-dev.txt among the supported pin-update surfaces.
  • Update the sync script test to assert requirements-dev.txt is updated during --apply.
  • Update maint-52-sync-dev-versions.yml to (a) refresh uv.lock via uv lock when present and (b) include requirements-dev.txt and uv.lock in the generated PR commit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/scripts/test_sync_dev_dependencies.py Adds coverage for syncing requirements-dev.txt during apply mode.
scripts/sync_dev_dependencies.py Adds requirements-dev.txt to the set of files whose exact == pins are synced from the canonical env pins.
.github/workflows/maint-52-sync-dev-versions.yml Refreshes uv.lock when present and stages requirements-dev.txt + uv.lock in Maint-52 generated PRs.

Comment thread .github/workflows/maint-52-sync-dev-versions.yml
Comment on lines +243 to +246
if [ "${{ inputs.dry_run }}" != "true" ] && [ -f uv.lock ]; then
python -m pip install --disable-pip-version-check 'uv>=0.5'
uv lock
fi

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ca9bd3352

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/sync_dev_dependencies.py
Comment thread .github/workflows/maint-52-sync-dev-versions.yml
@stranske-keepalive

stranske-keepalive Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: 498ad85
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / guard
Required: core tests (3.12): ⏳ pending, core tests (3.13): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 75.71%
Baseline 85.00%
Delta -9.29%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 81
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/discover_model_catalog.py 44.8% 55
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Low Coverage Files (<50.0%)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 81
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/discover_model_catalog.py 44.8% 55
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@stranske
stranske temporarily deployed to agent-high-privilege July 18, 2026 06:32 — with GitHub Actions Inactive
@stranske
stranske temporarily deployed to agent-high-privilege July 18, 2026 06:36 — with GitHub Actions Inactive
@stranske
stranske merged commit 4dd7de2 into main Jul 18, 2026
47 checks passed
@stranske
stranske deleted the fix/maint52-sync-all-dev-pin-surfaces branch July 18, 2026 16:27
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.

2 participants