Skip to content

Test failures: Microsoft.Extensions.Caching.Memory flakiness #33993

Closed

Description

@maryamariyan
Microsoft.Extensions.Caching.Memory.MemoryCacheSetAndRemoveTests.GetAndSet_AreThreadSafe_AndUpdatesNeverLeavesNullValues [FAIL]
      Assert.False() Failure
      Expected: False
      Actual:   True
      Stack Trace:
        /_/src/libraries/Microsoft.Extensions.Caching.Memory/tests/MemoryCacheSetAndRemoveTests.cs(488,0): at Microsoft.Extensions.Caching.Memory.MemoryCacheSetAndRemoveTests.GetAndSet_AreThreadSafe_AndUpdatesNeverLeavesNullValues()
        /_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(339,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

https://helix.dot.net/api/2019-06-17/jobs/e7ed99d0-5a25-4792-8b58-04c5a0009c69/workitems/Microsoft.Extensions.Caching.Memory.Tests/console


UPDATE:
Failures not just on Mono. The flakiness reported in #34128 and disabled in PR #34142

Activity

  1. changed the title [-]mono test failure: Microsoft.Extensions.Caching.Memory.MemoryCacheSetAndRemoveTests.GetAndSet_AreThreadSafe_AndUpdatesNeverLeavesNullValues[/-] [+]Test failures: Microsoft.Extensions.Caching.Memory flakiness[/+] on Mar 26, 2020
  2. ericstj commented on Mar 26, 2020

    @ericstj
    Member

    Duping this to #34128 since it has more data.

  3. ericstj commented on Mar 26, 2020

    @ericstj
    Member

    Reopen since tests are disabled against this

  4. ericstj commented on Mar 27, 2020

    @ericstj
    Member

    There may be more tests failing than just these. I sampled some of the logs listed in #34128 and see a couple other tests failing:

    https://helix.dot.net/api/2019-06-17/jobs/69862130-a475-4556-96d7-896801bfcfec/workitems/Microsoft.Extensions.Caching.Memory.Tests/files/console.ed98370f.log

    Microsoft.Extensions.Caching.Memory.CapacityTests.CompactsToLessThanLowWatermarkUsingLRUWhenHighWatermarkExceeded [FAIL]
          Assert.True() Failure
          Expected: True
          Actual:   False
          Stack Trace:
            /_/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs(378,0): at Microsoft.Extensions.Caching.Memory.CapacityTests.CompactsToLessThanLowWatermarkUsingLRUWhenHighWatermarkExceeded()
    

    https://helix.dot.net/api/2019-06-17/jobs/7df59f03-64bf-479e-a50e-680591bfadde/workitems/Microsoft.Extensions.Caching.Memory.Tests/files/console.b7698877.log

        Microsoft.Extensions.Caching.Memory.CapacityTests.ExpiringEntryDecreasesCacheSize [FAIL]
          Assert.True() Failure
          Expected: True
          Actual:   False
          Stack Trace:
            /_/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs(338,0): at Microsoft.Extensions.Caching.Memory.CapacityTests.ExpiringEntryDecreasesCacheSize()
    

    I wonder if there is something broken with how we're testing these in dotnet/runtime? Maybe concurrency differences and shared state?

  5. added this to the Future milestone on Jun 12, 2020
  6. removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 12, 2020
  7. v-haren commented on Jul 27, 2020

    @v-haren

    failed again in job: runtime-coreclr libraries-jitstress 20200726.1

    failed test: Microsoft.Extensions.Caching.Memory.CapacityTests.DoNotAddIfSizeOverflows

    Error message

    Assert.True() Failure
    Expected: True
    Actual:   False
    
    
    Stack trace
       at Microsoft.Extensions.Caching.Memory.CapacityTests.DoNotAddIfSizeOverflows() in /_/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs:line 137
    --- End of stack trace from previous location ---
    
  8. 3 remaining items

  9. jkotas commented on Jun 22, 2021

    @jkotas
    Member

    We still have 7 tests disabled against this issue.

  10. reopened this on Jun 22, 2021
  11. danmoseley commented on Jun 22, 2021

    @danmoseley
    Contributor

    More commentary in #50270

  12. removed their assignment
    on Feb 27, 2022
  13. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 26, 2022
  14. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 26, 2022
  15. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Jul 26, 2022
  16. danmoseley commented on Jul 26, 2022

    @danmoseley
    Contributor

    I'll disable that asap and create a new issue, for clarity, as this has covered other symptoms...

  17. danmoseley commented on Jul 26, 2022

    @danmoseley
    Contributor
  18. ghost locked as resolved and limited conversation to collaborators on Aug 26, 2022
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions