ci: add uv.lock refresh workflow#1291
Open
jkglasbrenner wants to merge 3 commits into
Open
Conversation
Add workflow_dispatch support to the tox and Sphinx workflows so automation can request validation for a branch after creating or updating a lockfile refresh PR. The new refresh workflow checks out the selected target branch, runs uv lock --upgrade, and stops before committing if the resolver changes anything besides uv.lock. It supports a dry-run path for proof runs, recreates one fixed automation branch from the target branch, opens or updates the matching PR, and dispatches the validation workflows against the automation branch. Closes #1289
Add a local action that watches the validation workflows dispatched by the uv.lock refresh workflow and updates the generated PR with a small status table. The monitor records run links, reports failed jobs when GitHub exposes them, and exits nonzero when validation does not pass. The refresh workflow now passes the automation branch SHA, PR number, and dispatch timestamp to the monitor so it can find runs created by the current refresh attempt.
Add the standard Dioptra license header to the action-local test file and tighten the dynamic module import so the refresh validation Python files pass mypy together.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1289
Summary
This adds a workflow that refreshes
uv.lockfromdev, recreates a fixed automation branch, and opens or updates one lockfile refresh pull request when the lockfile changes.The refresh workflow dispatches tox tests and the Sphinx documentation build against the generated automation branch. It then watches those validation workflows and updates the generated pull request body with a validation table, run links, and guidance for handling validation failures.
Because this pull request targets
dev, the scheduled trigger is defined here but will not run on cron until the workflow also exists on the repository default branch. The implementation notes and final action-location decision are recorded in Issue #1289.Testing
Test Runs