ci: scope bump_uv_lock change detection to uv.lock#1892
Open
arham766 wants to merge 1 commit into
Open
Conversation
The torch-override step rewrites pyproject.toml via toml.load/toml.dump, which drops comments and reformats the file, so 'git diff --quiet' is always dirty and changed=false is unreachable. In a week where 'uv lock --upgrade' changes nothing, the create-pull-request step then stages nothing and 'git commit' exits 1, failing the scheduled run instead of no-oping. Scoping the diff to uv.lock restores the intended behavior. Signed-off-by: arham766 <arhamislam766@yahoo.com>
Contributor
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.
What does this PR do?
Type of change: Bug fix
The torch-override step rewrites
pyproject.tomlviatoml.load/toml.dump, which drops comments and reformats the file, so the unscopedgit diff --quietwas always dirty andchanged=falseunreachable. In a week whereuv lock --upgradeproduces no changes, the create-pull-request step stages nothing andgit commitexits 1, failing the scheduled run instead of no-oping. Scoping the diff touv.lockrestores the intended detection.Usage
N/A — CI workflow configuration change.
Testing
Reproduced the failure locally by executing the workflow's steps in a clean checkout: after the toml mutation, unscoped
git diff --quietexits 1 withuv.lockbyte-identical, andgit add uv.lock && git commit -s -m xexits 1. Withgit diff --quiet -- uv.lock, the no-update path correctly yieldschanged=false. YAML validated.Before your PR is "Ready for review"
CONTRIBUTING.md: N/A/claude review)Additional Information
Part of #1890 (item 2).