Add positive cDAC loading policy tests with .NET 11 dumps

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp, linux

調査の方向性

既存の DbgShim.UnitTests の negative/fallback cDAC ポリシーテストと、診断テストアセットのワークフローから開始します。IXCLRDataProcess と DBI ICorDebugProcess の直接アクティベーションを追跡し、その後、3 つすべてのポリシーについて Windows と Linux の .NET 11 ダンプのカバレッジを追加します。CI が positive cDAC activation、provider selection、および変更されていない legacy DAC behavior を証明できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Background

Dbgshim now has deterministic negative/fallback coverage for the cDAC loading policies by pointing DOTNET_CDAC_PATH at a nonexistent library. The tests verify LegacyDacOnly, PreferCDac, and CDacOnly for both direct IXCLRDataProcess activation and the DBI ICorDebugProcess path.

The current DbgShim.UnitTests dump assets are .NET 6, so they cannot positively validate activation through mscordaccore_universal. Positive coverage requires dumps generated from a compatible .NET 11 runtime and the matching cDAC/DBI artifacts.

Proposed work

  • Generate and publish Windows and Linux .NET 11 dump test assets using the existing diagnostics test-asset workflow.
  • Make the matching mscordaccore_universal and mscordbi available to DbgShim.UnitTests.
  • Add positive policy tests for both activation routes:
    • Direct data access requesting IXCLRDataProcess.
    • DBI activation requesting ICorDebugProcess.
  • Verify policy behavior:
    • CDacOnly succeeds without invoking the library provider.
    • PreferCDac succeeds through cDAC without invoking the fallback provider.
    • LegacyDacOnly uses the legacy DAC provider and succeeds.
  • Include Windows-hosted Linux cross-dump coverage so target platform detection and cDAC activation are exercised together.
  • Assert which path was used, not only that activation succeeded, using provider invocation counts and/or a test-visible activation signal.

Acceptance criteria

  • Positive cDAC activation is exercised in CI against a .NET 11 dump.
  • Direct data-access and DBI routes are both covered.
  • All three loading policies have independently identifiable test cases.
  • The tests prove cDAC success does not consult the fallback provider.
  • Legacy DAC behavior remains covered and unchanged.
主要言語
C++
スター
1.3k
フォーク
407
平均マージ
21時間 5分
マージ済み PR(30日)
78

環境構築

Codespaces で開く

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

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

dotnet/diagnostics のほかの issue

dotnet/diagnostics の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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