Skip to content

lock-refresh: let push refreshes finish and merge the root lock when nested tests fail - #15048

Merged
TrapsterDK merged 1 commit into
mainfrom
lock-refresh-decouple-nested
Nov 28, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
lock-refresh-decouple-nested

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Summary

Two things kept lock-refresh.yml from fixing main's stale MODULE.bazel.lock.

  1. Merges cancelled the push refresh. Every merge cancelled the hour-long on-push run (46155505978, 46156611009, 46156784008).
    • cancel-in-progress is now github.event_name != 'push' && inputs.pr != ''.
    • A push run finishes. GitHub keeps one pending run and replaces it with the newest push, so the latest main always gets a refresh.
    • Dispatches for a pull request (/lock-refresh, dx-update) still cancel an older refresh of the same branch.
  2. One nested failure blocked every lock. In run 46151831183 (lock: re-record the root and nested consumer locks on main #15024) every lock job passed. But release_consumer_smoke_test shard 5 and nested_bazel_harness_test failed on all platforms (job 140999929219), so merge was skipped and nothing was committed.
    • "Record the nested cache sets" now uses continue-on-error: true. The test failures stay visible on that step and belong to the test run.
    • Collecting and uploading the records already ran on !cancelled().
    • merge now needs only the lock jobs (and android maven when requested).
    • It downloads and merges whichever nested-* artifacts exist. When none exist, it merges only the root lock and posts a warning.

The two failing nested tests are being fixed separately. .github/workflows/README.md is updated.

Known limit

nested_cache_update --from writes each set from the hosts that recorded it. If a set records on some platforms but not others, the committed set loses the missing hosts' entries until the next full record. consumer_deps_test reports a nested set that is stale against the root lock.

Verification

  • tools/dx check --apply --affected: ok, exit 0. This covers actionlint and zizmor.
  • The new path runs on the next push to main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvdpJxYihWhnWtH8yv

…nested tests fail

Every merge to main cancelled the hour-long on-push refresh, so it never
finished (runs 46155505978, 46156611009, 46156784008). Push runs no longer
cancel in progress; GitHub keeps one running and only the newest push
pending. Dispatches for a pull request still cancel.

A nested test failure on any platform failed its nested job and skipped the
merge, so run 46151831183 committed nothing even though every lock job
passed. The record step now continues on error, its records are still
collected, and the merge job runs whenever the lock jobs succeed, merging
the nested sets that recorded.
@TrapsterDK
TrapsterDK merged commit 8f0f5ca into main Nov 28, 2026
7 of 9 checks passed
@TrapsterDK
TrapsterDK deleted the lock-refresh-decouple-nested branch November 28, 2026 15:11
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