Skip to content

🐛 fix(workflows): skip timestamp-only lock refreshes - #52

Merged
gaborbernat merged 2 commits into
mainfrom
fix/skip-timestamp-only-locks
Nov 4, 2026
Merged

gaborbernat merged 2 commits into
mainfrom
fix/skip-timestamp-only-locks

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Nab rewrites created-at in every lock it writes, so a refresh with no dependency change still leaves a one-line diff. upgrade-release-tools and update-python-dependencies then open a pull request whose only change is that timestamp (toml-fmt#519).

Before deciding whether anything changed, both now restore any lock whose only changed line is created-at: refresh-release-lock for its locks outside check mode, and update-python-dependencies for every changed *pylock*.toml before staging. The check counts the non-timestamp lines with grep -c instead of stopping at the first match with grep -q. Under pipefail, an early exit can SIGPIPE the upstream command and would make a large real change look timestamp-only.

Nab rewrites `created-at` in every lock it writes, so a refresh with no
dependency change still left a one-line diff, and upgrade-release-tools
and update-python-dependencies opened a pull request for it (toml-fmt
#519). Both now restore a lock whose only changed line is `created-at`
before deciding whether anything changed. The check counts the changed
lines rather than stopping at the first match, so a large lock diff
can't end the pipeline early and be mistaken for a timestamp-only one.
@gaborbernat
gaborbernat enabled auto-merge (squash) November 4, 2026 23:15
@gaborbernat
gaborbernat merged commit f5d6448 into main Nov 4, 2026
10 checks passed
@gaborbernat
gaborbernat deleted the fix/skip-timestamp-only-locks branch November 4, 2026 23:31
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.

1 participant