run-summary.sh --compare: print a before/after table of two run logs #310

Closed
opened 2026-11-27 10:54:48 +00:00 by m0rff · 3 comments
m0rff commented 2026-11-27 10:54:48 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T10:54:48Z.


On #258, before-and-after tables for each combination of PRs are written by hand: refusals by cause, fps, first world frame and how the run ended. One command should print that table.

Proposal: tools/macos/run-summary.sh --compare <before.log> <after.log>

  • Reuse the parsing run-summary.sh already does, not a second parser. Its awk pass also produces key/value metrics. The plain summary and --compare both read them. The plain summary output stays byte-for-byte the same.
  • One aligned table with the columns metric | before | after | change:
    • commit and console model
    • run length and last frame
    • fps (median and last over the 64-frame windows)
    • first world frame
    • first binds and prewarm totals
    • refused shaders (total and unique)
    • dropped work by kind
    • GPU errors (timeouts, out of memory)
    • how the run ended
  • A "refusals by cause" section: before, after and change for each reason, with the code address stripped. Sorted by the largest absolute change. Causes that are new or gone are marked.
  • Plain text with no colour, so the output pastes into a fenced block on GitHub.
  • A game-free test, tools/macos/tests/run-summary-compare.sh, uses two small synthetic logs. It runs in the macos-scripts CI job under Bash 3.2.

One small change outside the script. The log alone can't tell a host SIGSEGV from the --seconds time limit. Neither writes a line to the log. run-native.sh prints the exit code only to the terminal. So run-native.sh will append # exit code N to the log, and # stopped by --seconds when the timer fired. Older logs read as "unknown".

G-buffer coverage (target dumped ... lit=) is left for a follow-up.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6645012326 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T10:54:48Z. --- On #258, before-and-after tables for each combination of PRs are written by hand: refusals by cause, fps, first world frame and how the run ended. One command should print that table. **Proposal:** `tools/macos/run-summary.sh --compare <before.log> <after.log>` - Reuse the parsing run-summary.sh already does, not a second parser. Its awk pass also produces key/value metrics. The plain summary and `--compare` both read them. The plain summary output stays byte-for-byte the same. - One aligned table with the columns metric | before | after | change: - commit and console model - run length and last frame - fps (median and last over the 64-frame windows) - first world frame - first binds and prewarm totals - refused shaders (total and unique) - dropped work by kind - GPU errors (timeouts, out of memory) - how the run ended - A "refusals by cause" section: before, after and change for each reason, with the code address stripped. Sorted by the largest absolute change. Causes that are new or gone are marked. - Plain text with no colour, so the output pastes into a fenced block on GitHub. - A game-free test, `tools/macos/tests/run-summary-compare.sh`, uses two small synthetic logs. It runs in the macos-scripts CI job under Bash 3.2. **One small change outside the script.** The log alone can't tell a host SIGSEGV from the `--seconds` time limit. Neither writes a line to the log. run-native.sh prints the exit code only to the terminal. So run-native.sh will append `# exit code N` to the log, and `# stopped by --seconds` when the timer fired. Older logs read as "unknown". G-buffer coverage (`target dumped ... lit=`) is left for a follow-up.
m0rff commented 2026-11-27 10:54:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by m0rff on 2026-11-27T10:54:57Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7216458739 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7216458739). Originally posted by [m0rff](https://github.com/m0rff) on 2026-11-27T10:54:57Z. --- /claim
github-actions[bot] commented 2026-11-27 10:55:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T10:55:07Z.


Claimed by @m0rff. Open a draft pull request with Refs #310 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7216462077 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7216462077). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T10:55:07Z. --- Claimed by @m0rff. Open a draft pull request with `Refs #310` in its description within 24 hours, or the claim expires.
LakshanSivakumar commented 2026-11-27 11:55:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T11:55:06Z.


Done in #314, which is merged into main: run-summary.sh --compare <before> <after>. Thank you @m0rff.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7217624859 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7217624859). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-27T11:55:06Z. --- Done in #314, which is merged into main: `run-summary.sh --compare <before> <after>`. Thank you @m0rff.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#310
No description provided.