Scripts: validate smoke duration before launching XCL #1080
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!1080
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1080"
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?
@broccolize on GitHub · 2026-11-24 11:23 UTC · original
broccolize:tooling/smoke-duration→main· +26 −1 · 2 files · 1 commits · openAn invalid smoke duration can reach process startup before the wait timeout is rejected. Validate the duration at parameter binding so XCL starts only with a timeout that fits the Windows process wait API.
What is in it
-Secondsvalue and account for the 120-second shutdown grace period. The rebase preserves upstream's-Titleparameter.Tested
c86fa9b055957129961edb23ae86b3c86a1b3794onmaincbc296a. Windows 11 build 26300.9974, Intel i5-10300H, NVIDIA GTX 1650 driver 617.14, Rust 1.100.0 MSVC, debug.scripts/test-smoke-duration.tests.ps1passed in PowerShell 7.6.9 and Windows PowerShell 5.1.26100.9818.cargo build --locked --workspacepassed.cargo test --locked --workspace --no-fail-fast -- --test-threads=4reported 1,152 passed, 2 failed, and 46 ignored. The 25SKIPPEDdiagnostics were 20 for no wave64, three for unsupported per-lane forms, one for heap windows being off, and one because the driver cache could not be disabled.mainand the PR head:console_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskandexecute_indirect_reads_the_arguments_written_before_it.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
04fcd86, script tests only, since this PR has no test report yet.Tested
powershell.exe -NoProfile -File scripts/test-smoke-duration.tests.ps1at the head: exit 0.930e8b4): exit 1: main'ssmoke.ps1does not check the duration first and fails later withno <...>.exe - build it first. So the new test catches the problem the PR fixes.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:36 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!
@RavenCurseBurg on GitHub · 2026-11-25 14:35 UTC · original · edited 2026-11-26 07:45 UTC
Verified
c86fa9b055957129961edb23ae86b3c86a1b3794through<shell> -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts\smoke.ps1 -Game Fixture -Xcl <stub.exe> [-Seconds N]. The native stub recorded its inheritedXCL_RUN_SECONDS, printed the fixture log path and exited immediately. Results matched in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9:Each valid case also printed the matching
seconds:field andexit: 0x0.scripts\test-smoke-duration.tests.ps1passed in both shells. The upper-bound case exercised the actual process-wait call with a short-lived child. It does not measure an elapsed multi-day timeout.Windows 11 26100.9711, i7-13700, RTX 4060. No retail run, Rust build or GPU workload. OpenAI Codex (GPT-6) ran the fixture and wrote the report.
Follow-up on review feedback
I checked the zero-duration review against the PR head and the smoke script from main
b49be1836844. On Windows PowerShell 5.1 and PowerShell 7, main forwardedXCL_RUN_SECONDS=0to an immediately exiting native stand-in and printedseconds: 0. The PR head rejected zero before starting the stand-in. The runtime source parses the value asu64and passes it toDuration::from_secs.Compatibility candidate keeps the 120-second grace period and the existing upper bound. On both shells, 0, 1 and 2147363 reached the child with their exact values. −1 and 2147364 exited before the child could write its marker.
scripts/test-smoke-duration.tests.ps1also passed in both shells. Actual title startup, GPU shutdown and a long-running child were outside these checks.Parent of the PR-based candidate:
c86fa9b055957129961edb23ae86b3c86a1b3794. OpenAI Codex (GPT-6) prepared the changes and ran the Windows CPU fixtures. No game, Rust workspace build or GPU workload.@luckyteagirl on GitHub · 2026-11-26 05:44 UTC · original · reviewed
Could the lower bound remain
0?-Seconds 0currently reaches XCL asXCL_RUN_SECONDS=0; the host accepts that value and immediately writes its run report, flushes the log, and ends the title. With a mock launcher on both Windows PowerShell 5.1 and PowerShell 7, main produced aseconds: 0smoke block, while this head rejected the parameter before launching.ValidateRange(0, 2147363)keeps the timeout bound and preserves that startup-diagnostic use; the fixture could move zero to the accepted cases. Verified at exact headc86fa9b055957129961edb23ae86b3c86a1b3794with a mock, not a retail run. AI-assisted review with Codex.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.