Repository navigation
testing: age shared cache entries by their files, not their directory (follow-up to #14799) - #14812
Merged
Merged
Conversation
Counting an entry directory's own mtime made a freshly created directory with old files look recently used, so the over-limit harness case evicted the install base instead of the stale repository. Only install bases age by their directory, which the Bazel client stamps per start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Collaborator
Author
|
/evidence platforms=["linux_x86_64","windows_x86_64","macos_arm64"] task=test scope=//tools/testing/nested/... //tools/testing:nested_bazel_harness_test |
A directory holding an open file cannot be renamed on Windows, so the install base test kept its entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus
Collaborator
Author
|
/evidence platforms=["linux_x86_64","windows_x86_64","macos_arm64"] task=test scope=//tools/testing/nested/... //tools/testing:nested_bazel_harness_test |
Contributor
|
Evidence started on |
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.
Follow-up to #14799 (part of #14776).
Evidence run 45347598008 on 93be889 failed
a_shared_root_over_its_limit_evicts_the_least_recently_used_entry_firston macOS withextracted=true.last_usedcounted the entry directory's own mtime, so the stale repository the case creates (new directory, old file) looked fresh and the install base was evicted instead. Now only install bases age by their directory mtime, which the Bazel client stamps per start; other entries age by their newest file, or the directory when empty.New unit test:
a_repository_ages_by_its_files_not_its_directory. Local Bazel is broken, so the module was compiled and its 5 unit tests run with the pinned rustc 1.99.1 in a scratch crate (clippy pedantic clean); platform evidence follows.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hyBydsMejdwk6QdKus