Repository navigation
nested_cache: guard nested locks against stale rules_dx extensions (part of #14084) - #14093
TrapsterDK wants to merge 2 commits into
Conversation
|
2784cbe fixes it: cache entries now come from Generated by Claude Code |
|
The ghcr.io fix works: the second Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
The first four also fail locally on a clean Generated by Claude Code |
|
The re-record is blocked by main. In lock-refresh run 44619208376, Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Rebased onto main. 🤖 Generated with Claude Code |
2784cbe to
61ff375
Compare
|
The re-record has run already (run 44619208376), and all three Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Rebased onto main (9bf9fb1). |
61ff375 to
e7f7239
Compare
|
I dispatched Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
The Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
…art of #14084) consumer_deps_test now compares each nested lock's rules_dx extension entries, and the entries whose root reads a rules_dx file, with the root MODULE.bazel.lock: every FILE:/ENV: input must match and every generated repo must exist in the root. It names the stale set and the re-record command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxEMUyLEBAfNLUska2
…oken (part of #14084) The apple set lists a Homebrew swift-format bottle on ghcr.io, which answers 401 without a token, so every apple nested test and the macOS nested record failed to fetch it. Cache entries now come from a small repository rule that sends `Bearer QQ==` to ghcr.io URLs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxEMUyLEBAfNLUska2
e7f7239 to
982de39
Compare
|
Rebased onto main (5bf6454). /lock-refresh nested=true 🤖 Generated with Claude Code |
|
I dispatched Generated by Claude Code |
|
Generated by Claude Code |
|
Lock refresh 45171035108: the linux_x86_64 and windows_x86_64 🤖 Generated with Claude Code |
|
The rest of the shard repeats the main failures listed above. Generated by Claude Code |
|
Shards 3, 25 and 26 on 982de39 have new failures. I ran them on this branch head. None of their logs mention a file this PR touches:
The other failures in these shards ( Generated by Claude Code |
|
Generated by Claude Code |
|
Generated by Claude Code |
Part of #14084.
//core/modules:consumer_deps_testgetsevery_nested_lock_matches_the_root_rules_dx_extensions. It checks each nested lock entry that is a rules_dx extension (@@rules_dx+//…), or whose root entry reads a rules_dx file (FILE:@@//…, for example rules_zig readingzig/private/sdk_versions.json). EveryFILE:/ENV:input in the nested entry must be in the root entry with the same digest, and every repo it generates must also be generated by the root. On a mismatch it names the set and prints the re-record command.dart pubin the root readsthird_party/dart/pubspec.lockand generates 78 repos, while the release consumers generate 46. Exact equality would fail on those.nested_extension_drift_finds_a_stale_sdkis the unit test: a matching pair (zig 0.17.1), a stale pair (zig 0.17.0 with an oldsdk_versions.jsondigest), a dart entry where the root has more, and a python entry that is skipped because it reads no rules_dx file.tools/testing/extensions.bzlnow fetches cache entries with a newnested_cache_filerule. It sends ghcr.io the anonymousBearer QQ==token. Theappleset lists a Homebrew swift-format bottle on ghcr.io, which answers 401 without a token, so the macOS nested record and everyapplenested run failed to fetch it.On main the guard flags exactly the six stale sets:
adopt_polyglot,apple,indirect,release_bcr,release_candidateandrelease_quickstartall still havezig_0.17.0_*. I dispatchedlock-refresh.yml -f nested=true -f pr=14093on this branch to re-record them.Tested:
//core/modules:consumer_deps_testwas run. The unit testnested_extension_drift_finds_a_stale_sdkand the other 19 tests pass.every_nested_lock_matches_the_root_rules_dx_extensionsfails as intended until the re-recorded locks land on this branch.@@+nested_repository_cache+nested_cache_a4890bc5…//file(the ghcr.io blob) and@@+nested_repository_cache+nested_cache_7cd0312e…//file(an ordinary entry). Both fetched.The PR stays draft until the locks land. The offline nested check still needs
/evidenceon the three hosts.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hxEMUyLEBAfNLUska2