Smoke: keep the result when adapter discovery fails #1862

Open
github-bot wants to merge 2 commits from github-bot/gh-1862 into main AGit
Owner

@⁠rrrarrra9 on GitHub · 2026-11-24 22:05 UTC · original
rrrarrra9:codex/smoke-optional-adapter → main · +84 −1 · 2 files · 2 commits · open

Related to #282. When a failed run has no usable report.json and CIM fails or returns no named hardware adapter, smoke.ps1 emits the regression block with gpu: unknown and preserves the measured counters.

What is in it

  • scripts/smoke.ps1 makes optional CIM discovery non-fatal, skips basic and unnamed controllers, and prioritizes the runtime report.
  • scripts/smoke-adapter.tests.ps1 covers a thrown CIM error, empty and basic-only lists, a usable controller after unnamed entries, and report precedence. The CIM-failure case also verifies the saved log and manifest from #2023's -OutDir.

Tested

  • On Windows 11 build 26300.9974, scripts/smoke-adapter.tests.ps1 at 4248cde9da24481c29775632d20f5cd5a9f19fea returned smoke-adapter: ok and exit 0 in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9. The block retained one device removal, one crash, and 512 MiB peak process commit in all five cases. These counters also survived in the saved manifest when CIM threw.
  • scripts/test-smoke-artifacts.tests.ps1 passed in both shells. The negative control with the base smoke script exited 1 at the CIM exception in both shells. The unnamed-controller case failed with the previous fix.
  • Rebased onto 426a5a7. #2245 corrected the two Rust assertions that failed in the previous CI run and in main. The base CI passed. The new head has its own CI run.

Not tested

  • A live CIM outage in a retail run at this revision. The regression fixture uses a synthetic launcher.

AI use

  • OpenAI Codex (gpt-6.2-sol on the prior revision, GPT-6 on this revision, exact variant not exposed) reproduced the errors, updated the scripts and fixtures, ran the checks, and drafted the report.
**@⁠rrrarrra9** on GitHub · 2026-11-24 22:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862) `rrrarrra9:codex/smoke-optional-adapter` → `main` · +84 −1 · 2 files · 2 commits · open Related to #282. When a failed run has no usable `report.json` and CIM fails or returns no named hardware adapter, `smoke.ps1` emits the regression block with `gpu: unknown` and preserves the measured counters. **What is in it** - `scripts/smoke.ps1` makes optional CIM discovery non-fatal, skips basic and unnamed controllers, and prioritizes the runtime report. - `scripts/smoke-adapter.tests.ps1` covers a thrown CIM error, empty and basic-only lists, a usable controller after unnamed entries, and report precedence. The CIM-failure case also verifies the saved log and manifest from #2023's `-OutDir`. **Tested** - On Windows 11 build 26300.9974, `scripts/smoke-adapter.tests.ps1` at `4248cde9da24481c29775632d20f5cd5a9f19fea` returned `smoke-adapter: ok` and exit 0 in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9. The block retained one device removal, one crash, and 512 MiB peak process commit in all five cases. These counters also survived in the saved manifest when CIM threw. - `scripts/test-smoke-artifacts.tests.ps1` passed in both shells. The negative control with the base smoke script exited 1 at the CIM exception in both shells. The unnamed-controller case failed with the previous fix. - Rebased onto `426a5a7`. [#2245](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2245) corrected the two Rust assertions that failed in the previous CI run and in main. The [base CI](https://github.com/xcl-dev/xcl/actions/runs/45603329704) passed. The new head has its own CI run. **Not tested** - A live CIM outage in a retail run at this revision. The regression fixture uses a synthetic launcher. **AI use** - OpenAI Codex (gpt-6.2-sol on the prior revision, GPT-6 on this revision, exact variant not exposed) reproduced the errors, updated the scripts and fixtures, ran the checks, and drafted the report.
Treat optional adapter discovery separately from the smoke results. Skip blank controller names and the basic display adapter while keeping the measured crash, device removal and memory counters if CIM is unavailable.

Assisted-by: OpenAI Codex (GPT-6)
Treat whitespace-only report names as missing before discovery and after a CIM failure. Exercise both a named controller and an unavailable provider.

Assisted-by: OpenAI Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:07:34 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 22:37 UTC · original

