[ci-scan] Test failure: TSAmbiguities.CollapsedInterfaces throws contracting-interface TypeLoadException

未关闭
#137,173 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@BrzVlad 已经在做这个了。

开始于 2026年10月20日。

  • #136163 来自 @BrzVlad —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
backend, testing

调研方向

Start with the failing test at Loader/classloader/TSAmbiguities/CollapsedInterfaces/HelloWorld/HelloWorld.cmd and inspect the test sources that define A<T1,T2> and its interface set. Reproduce the TypeLoadException in an affected Windows interpreter configuration, then trace the loader behavior for the contracting interface set. Done means the test passes across the reported configurations without disabling it; the issue establishes no product fix.

由索引模型根据 Issue 内容生成。

描述

agentic-workflows area-CodeGen-Interpreter-coreclr blocking-clean-ci Known Build Error untriaged

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1663861
Build error leg or test failing: coreclr Pri1 Runtime Tests Run windows x64 checked-Loader/classloader/TSAmbiguities/CollapsedInterfaces/HelloWorld/HelloWorld.cmd
Pipeline: runtime-interpreter, definition 316, main.
Also affected: Windows arm64, interpreter modes 2 and 3 and their no-tiered-compilation variants.
Queues: windows.amd64.open.rt and windows.11.arm64.open.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1640547 (finished 2026-10-19; earliest verified occurrence in the sampled window, not a proven introducing build).
Follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1667699 (finished 2026-11-06), same TypeLoadException.

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

The CollapsedInterfaces test throws TypeLoadException when loading A(int, int): its interface set contracts for some instantiations. Eight source work items contain this failure across the Windows interpreter configurations.

The exact exception was verified in five distinct builds: 1640547, 1652591, 1656023, source 1663861, and follow-up 1667699. Ten prior build inventories and representative Loader consoles were inspected. Missing older blobs and differing representative configurations are not treated as proof that every other sampled build passed this test. The occurrence count is a verified lower bound.

This is distinct from the SameMethodImpl/Override test's exception about Print2 overriding a method that has already been overridden. No product fix is established here.

Unhandled exception. System.TypeLoadException: The type 'A`2' in assembly 'HelloWorld, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' has a contracting interface set for some instantiations
   at HelloWorld.Test_A_int_int()
Expected: 100
Actual: -532462766
END EXECUTION - FAILED
Failed test: Loader/classloader/TSAmbiguities/CollapsedInterfaces/HelloWorld/HelloWorld.cmd

Error Message

{
  "ErrorMessage": "Unhandled exception. System.TypeLoadException: The type 'A`2' in assembly 'HelloWorld, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' has a contracting interface set for some instantiations",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 2 hits in failure.log

The exact exception matches twice in the representative saved source console (raw output and the wrapper's repeated exception), and also matches the follow-up console. Passing/skipped negative checks are empty. Multiple occurrences within one build count once for stability.


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

[!NOTE]
Generated by GitHub Copilot.

Generated by CI Outer-Loop Failure Scanner · copilot · gpt61 · ~285 AIC · ⌖ ~15 AIC · ⊞ 33.3K · ◷

Report
Build Repository Test Pull Request
1670961 dotnet/runtime OutOfProcessTest.Loader/classloader/TSAmbiguities/CollapsedInterfaces/HelloWorld/HelloWorld.cmd
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 1 1
主要语言
C#
星标
18.4k
派生
5.8k
平均合并
2 天 14 小时
30 天内合并 PR
585

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/runtime 的其他 Issue

查看 dotnet/runtime 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。