Per-run / per-case test log isolation for PresentMonAPI2Tests

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

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

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

評価

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

調査の方向性

Start by locating PresentMonAPI2Tests, TEST_MODULE_INITIALIZE, and the shared TestArtifacts helper, then trace how PMON_TEST_RUN_ID and PMON_TEST_RUN_ID_FILE control run rotation. Check the CTest fixture and agent script paths mentioned in the issue. Done means each case keeps its own logs and output, runs rotate with one .prev retained, and wipe failures are recorded while execution continues.

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

説明

Problem

PresentMonAPI2Tests write shared suite folders under TestLogs\<Suite> and TestOutput\<Suite>. TEST_MODULE_INITIALIZE used to wipe a hand-maintained list of those folders, which is a poor fit for current runners:

  • CTest loads the DLL once per method, so a wipe either destroys earlier cases in the same ctest invocation or never clears unlisted suites (e.g. CaptureCliWait, UiLaunch).
  • Shared suite folders let log assertions (e.g. ClientLogContains_ in CaptureCliWaitTests) match stale files from prior cases or runs.
  • We need post-mortem data after failures; cavalier deletion of the current run's artifacts is not acceptable.
Proposed solution

Keep every case's logs for the duration of a run; rotate only between runs; keep one previous run as .prev.

  • Shared helper (TestArtifacts) decides rotate vs join from PMON_TEST_RUN_ID / PMON_TEST_RUN_ID_FILE (CTest fixture + agent script) or standalone (IDE / manual vstest).
  • Per-case folders: TestLogs\<Suite>\<NNNN>-<label>\ with case.txt, child process logs, and output\.
  • Preserve AgentDiagnostics for the agent script; reset MachineExpectations with the output root each run; wipe failures warn and continue (rotation-warnings.txt).
主要言語
C++
スター
2.6k
フォーク
201
平均マージ
2日 21時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GameTechDev/PresentMon のほかの issue

GameTechDev/PresentMon の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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