Tested exact head 682bbba, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • powershell.exe -NoProfile -File scripts/smoke-adapter.tests.ps1 at the head: exit 0, smoke-adapter: ok.
  • The PR's test file against current main's script (689f2db): exit 1: the fixture's Fixture: CIM is unavailable error escapes main's smoke.ps1. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 22:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7146443312) Tested exact head `682bbba`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `powershell.exe -NoProfile -File scripts/smoke-adapter.tests.ps1` at the head: exit 0, `smoke-adapter: ok`. - The PR's test file against current main's script (`689f2db`): exit 1: the fixture's `Fixture: CIM is unavailable` error escapes main's `smoke.ps1`. So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 01:38 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 01:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7149783903) 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

@⁠JJAutoCompare on GitHub · 2026-11-25 04:14 UTC · original

XCL PR #1862 verification

Clean detached head 682bbba40ae822644ad88f5d6c40af01b5df7e75 on STOR-WINLAB. The diff changes scripts/smoke.ps1 and adds scripts/smoke-adapter.tests.ps1.

Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175 (WDDM 3.2), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). PowerShell 5.1.26100.9818.

Tested

  • cargo build --workspace and cargo test --workspace --no-run succeeded outside Invoke-ArcTest.ps1.
  • .\scripts\smoke-adapter.tests.ps1 passed outside the lock (smoke-adapter: ok). With no report.json, a throwing CIM stub and a Basic-only response each produced gpu: unknown. A usable stub returned Fixture Controller. With report.json, the script used Report GPU and stripped the VRAM suffix. All four cases retained one device removal, one crash, and a 512 MB peak commit.
  • .\scripts\smoke-adapter.tests.ps1 -Smoke $parentSmoke reproduced Fixture: CIM is unavailable using the script extracted from parent 689f2db477c3c062cf162649781640ef8a977c18.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Exit 101. The log confirmed the A770 and the selected DXC directory. Totals from all 20 test result: lines (19 test binaries and one doctest run): 950 passed, 25 failed, 45 ignored.

Workspace failures and skips

  • 24 library failures: 20 compute PSO creation errors (0x80070057) and four shader result mismatches. One e2e failure: test_title_runs_and_game_folder_is_untouched reported blue where the RSSetDepthBiasX check expected green.
  • 25 lines began SKIPPED : 17 no wave64, three refused per-lane DXIL cases, and five for tiled tier, driver-cache control, debug-layer availability (two), and heap windows. Coverage excludes these skips.

Not tested

Matched main workspace run, retail-title smoke, live CIM outage, or GPUs other than the A770. The workspace failures are unclassified against main.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1862-suite.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 04:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7152667324) # XCL PR #1862 verification Clean detached head `682bbba40ae822644ad88f5d6c40af01b5df7e75` on STOR-WINLAB. The diff changes `scripts/smoke.ps1` and adds `scripts/smoke-adapter.tests.ps1`. Windows 11 Enterprise Evaluation x64 build 26200, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175 (WDDM 3.2), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). PowerShell 5.1.26100.9818. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` succeeded outside `Invoke-ArcTest.ps1`. - `.\scripts\smoke-adapter.tests.ps1` passed outside the lock (`smoke-adapter: ok`). With no `report.json`, a throwing CIM stub and a Basic-only response each produced `gpu: unknown`. A usable stub returned `Fixture Controller`. With `report.json`, the script used `Report GPU` and stripped the VRAM suffix. All four cases retained one device removal, one crash, and a 512 MB peak commit. - `.\scripts\smoke-adapter.tests.ps1 -Smoke $parentSmoke` reproduced `Fixture: CIM is unavailable` using the script extracted from parent `689f2db477c3c062cf162649781640ef8a977c18`. - `cargo test --workspace --no-fail-fast -- --test-threads=4` ran once inside `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. Exit 101. The log confirmed the A770 and the selected DXC directory. Totals from all 20 `test result:` lines (19 test binaries and one doctest run): 950 passed, 25 failed, 45 ignored. **Workspace failures and skips** - 24 library failures: 20 compute PSO creation errors (`0x80070057`) and four shader result mismatches. One `e2e` failure: `test_title_runs_and_game_folder_is_untouched` reported blue where the `RSSetDepthBiasX` check expected green. - 25 lines began `SKIPPED `: 17 no wave64, three refused per-lane DXIL cases, and five for tiled tier, driver-cache control, debug-layer availability (two), and heap windows. Coverage excludes these skips. **Not tested** Matched `main` workspace run, retail-title smoke, live CIM outage, or GPUs other than the A770. The workspace failures are unclassified against `main`. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1862-suite.log` and published.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 10:46 UTC · original

