Scripts: smoke.ps1 reads the log of a run it killed on timeout #1270
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!1270
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1270"
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?
@vladbondarenko97 on GitHub · 2026-11-24 14:03 UTC · original
vladbondarenko97:scripts/smoke-timeout-log→main· +77 −2 · 2 files · 1 commits · openxcl runprintsLog:only when it ends (launcher.rs). So whensmoke.ps1kills a run on its timeout (-Seconds+ 120 s), the line is never there, and the script throwsXCL printed no log pathinstead of printing the block withexit: killed (no exit). That branch of the script could not be reached. A title hits it when it stops responding after an unhandled exception: on an RTX 3080 Ti the retail title did this at the world load (0xc0000005at+0x2215c35, then no exit for 20 min), so the run that most needed a block got none.On a timeout, the log is now taken from the
data:folder that the launcher prints at its start (<data>\logs\xcl.log, asConfig::logs_dir). A run that ends by itself withoutLog:still throws, as before.This does not overlap #1073 (it ends the process tree so the timeout returns at all) and complements it: with #1073, a timed-out run still has no
Log:line.What is in it
scripts/smoke.ps1: on a timeout, fall back to<data>\logs\xcl.logwhenLog:is missing.scripts/smoke-timeout-log.tests.ps1: runs a private copy ofsmoke.ps1with a 3 s deadline against a compiled stand-in that prints XCL's start lines and hangs, then checks the block (exit: killed (no exit), presents, peak commit from the synthetic log). No game files or GPU needed.Tested
main930e8b4+ this commit.scripts\smoke-timeout-log.tests.ps1againstmain'ssmoke.ps1: fails withXCL printed no log path; its output: XCL 0.0.0 - starting 'synthetic'(exit 1). Against this branch:smoke timeout log: 1 passed(exit 0).pwsh -NoProfile -File scripts\smoke-timeout-log.tests.ps1):mainfails withXCL printed no log path(exit 1); this branch:smoke timeout log: 1 passed(exit 0).cargo build --workspacethencargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored; SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).Regression run
Not needed: scripts only.
Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 14:07 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@RavenCurseBurg on GitHub · 2026-11-25 15:06 UTC · original · edited 2026-11-25 15:13 UTC
Tested the script combination listed under Not tested. On
5e4d91a7fe2c1bf2aa7c04bbafbe098f2e3ebbb3,scripts/smoke-timeout-log.tests.ps1passed independently in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. I then applied only thescripts/smoke.ps1diff from #1073 (a95661e6fc) to a temporary copy. It applied cleanly. Both upstream scripts,smoke-timeout-log.tests.ps1andsmoke-timeout.tests.ps1, passed against the combined script in each shell, including the normal, timeout, failed termination and open-pipe cases.For the combined failure mode, I adapted #1073’s synthetic fixture to print only the startup
data:line, write a 2,345 MB marker inlogs/xcl.log, then wait on a child that inherits the output pipes. With the fixture’s five-second deadline, the smoke block reportedexit: killed (no exit)andpeak commit: 2345 MB. The fixture checked that both recorded PIDs had exited. This passed in each shell under normal Windows process permissions. An initial restricted-session run reached the fixture’s open-pipe assertion, so these results do not establish cleanup in that restricted environment.Windows 11 26100.9711, i7-13700, RTX 4060. This was a two-script integration test with shortened deadlines, no retail run or Rust/GPU suite. OpenAI Codex (GPT-6) assembled the stack, ran both fixtures and wrote the report.
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.