Skip to content

Conversation

@intgr
Copy link
Contributor

@intgr intgr commented Sep 27, 2025

As discussed in uv PR -- #797 (comment)

  • After switching to uv package manager, uv.lock pins the git commit hashes used when pulling django-stubs/django-stubs-ext. BUT: we don't want it to remain pinned -- if there's an incompatible change in upstream, we want to know of it.
  • Configured Renovate to update the file daily (we'll see, maybe that's too frequent).
  • If the "test" GitHub workflow passes, Renovate will auto-merge. Otherwise it will open a PR.
  • Renovate automerge documentation: https://docs.renovatebot.com/key-concepts/automerge/
  • Closes Configure Renovate #834

As discussed in `uv` PR:

* `uv.lock` pins the git commit hashes used when pulling `django-stubs`/`django-stubs-ext`. But if there's an incompatible change in there, we want to know of it.
* Configured Renovate to update these daily (we'll see, maybe that's too frequent).
* If the "test" GitHub workflow passes, Renovate will auto-merge. Otherwise it will open a PR.
@intgr intgr force-pushed the renovate-lockFileMaintenance branch from 726f260 to 05ba3c2 Compare September 27, 2025 11:57
@intgr intgr requested a review from Copilot September 27, 2025 12:04
@intgr intgr added the impatient 😅 label Sep 27, 2025
Copy link

Copilot AI left a comment

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 configures Renovate to automatically update unpinned dependencies in uv.lock, addressing the need to detect incompatible changes in upstream dependencies like django-stubs that are pulled from git commits.

Key changes:

  • Adds Renovate configuration for daily lock file maintenance with auto-merge capability
  • Updates GitHub workflow to trigger tests on Renovate branches

Reviewed Changes

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

File Description
.github/renovate.json Configures Renovate for lock file maintenance with daily schedule and auto-merge
.github/workflows/test.yml Adds Renovate branch pattern to workflow triggers

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"dependencyDashboard": false,
"lockFileMaintenance": {
"enabled": true,
"schedule": ["* 3-4 * * *"],
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

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

The cron expression * 3-4 * * * runs every minute between 3-4 AM, which is excessive for daily updates. Consider using 0 3 * * * to run once daily at 3 AM instead.

Suggested change
"schedule": ["* 3-4 * * *"],
"schedule": ["0 3 * * *"],

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

@intgr intgr Sep 27, 2025

Choose a reason for hiding this comment

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

AFAIK it needs to be a range -- We don't know precisely when Renovate will be triggered, and the triggering time must be in range of this schedule.

This time must be long enough that Renovate can: (1) open branch (2) GitHub tests workflow to run & succeed (3) Renovate runs again, observes successful CI run (4) merge it.

@intgr
Copy link
Contributor Author

intgr commented Sep 28, 2025

Let's give this a try

@intgr intgr merged commit 0ceaabb into use-uv Sep 28, 2025
11 checks passed
@intgr intgr changed the title Configure Renovate to update uv.lock unpinned dependencies IGNORE: Configure Renovate to update uv.lock unpinned dependencies Sep 29, 2025
@intgr intgr changed the title IGNORE: Configure Renovate to update uv.lock unpinned dependencies [IGNORE] Configure Renovate to update uv.lock unpinned dependencies Sep 29, 2025
@intgr intgr deleted the renovate-lockFileMaintenance branch September 29, 2025 08:22
@intgr intgr self-assigned this Sep 29, 2025
@intgr intgr added invalid This doesn't seem right and removed impatient 😅 labels Sep 29, 2025
@intgr intgr changed the title [IGNORE] Configure Renovate to update uv.lock unpinned dependencies [INVALID] Configure Renovate to update uv.lock unpinned dependencies Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Development

Successfully merging this pull request may close these issues.

2 participants