Smoke: keep the result when adapter discovery fails #1862
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1862
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1862"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@rrrarrra9 on GitHub · 2026-11-24 22:05 UTC · original
rrrarrra9:codex/smoke-optional-adapter→main· +84 −1 · 2 files · 2 commits · openRelated to #282. When a failed run has no usable
report.jsonand CIM fails or returns no named hardware adapter,smoke.ps1emits the regression block withgpu: unknownand preserves the measured counters.What is in it
scripts/smoke.ps1makes optional CIM discovery non-fatal, skips basic and unnamed controllers, and prioritizes the runtime report.scripts/smoke-adapter.tests.ps1covers 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
scripts/smoke-adapter.tests.ps1at4248cde9da24481c29775632d20f5cd5a9f19feareturnedsmoke-adapter: okand 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.ps1passed 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.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
AI use
@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
powershell.exe -NoProfile -File scripts/smoke-adapter.tests.ps1at the head: exit 0,smoke-adapter: ok.689f2db): exit 1: the fixture'sFixture: CIM is unavailableerror escapes main'ssmoke.ps1. So the new test catches the problem the PR fixes.Not tested
AI use
@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!
@JJAutoCompare on GitHub · 2026-11-25 04:14 UTC · original
XCL PR #1862 verification
Clean detached head
682bbba40ae822644ad88f5d6c40af01b5df7e75on STOR-WINLAB. The diff changesscripts/smoke.ps1and addsscripts/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 --workspaceandcargo test --workspace --no-runsucceeded outsideInvoke-ArcTest.ps1..\scripts\smoke-adapter.tests.ps1passed outside the lock (smoke-adapter: ok). With noreport.json, a throwing CIM stub and a Basic-only response each producedgpu: unknown. A usable stub returnedFixture Controller. Withreport.json, the script usedReport GPUand 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 $parentSmokereproducedFixture: CIM is unavailableusing the script extracted from parent689f2db477c3c062cf162649781640ef8a977c18.cargo test --workspace --no-fail-fast -- --test-threads=4ran once insideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 101. The log confirmed the A770 and the selected DXC directory. Totals from all 20test result:lines (19 test binaries and one doctest run): 950 passed, 25 failed, 45 ignored.Workspace failures and skips
0x80070057) and four shader result mismatches. Onee2efailure:test_title_runs_and_game_folder_is_untouchedreported blue where theRSSetDepthBiasXcheck expected green.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
mainworkspace run, retail-title smoke, live CIM outage, or GPUs other than the A770. The workspace failures are unclassified againstmain.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.logand published.@raylitebull on GitHub · 2026-11-25 10:46 UTC · original
Diff audited (
scripts/smoke.ps1Get-CimInstancetry/catch fallback to'unknown'+scripts/smoke-adapter.tests.ps1) and CI workflow approved (running). NeedsBuild and testgreen plussmoke-adapter.tests.ps1pass on Windows PowerShell 5.1 / 7.@raylitebull on GitHub · 2026-11-25 11:03 UTC · original
Updated review on rebased
fe29470:#2023's-OutDirartifact manifest assertions inscripts/smoke-adapter.tests.ps1alongside theGet-CimInstancetry/catch->'unknown'fallback inscripts/smoke.ps1.45600381633).Remaining before merge:
Build and testgreen plus fresh independent PowerShell verification ofscripts/smoke-adapter.tests.ps1onfe29470.@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 reranscripts/smoke-adapter.tests.ps1andscripts/test-smoke-artifacts.tests.ps1from 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
4248cde9da24481c29775632d20f5cd5a9f19feaon Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. The originalscripts/smoke-adapter.tests.ps1andscripts/test-smoke-artifacts.tests.ps1passed 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 producedunknown; 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
unknownwhen 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.
@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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.