Repository navigation
Fix status-cache invalidation test race - #2187
Merged
Tyrie Vella (tyrielv) merged 1 commit intoNov 13, 2026
Merged
Conversation
Observe cache deletion before the command starts so that fast regeneration cannot hide invalidation. Retain cache regeneration and status output assertions. Add a functional test that waits for regeneration before the callback returns. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Tyrie Vella (tyrielv)
enabled auto-merge
November 13, 2026 20:03
|
[KeithBot]: ✅ No issues found · iteration 1 ( Approach: Right layer: fixes the timing assumption in the shared test helper for all four callers; a watcher armed before the command proves deletion even when the background rebuild wins the race. Validation
Approving. 🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon + approach review · reply on a thread to dispute |
Keith Klein (KeithIsSleeping)
approved these changes
Nov 13, 2026
This was referenced Nov 17, 2026
Merged
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.
Problem and Context
The status-cache tests require the cache file to remain absent after a command invalidates it. The background thread can delete and regenerate the cache before that command returns. This correct behavior causes an intermittent failure in
ModifyingHeadRefInvalidatesCacheand other tests that use the same helper.Changes