Scripts: show coherent memory in smoke reports #2062

Open
Swagi-REDACTED wants to merge 1 commit from upstream-pr/2072 into main
Swagi-REDACTED commented 2026-11-25 02:54:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Swagi-REDACTED on 2026-11-25T02:54:15Z.


Smoke reports can compare runs using 512 MiB fallback coherent memory with runs using a full coherent window without showing the difference. This adds coherent memory: N MB from report.json (d3d12.uma_mb), or n/a when unavailable. Part of #284.

What is in it

  • scripts/smoke.ps1: reuse the adapter's report parse to print the committed UMA size; keep the existing v1 block and other fields.
  • scripts/smoke-memory.tests.ps1: eight fixture cases for 512, 4095, zero, absent/null/invalid metadata, malformed JSON, and a missing report; also preserve the adapter line.

Tested

  • RTX 3060 12 GB, driver 621.14; Ryzen 7 9800X3D, 16 GB RAM; Windows 11 Home build 26200; Rust 1.95.0 MSVC; DXC 1.9.2602.17; debug workspace tests.
  • New fixture failed on main because the field was absent, then passed with the change.
  • scripts/smoke-memory.tests.ps1 and scripts/smoke-title.tests.ps1: pass under PowerShell 7 and Windows PowerShell 5.1 (eight memory cases per shell).
  • python -B -m unittest discover -s scripts -p 'test_pr_check*.py': 13 passed.
  • scripts/test.ps1 (cargo build --workspace and cargo test --workspace -- --test-threads=4): 1154 passed, 0 failed, 46 ignored; 25 explicit skip events: 20 native-wave64 cases, three unsupported per-lane f16 cases, no heap windows, and cache-disabled PSO timing requiring Developer Mode. No XCL_SAMPLE_* variables were set. Ran on base cbc296a plus this scripts-only diff.

Not tested

  • AMD/Intel GPUs or live GitHub Actions. Scripts only; no runtime behavior or performance change is claimed, and no runtime smoke pair is required.

AI use

  • Codex, GPT-6 (exact serving variant not exposed): investigated the measurement gap, wrote the change and fixtures, executed the checks, reviewed the diff, and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:5484268333 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072). Originally posted by [Swagi-REDACTED](https://github.com/Swagi-REDACTED) on 2026-11-25T02:54:15Z. --- Smoke reports can compare runs using 512 MiB fallback coherent memory with runs using a full coherent window without showing the difference. This adds `coherent memory: N MB` from `report.json` (`d3d12.uma_mb`), or `n/a` when unavailable. Part of #284. **What is in it** - `scripts/smoke.ps1`: reuse the adapter's report parse to print the committed UMA size; keep the existing v1 block and other fields. - `scripts/smoke-memory.tests.ps1`: eight fixture cases for 512, 4095, zero, absent/null/invalid metadata, malformed JSON, and a missing report; also preserve the adapter line. **Tested** - RTX 3060 12 GB, driver 621.14; Ryzen 7 9800X3D, 16 GB RAM; Windows 11 Home build 26200; Rust 1.95.0 MSVC; DXC 1.9.2602.17; debug workspace tests. - New fixture failed on main because the field was absent, then passed with the change. - `scripts/smoke-memory.tests.ps1` and `scripts/smoke-title.tests.ps1`: pass under PowerShell 7 and Windows PowerShell 5.1 (eight memory cases per shell). - `python -B -m unittest discover -s scripts -p 'test_pr_check*.py'`: 13 passed. - `scripts/test.ps1` (`cargo build --workspace` and `cargo test --workspace -- --test-threads=4`): 1154 passed, 0 failed, 46 ignored; 25 explicit skip events: 20 native-wave64 cases, three unsupported per-lane f16 cases, no heap windows, and cache-disabled PSO timing requiring Developer Mode. No `XCL_SAMPLE_*` variables were set. Ran on base `cbc296a` plus this scripts-only diff. **Not tested** - AMD/Intel GPUs or live GitHub Actions. Scripts only; no runtime behavior or performance change is claimed, and no runtime smoke pair is required. **AI use** - Codex, GPT-6 (exact serving variant not exposed): investigated the measurement gap, wrote the change and fixtures, executed the checks, reviewed the diff, and drafted this description.
JJAutoCompare commented 2026-11-25 04:10:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:10:48Z.


PR #2072 — Windows smoke fixtures

Tested clean head 13ed4e2047a1554983e46ae68cc76a06e20cecda on Windows 11 Enterprise Evaluation 26200.9974, AMD Ryzen 7 3800X, Windows PowerShell 5.1.26100.9818. The public PR remained open at that head after the run.

  • powershell.exe -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File .\scripts\smoke-memory.tests.ps1 exited 0 and printed smoke-memory: ok (8 cases). The fixture checked 512, 4095, and 0 MB, plus n/a for absent, null, invalid, malformed, and missing report data. All six cases with adapter metadata asserted gpu: Fixture GPU, including the case with invalid UMA metadata.
  • powershell.exe -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File .\scripts\smoke-title.tests.ps1 exited 0 and printed smoke-title: ok. That marker follows 15 fixture checks covering eight path/hash cases, one trimmed title override, and six invalid title overrides.

Total 23 passed, 0 failed, 0 ignored, 0 skipped across two scripts. Logs and TEMP/TMP for the rerun are under L:/XclTooling/pr2072/13ed4e2-remotesigned-20261125T030824005Z/. The earlier default-policy launches were blocked before any case ran, and their logs are preserved alongside this report. RemoteSigned applied only to each new PowerShell process. The parent still reported Restricted after the run.

Not tested PowerShell 7 (unavailable in the locations checked), a game title, Cargo/Rust, GPU execution, or adapter fallback selection. Both scripts used checked-in synthetic fixtures.

AI use T3 Code / Codex (gpt-6.2-sol) verified the head, ran the fixture scripts, and recorded the results.

<!-- greyfinch-sync:ivall/xcl:comment:7151667208 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7151667208). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T03:10:48Z. --- # PR #2072 — Windows smoke fixtures **Tested** clean head `13ed4e2047a1554983e46ae68cc76a06e20cecda` on Windows 11 Enterprise Evaluation 26200.9974, AMD Ryzen 7 3800X, Windows PowerShell 5.1.26100.9818. The public PR remained open at that head after the run. - `powershell.exe -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File .\scripts\smoke-memory.tests.ps1` exited 0 and printed `smoke-memory: ok (8 cases)`. The fixture checked 512, 4095, and 0 MB, plus `n/a` for absent, null, invalid, malformed, and missing report data. All six cases with adapter metadata asserted `gpu: Fixture GPU`, including the case with invalid UMA metadata. - `powershell.exe -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File .\scripts\smoke-title.tests.ps1` exited 0 and printed `smoke-title: ok`. That marker follows 15 fixture checks covering eight path/hash cases, one trimmed title override, and six invalid title overrides. **Total** 23 passed, 0 failed, 0 ignored, 0 skipped across two scripts. Logs and `TEMP`/`TMP` for the rerun are under `L:/XclTooling/pr2072/13ed4e2-remotesigned-20261125T030824005Z/`. The earlier default-policy launches were blocked before any case ran, and their logs are preserved alongside this report. `RemoteSigned` applied only to each new PowerShell process. The parent still reported `Restricted` after the run. **Not tested** PowerShell 7 (unavailable in the locations checked), a game title, Cargo/Rust, GPU execution, or adapter fallback selection. Both scripts used checked-in synthetic fixtures. **AI use** T3 Code / Codex (gpt-6.2-sol) verified the head, ran the fixture scripts, and recorded the results.
DavidM1911 commented 2026-11-25 06:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:09:55Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7153509328 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7153509328). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T05:09:55Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
RavenCurseBurg commented 2026-11-25 19:08:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T18:06:36Z.


Tested 13ed4e2047a1554983e46ae68cc76a06e20cecda on Windows 11 (26100.9711) with Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. On both, a report with uma_mb: true printed 1 MB, false printed 0 MB, 1.6 printed 2 MB, and an empty string printed 0 MB. This makes malformed metadata look like a measured capacity.

Fix and regression cases. With the patch, all 13 independent report fixtures passed in each shell. A genuine zero stayed 0 MB, 4095 and the numeric string "512" retained their values, and malformed measurements produced n/a. A report containing only the memory field used the first non-Basic controller from a simulated CIM query and retained the 512 MB measurement. Explicit report adapter names took precedence. The fixture exit code, frame count and peak commit survived every case.

The updated smoke-memory.tests.ps1 (13 cases) and existing smoke-title.tests.ps1 also passed in both shells. Synthetic report files, child and log only. No retail run, full Rust suite or GPU workload. OpenAI Codex (GPT-6) ran the checks and prepared the patch and report.

<!-- greyfinch-sync:ivall/xcl:comment:7170451419 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7170451419). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T18:06:36Z. --- Tested `13ed4e2047a1554983e46ae68cc76a06e20cecda` on Windows 11 (26100.9711) with Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. On both, a report with `uma_mb: true` printed `1 MB`, `false` printed `0 MB`, `1.6` printed `2 MB`, and an empty string printed `0 MB`. This makes malformed metadata look like a measured capacity. [Fix and regression cases](https://github.com/RavenCurseBurg/xcl/commit/0182ad40d9c570e99007b551aa81534acb3f2b27). With the patch, all 13 independent report fixtures passed in each shell. A genuine zero stayed `0 MB`, 4095 and the numeric string `"512"` retained their values, and malformed measurements produced `n/a`. A report containing only the memory field used the first non-Basic controller from a simulated CIM query and retained the 512 MB measurement. Explicit report adapter names took precedence. The fixture exit code, frame count and peak commit survived every case. The updated `smoke-memory.tests.ps1` (13 cases) and existing `smoke-title.tests.ps1` also passed in both shells. Synthetic report files, child and log only. No retail run, full Rust suite or GPU workload. OpenAI Codex (GPT-6) ran the checks and prepared the patch and report.
github-actions[bot] commented 2026-11-29 20:43:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:19Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262305356 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7262305356). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:43:19Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:17:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:17:49Z.


Triage (#1607) – head 13ed4e2

No open or merged PR adds this to scripts/smoke.ps1. #632 (same issue #284) changes the coherent window itself in gpu/uma.rs and does not touch the smoke report.
The value read is report.json's d3d12.uma_mb, which main writes (real.rs, the UMA size). pr_check.py reads smoke blocks as generic key: value lines, so the extra line does not break it. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303884257 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7303884257). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:17:49Z. --- **Triage (#1607)** – head 13ed4e2 No open or merged PR adds this to `scripts/smoke.ps1`. #632 (same issue #284) changes the coherent window itself in `gpu/uma.rs` and does not touch the smoke report. The value read is `report.json`'s `d3d12.uma_mb`, which main writes (`real.rs`, the UMA size). `pr_check.py` reads smoke blocks as generic `key: value` lines, so the extra line does not break it. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2072:upstream-pr/2072'
git switch 'upstream-pr/2072'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2072'
git switch 'upstream-pr/2072'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2072'
git switch 'upstream-pr/2072'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2072'
git switch 'main'
git merge --squash 'upstream-pr/2072'
git switch 'main'
git merge --ff-only 'upstream-pr/2072'
git switch 'main'
git merge 'upstream-pr/2072'
git push origin 'main'
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
xcl-dev/xcl!2062
No description provided.