Skip to content

CanIgnoreTemplateGroupsWithConstraints flaky test failing in CI #46212

Open
@ViktorHofer

Description

@ViktorHofer

Edit by carlossanlop:

  • I marked it as "BuildRetry" as it is failing intermittently.
  • I don't know who the rightful owner is, if Area-CLI or Area-Templates, so I added both areas to get them notified.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=955490
Build error leg or test failing: Microsoft.TemplateEngine.Cli.UnitTests.ParserTests.TabCompletionTests.CanIgnoreTemplateGroupsWithConstraints

Error Message

{
  "ErrorMessage" : ["Collections differ", "foo1"],
  "BuildRetry" : true,
  "ExcludeConsoleLog" : false
}
XUnit : error : Tests failed: /mnt/vss/_work/1/s/artifacts/TestResults/Release/Microsoft.TemplateEngine.Cli.UnitTests_net10.0_x64.html [net10.0|x64] [/mnt/vss/_work/1/s/test/Microsoft.TemplateEngine.Cli.UnitTests/Microsoft.TemplateEngine.Cli.UnitTests.csproj]
##[error]XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: /mnt/vss/_work/1/s/artifacts/TestResults/Release/Microsoft.TemplateEngine.Cli.UnitTests_net10.0_x64.html [net10.0|x64]
  • Test output:
Error message
Assert.Equal() Failure: Collections differ\n           ↓ (pos 0)\nExpected: ["foo1"]\nActual:   []

Stack trace
   at Microsoft.TemplateEngine.Cli.UnitTests.ParserTests.TabCompletionTests.CanIgnoreTemplateGroupsWithConstraints() in /mnt/vss/_work/1/s/test/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/TabCompletionTests.cs:line 470
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=955490
Error message validated: [Collections differ foo1]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 2/18/2025 8:20:43 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions