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

オープン
#137,173 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@BrzVlad がすでに取り組んでいます。

2026年10月20日 から。

  • #136163 @BrzVlad による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
585

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/runtime のほかの issue

dotnet/runtime の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。