dotnet / dotnet/aspnetcore

Quarantine ProcessAsync_AwaitersUseTheResultOfExecutor

Open
#57,567 4 comments 0 reactions 0 assignees View on GitHub
area-mvc test-failure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

## Failing Test(s)

- Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor

## Error Message

```text
Assert.True() Failure
Expected: True
Actual: False
```

## Stacktrace

```text
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

```text
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

Contributor guide

Open the contributing guide

Research direction

Start with Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.ProcessAsync_AwaitersUseTheResultOfExecutor in src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs, especially the failure at line 1033 and the call at line 922. Run the named test and inspect CacheTagHelper.cs at line 70; done means the intermittent failure is understood and the test is quarantined or otherwise handled according to the repository's test process.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.