run-summary.sh --compare: a before/after table of two run logs #314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/314"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T11:02:04Z.
Refs #310
tools/macos/run-summary.sh --compare <before.log> <after.log>prints the before/after table that is written by hand on #258.What it prints
newandgoneare marked.How
mode=kvand emitskind<TAB>key<TAB>valuerows from its parsed state.--comparejoins the rows of the two logs.One change outside the script. A host SIGSEGV and the
--secondslimit leave no line in the log. run-native.sh printed the exit code only to the terminal. It now appends# exit code Nto the log. The timer writes# stopped by --secondsitself, and only when its sleep finished, so a game that exits on its own never gets the marker. I checked this by hand with a stub binary: exit 139 gave only the exit code line, sleeping past--seconds 2gave the marker and 143, and exit 0 gave only the exit code line. The table reads these as:SIGSEGV(139)time limitfault at <address>(from the unhandled exception line)watchdog/kill lineunknown (no exit line)for older logsNot included: G-buffer coverage (
target dumped ... lit=). That can be a follow-up row if wanted. "first world frame" is only logged withVICTORY_CAPTURE_WORLDset. Otherwise the row shows-.Tests
tools/macos/tests/run-summary-compare.shuses two synthetic logs that differ in refusals, fps, dropped work, GPU errors and ending, and one ends past midnight.Local runs, all passing:
/bin/bash tools/macos/tests/run-summary-compare.sh/bin/bash tools/macos/run-summary.sh --self-test/bin/bash tools/macos/tests/target-directory.sh(Bash 3.2.57)cargo xtask policyImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T11:54:50Z.
Thank you. The table is what I write by hand on #258 today, and the exit lines tell a crash from the time limit.
Merged, together with #312. Both added a line at the same place in
.github/workflows/ci.ymland in the run-game skill; I kept both.