tooling: flag repeated test sections in GPU report intake #1208

Merged
nanyoudegege merged 1 commit from upstream-pr/1215 into main 2026-11-24 04:07:36 +00:00
nanyoudegege commented 2026-11-24 03:37:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by nanyoudegege on 2026-11-24T03:37:50Z.


Problem

The offline hardware-report intake uses a test's canonical name as a key. Pasting a repeat of a test under the same report heading silently overwrote its first status and metrics, so the helper could suggest a misleading README cell. A heading for the other backend does not distinguish two runs unless that run has its own report heading.

Change

Route an ambiguous report segment to manual review. Keep separate, unambiguous reports pasted in the same comment and preserve existing handling of other incomplete segments. This change does not publish or edit any report.

Verification

  • python -B tests/hardware_reports_check.py — 12 tests passed on cloud Linux, including repeats with conflicting and matching verdicts, and a mixed-backend repeat.
  • python -B tests/gpu_report_format_check.py — 10 passed.
  • git diff --check — passed.
  • Synthetic CLI comparison: before, the duplicate result became a suggested failed coverage cell; after, that segment goes to manual review while the separate WARP report remains in the output.

AI-assisted (ChatGPT/Codex). Synthetic report inputs only; no Windows, physical GPU, or game data used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6574053109 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1215). Originally posted by [nanyoudegege](https://github.com/nanyoudegege) on 2026-11-24T03:37:50Z. --- ### Problem The offline hardware-report intake uses a test's canonical name as a key. Pasting a repeat of a test under the same report heading silently overwrote its first status and metrics, so the helper could suggest a misleading README cell. A heading for the other backend does not distinguish two runs unless that run has its own report heading. ### Change Route an ambiguous report segment to manual review. Keep separate, unambiguous reports pasted in the same comment and preserve existing handling of other incomplete segments. This change does not publish or edit any report. ### Verification - `python -B tests/hardware_reports_check.py` — 12 tests passed on cloud Linux, including repeats with conflicting and matching verdicts, and a mixed-backend repeat. - `python -B tests/gpu_report_format_check.py` — 10 passed. - `git diff --check` — passed. - Synthetic CLI comparison: before, the duplicate result became a suggested failed coverage cell; after, that segment goes to manual review while the separate WARP report remains in the output. AI-assisted (ChatGPT/Codex). Synthetic report inputs only; no Windows, physical GPU, or game data used.
upstream-sync closed this pull request 2026-11-24 06:46:59 +00:00
tedin7 commented 2026-11-24 06:46:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:51:26Z.

Review: COMMENTED


Technical review on Linux at commit 6a4d18ed (Windows build/tests were not executed locally).

Findings

No functional issues found:

  • tools/hardware_reports.py: parse_segment now rejects repeated canonical test section keys (name in results) with duplicate test section: <name>_<backend>, and parse_comment surfaces that duplicate reason even when another separate report segment in the same comment is usable.
  • tests/hardware_reports_check.py: test_duplicate_test_section_goes_to_manual_review covers conflicting/matching hardware repeats and mixed-backend repeats without a separate report header while preserving valid separate WARP reports.

Checks run (Linux, 6a4d18ed)

  • /root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py: Ran 12 tests in 0.036s — OK (0 skipped, 0 failed).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py: Ran 10 tests in 0.003s — OK (0 skipped, 0 failed).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (16 Markdown files, 272 links).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (1008 tracked files).
  • git diff --check HEAD~1..HEAD: passed.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6033388139 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1215#pullrequestreview-6033388139). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:51:26Z. **Review:** COMMENTED --- Technical review on Linux at commit `6a4d18ed` (Windows build/tests were **not** executed locally). ### Findings No functional issues found: - `tools/hardware_reports.py`: `parse_segment` now rejects repeated canonical test section keys (`name in results`) with `duplicate test section: <name>_<backend>`, and `parse_comment` surfaces that `duplicate` reason even when another separate report segment in the same comment is usable. - `tests/hardware_reports_check.py`: `test_duplicate_test_section_goes_to_manual_review` covers conflicting/matching hardware repeats and mixed-backend repeats without a separate report header while preserving valid separate WARP reports. ### Checks run (Linux, `6a4d18ed`) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py`: `Ran 12 tests in 0.036s` — `OK` (0 skipped, 0 failed). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py`: `Ran 10 tests in 0.003s` — `OK` (0 skipped, 0 failed). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py`: passed (`16` Markdown files, `272` links). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py`: passed (`1008` tracked files). - `git diff --check HEAD~1..HEAD`: passed.
chatgpt-codex-connector[bot commented 2026-11-24 06:50:15 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T03:37:56Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T03:42:10.288993Z 6a4d18e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121276992 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1215#issuecomment-7121276992). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T03:37:56Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"6a4d18edc0daa221a275b5c24eb4deb3b7d8abfd","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T03:42:10.288993Z">2026-11-24T03:42:10.288993Z</relative-time> | `6a4d18e` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1208
No description provided.