Repository navigation
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatestest-failure
Milestone
Description
Failing Test(s)
- Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor
Error Message
Assert.True() Failure
Expected: True
Actual: False
Stacktrace
Details
at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.TestMemoryCache.TryGetValue(Object key, Object& value) in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 1033
at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in /_/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs:line 70
at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor() in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 922
--- End of stack trace from previous location ---
Logs
Details
2024-08-28T01:00:01.0229466Z [xUnit.net 00:00:13.99] Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor [FAIL]
2024-08-28T01:00:01.0230744Z [xUnit.net 00:00:14.00] Assert.True() Failure
2024-08-28T01:00:01.0234814Z [xUnit.net 00:00:14.00] Expected: True
2024-08-28T01:00:01.0259110Z [xUnit.net 00:00:14.00] Actual: False
2024-08-28T01:00:01.0259211Z [xUnit.net 00:00:14.00] Stack Trace:
2024-08-28T01:00:01.0259256Z [xUnit.net 00:00:14.01] /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs(1033,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.TestMemoryCache.TryGetValue(Object key, Object& value)
2024-08-28T01:00:01.0259411Z [xUnit.net 00:00:14.02] at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
2024-08-28T01:00:01.0259454Z [xUnit.net 00:00:14.02] /_/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs(70,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
2024-08-28T01:00:01.0262876Z [xUnit.net 00:00:14.02] /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs(922,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor()
2024-08-28T01:00:01.0268058Z [xUnit.net 00:00:14.02] --- End of stack trace from previous location ---
2024-08-28T01:00:01.0881972Z Failed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor [10 s]
2024-08-28T01:00:01.0882571Z Error Message:
2024-08-28T01:00:01.0882900Z Assert.True() Failure
2024-08-28T01:00:01.0882961Z Expected: True
2024-08-28T01:00:01.0883007Z Actual: False
2024-08-28T01:00:01.0883077Z Stack Trace:
2024-08-28T01:00:01.0883346Z at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.TestMemoryCache.TryGetValue(Object key, Object& value) in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 1033
2024-08-28T01:00:01.0883398Z at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
2024-08-28T01:00:01.0883440Z at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in /_/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs:line 70
2024-08-28T01:00:01.0883484Z at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor() in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 922
2024-08-28T01:00:01.0883623Z --- End of stack trace from previous location ---
2024-08-28T01:00:01.0941792Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_DoesNotCache_IfDisabled [3 ms]
2024-08-28T01:00:01.0941930Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.UpdateCacheEntryOptions_SetsSlidingExpiration_IfExpiresSlidingIsSet [< 1 ms]
2024-08-28T01:00:01.0941976Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_WorksForNestedCacheTagHelpers [34 ms]
2024-08-28T01:00:01.0942188Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ExceptionInProcessing_DoesntBlockConcurrentRequests [6 ms]
2024-08-28T01:00:01.0942233Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_RecalculatesValueIfCacheKeyChanges [1 ms]
2024-08-28T01:00:01.0942277Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.UpdateCacheEntryOptions_SetsAbsoluteExpiration_IfExpiresAfterIsSet [< 1 ms]
2024-08-28T01:00:01.0951103Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ThrowsExceptionForAwaiters_IfExecutorEncountersAnException [4 ms]
2024-08-28T01:00:01.0955478Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_UsesExpiresAfter_ToExpireCacheEntry [2 ms]
2024-08-28T01:00:01.1863018Z [xUnit.net 00:00:14.19] Finished: Microsoft.AspNetCore.Mvc.TagHelpers.Test
2024-08-28T01:00:01.3015540Z Data collector 'Blame' message: VSTEST_DUMP_PATH is specified. Dump files will be saved in: /home/helixbot/dotnetbuild/dumps, and won't be added to attachments..
2024-08-28T01:00:01.3015705Z Data collector 'Blame' message: All tests finished running, Sequence file will not be generated.
2024-08-28T01:00:01.3676795Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_UsesExpiresOn_ToExpireCacheEntry [2 ms]
2024-08-28T01:00:01.3677202Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.UpdateCacheEntryOptions_DefaultsTo30SecondsSliding_IfNoEvictionCriteriaIsProvided [< 1 ms]
2024-08-28T01:00:01.3677247Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ReturnsCachedValue_IfEnabled [1 ms]
2024-08-28T01:00:01.3677290Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_SetsEntrySize_ForPlaceholderAndFinalCacheEntries [10 ms]
2024-08-28T01:00:01.3677334Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_UsesExpiresSliding_ToExpireCacheEntryWithSlidingExpiration [2 ms]
2024-08-28T01:00:01.3677376Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ReturnsCachedValue_IfVaryByParamIsUnchanged [1 ms]
2024-08-28T01:00:01.3677418Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ExceptionInProcessing_DoNotThrowInSubsequentRequests [2 ms]
2024-08-28T01:00:01.3677505Z Passed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_ComputesValueOnce_WithConcurrentRequests [5 ms]
2024-08-28T01:00:01.4365628Z Results File: /datadisks/disk1/work/A4200906/w/B4A009D5/e/TestResults/TestResults.xml
2024-08-28T01:00:01.4376242Z
2024-08-28T01:00:01.4447519Z Test Run Failed.
2024-08-28T01:00:01.4451150Z Total tests: 934
2024-08-28T01:00:01.4454614Z Passed: 933
2024-08-28T01:00:01.4457994Z Failed: 1
2024-08-28T01:00:01.4522613Z Total time: 15.6898 Seconds
Build
https://dev.azure.com/dnceng-public/public/_build/results?buildId=790703
Metadata
Metadata
Assignees
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatestest-failure
Activity
Unquarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfEx…
Unquarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfEx…
github-actions commentedon Mar 23, 2026
CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutorhas been unquarantined. It passed with 100% pass rate across 30 quarantined pipeline builds over 73+ days.Unquarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfEx…
Re-quarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfE…
github-actions commentedon Mar 25, 2026
This test was unquarantined on 2026-03-23 (PR #65925) but has failed again in 2 consecutive builds (1350312 and 1350481) on 2026-03-24 — less than 24 hours after unquarantining.
Root cause analysis:
The test validates concurrent awaiter behavior for the
CacheTagHelper. It tests that multiple concurrent requests for the same cached content result in only one invocation of the content factory (other awaiting requests use the computed result). The failure is anAssert.True()failure at line 1033, which is inside aTestMemoryCache.TryGetValueoverride.The failure pattern —
Assert.True() Failure: Expected: True, Actual: False— suggests that a TryGetValue call returnsfalsewhentrueis expected. This is a race condition in the test's mock memory cache. The test appears to depend on precise task scheduling timing, and the assertion fails when thread scheduling causes the tasks to interleave differently than expected.This is a pre-existing flakiness issue that was not fully resolved before unquarantining. The test needs investigation into whether
CacheTagHelper.ProcessAsynchas a race condition or the test'sTestMemoryCachemock is not thread-safe.Note
🔒 Integrity filtering filtered 41 items
Integrity filtering activated and filtered the following items during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)Re-quarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfE…
Unquarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfEx…
github-actions commentedon Apr 25, 2026
Closing as the test has been reliably passing for 31+ days in the quarantine pipeline (100% pass rate). The
[QuarantinedTest]attribute has been removed in the unquarantine PR.Unquarantine CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfEx…
Youssef1313 commentedon Apr 30, 2026
This test is flaky again.
https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-aspnetcore-refs-pull-66537-merge-48ad1e651d8341e7ba/Microsoft.AspNetCore.Mvc.TagHelpers.Test--net11.0/1/console.eae3f024.log?helixlogtype=result&skoid=8eda00af-b5ec-4be9-b69b-0919a2338892&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2026-04-30T11%3A19%3A26Z&ske=2026-04-30T12%3A19%3A26Z&sks=b&skv=2026-02-06&sv=2026-02-06&se=2026-04-30T12%3A19%3A26Z&sr=b&sp=rl&sig=2wtYQ7Pn4DT6xZIRWLuR0KGujFYQbeKhheSEJl6s7vE%3D