Repository navigation
lock-refresh: re-record the root and nested locks on every push to main - #15030
Merged
Merged
Conversation
Force-merged pull requests skip their lock refresh, and then every pull request fails the CI gate with "MODULE.bazel.lock is no longer up-to-date". lock-refresh now also runs on push to main, ignoring lock-only pushes. It re-records the nested cache sets, cancels older runs, and commits the merged locks straight to main with the dx-update app token. When the nested record fails it still commits the root lock. When main has moved on, it leaves the commit to the newer run.
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.
Summary
Force-merged pull requests (#15001, #14987, #15008, #15014, #15020, #15021) skipped their lock refresh. After that, every pull request failed the CI gate within minutes with
MODULE.bazel.lock is no longer up-to-date ... rules_go go_sdk. This PR makes.github/workflows/lock-refresh.ymlrepairmainby itself:on: push: branches: [main], withpaths-ignoreforMODULE.bazel.lockandtools/testing/nested_cache/**. The workflow's own lock commit doesn't re-trigger it.cancel-in-progressis true for push runs, so only the newestmaincommit gets recorded. Dispatch runs keep their old behaviour.nested=truedoes. If the nested record fails, the merge job still commits the root lock (needs.nested.result == 'success'gates the nested download and merge).MODULE.bazel.lockandtools/testing/nested_cache, straight tomain, with the dx-update app token so CI runs on the commit.main's protection has no required reviews or status checks, so a direct push works and no PR or admin-merge is needed.mainmoved on, it exits 0 and leaves the commit to the newer run.contents: readat the top,contents: writeonly on the merge job. Noactions/cache..github/workflows/README.mddescribes the push trigger.Verification
tools/dx check --apply --affected: ok, exit 0. This covers the actionlint and zizmor passes over the workflow.mainafter merge. The first push after this lands will exercise it.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvdpJxYihWhnWtH8yv