Uh oh!
There was an error while loading. Please reload this page.
Revert "Make MemoryCache thread-safety tests deterministic" - #130152
Conversation
This reverts commit 8d63899.
Tagging subscribers to this area: @dotnet/area-extensions-caching |
There was a problem hiding this comment.
Pull request overview
This PR reverts prior changes that attempted to make MemoryCache thread-safety tests deterministic, in response to a reported CI failure. The net effect is to restore time-based/concurrency-loop style tests and add ActiveIssue skips for the failing scenarios.
Changes:
- Reworks several thread-safety tests from barrier + fixed-iteration loops back to cancellation/time-based loops.
- Adds
ActiveIssue(72890)to additional tests to disable them while the issue is investigated. - Includes a few incidental formatting changes in the test file.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Copilot Code ReviewHolistic AssessmentMotivation: PR #129897 ("Make Approach: This is a clean git revert — the diff is the exact inverse of #129897 (111 additions / 60 deletions vs. 60 / 111). All three affected test methods are disabled via Summary: ✅ LGTM. A straightforward, clean revert that restores the previous known state with flaky tests properly disabled. No concerns — the pre-existing test issues ( Detailed FindingsDetailed Findings✅ Revert completeness — Clean inverse of #129897Verified the diff is the exact inverse of PR #129897. Only one file is touched ( ✅ Tests correctly disabled — |
sami-daniel
commented
Jul 3, 2026
Thanks for the revert. Sorry about the breakage. I took another look at #130139, and I think I might have found what's causing the failure. I don't think it's related to the concurrency rewrite itself, but to the final assertion,
Do you happen to know where the original failure showed up in the tree? Was it on a particular pipeline? If I can reproduce the same environment locally, I might be able to confirm the theory.... I couldn't reproduce it locally, so it still looks timing dependent. I'll put together a follow-up PR to re land the #129897 by updating the assertion once this revert merges and I've verified the fix. |
MichalStrehovsky
commented
Jul 3, 2026
No worries, this happens.
#130139 has the legs where automation saw this. Linux arm32, Windows x86, ReadyToRun Windows x64. .NET Core and .NET Framework alike. Doesn't look to be environment specific, just non-deterministic. For these kinds of issues one has to run the entire test locally for hundreds of iterations and even that doesn't guarantee success. Make sure to run with |
Uh oh!
There was an error while loading. Please reload this page.
Resolves#130139
Reverts #129897