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 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 Scripts: add -OutDir artifact capture to smoke.ps1 (#1855) #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
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.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@rrrarrra9
rrrarrra9 force-pushed the codex/smoke-optional-adapter branch from 682bbba to b552be9 Compare November 25, 2026 10:34
@raylitebull

Copy link
Copy Markdown
Member

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.

@rrrarrra9
rrrarrra9 force-pushed the codex/smoke-optional-adapter branch from b552be9 to fe29470 Compare November 25, 2026 11:00
@raylitebull

Copy link
Copy Markdown
Member

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.

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)
@rrrarrra9
rrrarrra9 force-pushed the codex/smoke-optional-adapter branch from fe29470 to 4248cde Compare November 25, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants