Skip to content

Smoke: keep the result when adapter discovery fails - #1862

Open
rrrarrra9 wants to merge 1 commit into
xcl-dev:mainfrom
rrrarrra9:codex/smoke-optional-adapter
Open

rrrarrra9 wants to merge 1 commit into
xcl-dev:mainfrom
rrrarrra9:codex/smoke-optional-adapter

Conversation

@rrrarrra9

@rrrarrra9 rrrarrra9 commented Nov 24, 2026 •

Copy link
Copy Markdown

Related to #282. When a run ends before report.json exists and Windows refuses the CIM query, smoke.ps1 exits before writing the regression block. Keep the observed crash and memory counters and use gpu: unknown if adapter discovery fails.

What is in it

  • scripts/smoke.ps1 makes the optional CIM query non-fatal.
  • scripts/smoke-adapter.tests.ps1 covers an unavailable CIM query, an empty controller list, a successful fallback, and report precedence.
  • Scripts: preserve artifacts for world-entry smoke runs #1863 also guards the CIM fallback as part of its artifact-capture feature. This PR isolates the fallback and its regression fixture.

Tested

  • Rebased on 689f2db. Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9 passed all four cases on 682bbba40ae822644ad88f5d6c40af01b5df7e75. The same fixture aborts at the CIM exception on main in each shell. The fixture checks that one device removal, one crash, and 512 MiB peak process commit survive in the report.
  • A separate synthetic run in a restricted Windows session reproduced a real CIM access error on main. This head emitted the block with gpu: unknown, one device removal, and 512 MiB peak process commit.
  • Windows, GTX 1650 (4 GB), release. cargo test --locked --offline --workspace --release --no-fail-fast -- --test-threads=4 --show-output on the pre-rebase head ae7dcb4: 959 passed, 0 failed, 43 ignored. There were 24 explicit skips (18 for wave64, 3 for unsupported DXIL operations, one each for driver-cache control, reserved cube mips, and disabled heap windows), plus an unavailable Windows junction subcase. The rebased diff contains only the two scripts.

Not tested

  • Other adapter providers or retail play for this reporting change.

AI use

  • OpenAI Codex (gpt-6.2-sol) reproduced the error, wrote the patch and fixture, reviewed the rebase, ran validation, and drafted the report.

A missing report.json combined with an unavailable CIM service stopped smoke.ps1 before it could show the measured memory and device-removal count. Treat optional adapter discovery separately from the smoke results.

Assisted-by: OpenAI Codex (gpt-6.2-sol)
@rrrarrra9
rrrarrra9 force-pushed the codex/smoke-optional-adapter branch from ae7dcb4 to 682bbba Compare November 24, 2026 22:16
@rrrarrra9
rrrarrra9 marked this pull request as ready for review November 24, 2026 22:22
@futurepro62

Copy link
Copy Markdown

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

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

Thanks!

@JJAutoCompare

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants