Skip to content

failing test: Microsoft.Extensions.Caching.Memory.CapacityTests.AddingReplacementExceedsCapacityRemovesOldEntry #45868

@radical

Description

@radical

Frequency during 4/1-7/22:

  • 34 failures (incl. 1x office run) (since 7/1 - 1 failure every couple of days)

Failing on PR: #45849 on net6.0-Linux-Debug-x64-CoreCLR_checked-Ubuntu.1804.Amd64.Open, which IIUC, shouldn't be affected by the PR changes.

  Starting:    Microsoft.Extensions.Caching.Memory.Tests (parallel test collections = on, max threads = 2)
    Microsoft.Extensions.Caching.Memory.CapacityTests.AddingReplacementExceedsCapacityRemovesOldEntry [FAIL]
      Assert.Equal() Failure
      Expected: 0
      Actual:   6
      Stack Trace:
        /_/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs(292,0): at Microsoft.Extensions.Caching.Memory.CapacityTests.AddingReplacementExceedsCapacityRemovesOldEntry()
  Finished:    Microsoft.Extensions.Caching.Memory.Tests
=== TEST EXECUTION SUMMARY ===
   Microsoft.Extensions.Caching.Memory.Tests  Total: 89, Errors: 0, Failed: 1, Skipped: 0, Time: 15.832s
~/work/D3CA0B78/w/AD02093F/e
----- end Wed Dec 9 20:49:15 UTC 2020 ----- exit code 1 ----------------------------------------------------------
Waiting a few seconds for any dump to be written..
Looking around for any Linux dump..
... found no dump in /home/helixbot/work/D3CA0B78/w/AD02093F/e
+ export _commandExitCode=0

build: https://dnceng.visualstudio.com/public/_build/results?buildId=914578&view=results

console: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-45849-merge-bbac7bcbe2e74adca7/Microsoft.Extensions.Caching.Memory.Tests/console.e1720aa2.log?sv=2019-07-07&se=2020-12-29T20%3A30%3A56Z&sr=c&sp=rl&sig=f2gjogjMSfevE3okDjeWwFG4pv5G077HR4EMxg9k76o%3D

let failedTests = (methodName : string, includePR : bool, messageSubstr: string, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
    | where TestName contains methodName
    | where includePassedOnRerun or (Outcome == 'Failed')
    | extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
    | extend Method = substring(TestName, startOfTestName)
    | extend Type = substring(TestName, 0, startOfTestName - 1)
    | project-away startOfTestName
    | where Method == methodName
    | where Message contains messageSubstr
    | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
    | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
        | where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
        | where Type startswith "test/functional/cli/"
            and not(Properties contains "runtime-staging")
        | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
        | project-rename JobType = Type) on JobId
    | extend PropertiesJson = parse_json(Properties)
    | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
    | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
    | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
    | extend Architecture = PropertiesJson.architecture
    | extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
    | project-away PropertiesJson
};
failedTests('AddingReplacementExceedsCapacityRemovesOldEntry', true, '', true);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions