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

Đang mở
#743 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
C++
Star
2.6k
Fork
201
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameTechDev/PresentMon

Tất cả issue của GameTechDev/PresentMon

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.