Skip to content

Quarantine ProcessAsync_AwaitersUseTheResultOfExecutor #57567

Description

@SteveSandersonMS

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

Activity

  1. ghost added
    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
    on Aug 28, 2024
  2. added this to the Backlog milestone on Jul 18, 2025
  3. github-actions commented on Mar 23, 2026

    @github-actions
    Contributor

    CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor has been unquarantined. It passed with 100% pass rate across 30 quarantined pipeline builds over 73+ days.

  4. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    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 an Assert.True() failure at line 1033, which is inside a TestMemoryCache.TryGetValue override.

    The failure pattern — Assert.True() Failure: Expected: True, Actual: False — suggests that a TryGetValue call returns false when true is 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.ProcessAsync has a race condition or the test's TestMemoryCache mock 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.

    • resource:search_pull_requests (search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65714 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65803 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65804 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #64859 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65696 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65930 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #55092 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65777 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65893 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65928 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65926 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65752 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65808 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65817 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • #65816 (list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
    • ... and 25 more items

    Generated by Daily Test Quarantine Management · ◷

  5. github-actions commented on Apr 25, 2026

    @github-actions
    Contributor

    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.

  6. Youssef1313 commented on Apr 30, 2026

    @Youssef1313
    Member

    This test is flaky again.

    2026-04-30T09:29:51.3208154Z [xUnit.net 00:00:13.45]     Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor [FAIL]
    2026-04-30T09:29:51.3228207Z [xUnit.net 00:00:13.45]       Assert.True() Failure
    2026-04-30T09:29:51.3284860Z [xUnit.net 00:00:13.45]       Expected: True
    2026-04-30T09:29:51.3284966Z [xUnit.net 00:00:13.45]       Actual:   False
    2026-04-30T09:29:51.3285000Z [xUnit.net 00:00:13.46]       Stack Trace:
    2026-04-30T09:29:51.3285032Z [xUnit.net 00:00:13.46]         /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs(1033,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.TestMemoryCache.TryGetValue(Object key, Object& value)
    2026-04-30T09:29:51.3285065Z [xUnit.net 00:00:13.46]            at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
    2026-04-30T09:29:51.3285097Z [xUnit.net 00:00:13.46]         /_/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs(70,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
    2026-04-30T09:29:51.3285128Z [xUnit.net 00:00:13.46]         --- End of stack trace from previous location ---
    2026-04-30T09:29:51.3285160Z [xUnit.net 00:00:13.46]         /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs(922,0): at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor()
    2026-04-30T09:29:51.3317701Z [xUnit.net 00:00:13.46]         --- End of stack trace from previous location ---
    2026-04-30T09:29:51.3317785Z [xUnit.net 00:00:13.46]         --- End of stack trace from previous location ---
    2026-04-30T09:29:51.3911516Z   Failed Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor [10 s]
    2026-04-30T09:29:51.3911640Z   Error Message:
    2026-04-30T09:29:51.3911677Z    Assert.True() Failure
    2026-04-30T09:29:51.3911709Z Expected: True
    2026-04-30T09:29:51.3911740Z Actual:   False
    2026-04-30T09:29:51.3911770Z   Stack Trace:
    2026-04-30T09:29:51.3911932Z      at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.TestMemoryCache.TryGetValue(Object key, Object& value) in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 1033
    2026-04-30T09:29:51.3911964Z    at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
    2026-04-30T09:29:51.3911993Z    at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in /_/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs:line 70
    2026-04-30T09:29:51.3912020Z --- End of stack trace from previous location ---
    2026-04-30T09:29:51.3912053Z    at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor() in /_/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs:line 922
    2026-04-30T09:29:51.3912081Z --- End of stack trace from previous location ---
    2026-04-30T09:29:51.3912167Z --- End of stack trace from previous location ---
    

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatestest-failure

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions