Scripts: show coherent memory in smoke reports #2072

Open
github-bot wants to merge 1 commit from github-bot/gh-2072 into main AGit
Owner

@⁠Swagi-REDACTED on GitHub · 2026-11-25 02:54 UTC · original
Swagi-REDACTED:scripts/smoke-coherent-memory → main · +46 −1 · 2 files · 1 commits · open

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.
**@⁠Swagi-REDACTED** on GitHub · 2026-11-25 02:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2072) `Swagi-REDACTED:scripts/smoke-coherent-memory` → `main` · +46 −1 · 2 files · 1 commits · open 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.
Report the committed UMA size alongside the existing measurements so
fallback and full-window runs can be distinguished when investigating
frame-count differences (#284). Missing metadata remains n/a.

Exercise the real script with eight fixture cases under PowerShell 5.1
and 7. The GPU workspace suite passed: 1154 passed, 0 failed, 46 ignored,
with 25 explicitly reported skips and no optional game samples.

Co-authored-by: Codex <[email protected]>
Assisted-by: Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:17:31 +00:00
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:10 UTC · original

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.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7151667208) # 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 05:09 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 05:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7153509328) 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!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 18:06 UTC · original · edited 2026-11-25 18:12 UTC

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.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 18:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/2072#issuecomment-7170451419) · edited 2026-11-25 18:12 UTC 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2072/head:github-bot/gh-2072'
git switch 'github-bot/gh-2072'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2072'
git switch 'github-bot/gh-2072'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2072'
git switch 'github-bot/gh-2072'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2072'
git switch 'main'
git merge --squash 'github-bot/gh-2072'
git switch 'main'
git merge --ff-only 'github-bot/gh-2072'
git switch 'main'
git merge 'github-bot/gh-2072'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.