Diff audited (scripts/smoke.ps1 Get-CimInstance try/catch fallback to 'unknown' + scripts/smoke-adapter.tests.ps1) and CI workflow approved (running). Needs Build and test green plus smoke-adapter.tests.ps1 pass on Windows PowerShell 5.1 / 7.

**@⁠raylitebull** on GitHub · 2026-11-25 10:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7160147723) Diff audited (`scripts/smoke.ps1` `Get-CimInstance` try/catch fallback to `'unknown'` + `scripts/smoke-adapter.tests.ps1`) and CI workflow approved (running). Needs `Build and test` green plus `smoke-adapter.tests.ps1` pass on Windows PowerShell 5.1 / 7.
Author
Owner

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

Updated review on rebased fe29470:

  • Preserves #2023's -OutDir artifact manifest assertions in scripts/smoke-adapter.tests.ps1 alongside the Get-CimInstance try/catch -> 'unknown' fallback in scripts/smoke.ps1.
  • Diff audited and CI workflow approved (45600381633).

Remaining before merge: Build and test green plus fresh independent PowerShell verification of scripts/smoke-adapter.tests.ps1 on fe29470.

**@⁠raylitebull** on GitHub · 2026-11-25 11:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7160524906) Updated review on rebased `fe29470`: - Preserves `#2023`'s `-OutDir` artifact manifest assertions in `scripts/smoke-adapter.tests.ps1` alongside the `Get-CimInstance` `try/catch` -> `'unknown'` fallback in `scripts/smoke.ps1`. - Diff audited and CI workflow approved (`45600381633`). **Remaining before merge:** `Build and test` green plus fresh independent PowerShell verification of `scripts/smoke-adapter.tests.ps1` on `fe29470`.
Author
Owner

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

The PR now points at 5c1bb1d96322663dc1810aa78b7b24970cb63ef7, the same commit linked below. I reran scripts/smoke-adapter.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 from that clean PR checkout. Both passed in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. These four local runs used synthetic fixtures.

Retested 4248cde9da24481c29775632d20f5cd5a9f19fea on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. The original scripts/smoke-adapter.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 passed in both.

With the native CIM query denied in a restricted Windows session, I ran scripts/smoke.ps1 -Game Fixture -Xcl <stub.cmd> -Seconds 1 -Title constant -OutDir <dir>. A missing report produced unknown; a named report produced that name. With {"d3d12":{"adapter":" "}}, the block and manifest both contained just spaces. All three cases retained the fixture’s one device removal, one crash and 512 MB peak commit.

Fix and regression cases. The added fixture failed on the PR head in both shells. With the fix, a blank report name selects a usable CIM controller or falls back to unknown when CIM fails. Both suites and all three block/manifest comparisons passed per shell.

Windows 11 26100.9711, i7-13700, RTX 4060. No retail run, Rust build or GPU workload. OpenAI Codex (GPT-6) ran the fixtures, prepared the patch and wrote this report.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 15:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7166313476) · edited 2026-11-25 18:12 UTC The PR now points at `5c1bb1d96322663dc1810aa78b7b24970cb63ef7`, the same commit linked below. I reran `scripts/smoke-adapter.tests.ps1` and `scripts/test-smoke-artifacts.tests.ps1` from that clean PR checkout. Both passed in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. These four local runs used synthetic fixtures. Retested `4248cde9da24481c29775632d20f5cd5a9f19fea` on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. The original `scripts/smoke-adapter.tests.ps1` and `scripts/test-smoke-artifacts.tests.ps1` passed in both. With the native CIM query denied in a restricted Windows session, I ran `scripts/smoke.ps1 -Game Fixture -Xcl <stub.cmd> -Seconds 1 -Title constant -OutDir <dir>`. A missing report produced `unknown`; a named report produced that name. With `{"d3d12":{"adapter":" "}}`, the block and manifest both contained just spaces. All three cases retained the fixture’s one device removal, one crash and 512 MB peak commit. [Fix and regression cases](https://github.com/RavenCurseBurg/xcl/commit/5c1bb1d96322663dc1810aa78b7b24970cb63ef7). The added fixture failed on the PR head in both shells. With the fix, a blank report name selects a usable CIM controller or falls back to `unknown` when CIM fails. Both suites and all three block/manifest comparisons passed per shell. Windows 11 26100.9711, i7-13700, RTX 4060. No retail run, Rust build or GPU workload. OpenAI Codex (GPT-6) ran the fixtures, prepared the patch and wrote this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 06:41 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 06:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/1862#issuecomment-7184680012) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
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/1862/head:github-bot/gh-1862'
git switch 'github-bot/gh-1862'

Merge

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