tools: run-summary.sh summarises the VICTORY_SUBMIT_TIMING and VICTORY_TRACE_UNMAPPED_LEVELS lines (#500) #505

Open
github-bot wants to merge 2 commits from github-bot/gh-501 into main AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:21 UTC · original
AnastasisKon:vibe/run-summary-timing-1705ac → main · +31 −0 · 1 files · 2 commits · open

What this changes

Refs #504 (the summary side of #465 and #462). Tools-only: tools/macos/run-summary.sh now reads the two new diagnostic line kinds, so a tester's summary shows them without grepping the log:

  • submit timing: lines (VICTORY_SUBMIT_TIMING=1): printed under shader work as submit timing (VICTORY_SUBMIT_TIMING): N submissions, total X ms (prep P ms, encode+commit E ms), slowest Z ms, plus --compare rows for submissions / total ms / slowest ms;
  • unmapped levels: lines (VICTORY_TRACE_UNMAPPED_LEVELS=1): count and the last line verbatim (prefix stripped), plus a --compare row.

--self-test's synthetic log gains both line kinds and checks the printed summary.

How it was tested

  • /bin/bash tools/macos/run-summary.sh --self-test — ok (extended)
  • /bin/bash tools/macos/tests/run-summary-compare.sh and all tools/macos/tests/*.sh — pass (Bash 3.2)
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — pass (RC=0; no Rust change)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — pass (RC=0, 0 errors)
  • cargo xtask policy — pass (398 files ok)
  • Ran the game: not needed (tools-only)

Checklist

  • No game files, game code, disassembly listings or SDK files are included (the self-test log is synthetic)
  • Guesses about undocumented console behaviour — n/a
  • New diagnostics behind a VICTORY_* variable and documented — n/a; this only reads the two switches added in #491/#496, already documented in docs/native-host.md
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:21 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501) `AnastasisKon:vibe/run-summary-timing-1705ac` → `main` · +31 −0 · 1 files · 2 commits · open ## What this changes Refs #504 (the summary side of #465 and #462). Tools-only: `tools/macos/run-summary.sh` now reads the two new diagnostic line kinds, so a tester's summary shows them without grepping the log: - `submit timing:` lines (VICTORY_SUBMIT_TIMING=1): printed under shader work as `submit timing (VICTORY_SUBMIT_TIMING): N submissions, total X ms (prep P ms, encode+commit E ms), slowest Z ms`, plus `--compare` rows for submissions / total ms / slowest ms; - `unmapped levels:` lines (VICTORY_TRACE_UNMAPPED_LEVELS=1): count and the last line verbatim (prefix stripped), plus a `--compare` row. `--self-test`'s synthetic log gains both line kinds and checks the printed summary. ## How it was tested - [x] `/bin/bash tools/macos/run-summary.sh --self-test` — ok (extended) - [x] `/bin/bash tools/macos/tests/run-summary-compare.sh` and all `tools/macos/tests/*.sh` — pass (Bash 3.2) - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — pass (RC=0; no Rust change) - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — pass (RC=0, 0 errors) - [x] `cargo xtask policy` — pass (398 files ok) - [x] Ran the game: not needed (tools-only) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included (the self-test log is synthetic) - [x] Guesses about undocumented console behaviour — n/a - [x] New diagnostics behind a `VICTORY_*` variable and documented — n/a; this only reads the two switches added in #491/#496, already documented in docs/native-host.md
Refs #500 (for #461 and #458). submit timing: lines are collected into
count, prep/encode_commit/total sums and the slowest, printed under shader
work and added as --compare rows; unmapped levels: lines keep the last one
verbatim. --self-test covers both.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:22:59 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:38 UTC · original · requested changes

Thanks @⁠AnastasisKon. We read the whole diff (aeb20479) while helping the maintainer clear the queue, and it holds up: the submit-timing sums and the last unmapped-levels line are parsed as #491 prints them, and both are covered by the self-test.

The only blocker: #498 just merged, and it adds its own lines to the same self-test log and chk list in tools/macos/run-summary.sh, so this branch now conflicts there. Could you merge current main into the branch and keep both sets of lines? Once CI is green on the new head, we'll merge it.

**@⁠Olima34** on GitHub · 2026-11-28 01:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501#pullrequestreview-6094937101) · **requested changes** Thanks @⁠AnastasisKon. We read the whole diff (aeb20479) while helping the maintainer clear the queue, and it holds up: the submit-timing sums and the last unmapped-levels line are parsed as #491 prints them, and both are covered by the self-test. The only blocker: #498 just merged, and it adds its own lines to the same self-test log and `chk` list in `tools/macos/run-summary.sh`, so this branch now conflicts there. Could you merge current `main` into the branch and keep both sets of lines? Once CI is green on the new head, we'll merge it.
Keeps both sets of self-test chk lines (#494's fatal-signal line landed on
main meanwhile).
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 10:18 UTC · original

Merged current main into the branch and resolved the conflict keeping both sides, as requested. CI is green on the new head and the PR shows mergeable. Ready for re-review.

**@⁠AnastasisKon** on GitHub · 2026-11-28 10:18 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501#issuecomment-7237810684) Merged current main into the branch and resolved the conflict keeping both sides, as requested. CI is green on the new head and the PR shows mergeable. Ready for re-review.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 12:31 UTC · original

Re-requesting review: conflicts with current main are resolved, CI is green on the latest head, and the earlier approval was noted as still standing. Ready to merge when you are.

**@⁠AnastasisKon** on GitHub · 2026-11-28 12:31 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501#issuecomment-7239290985) Re-requesting review: conflicts with current main are resolved, CI is green on the latest head, and the earlier approval was noted as still standing. Ready to merge when you are.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 15:27 UTC · original

The branch is now based on the current public main (26817285), which already contains the #471/#494/#503 merges, and GitHub shows mergeable=true (the earlier conflict was against the newer private main). The requested shape is in place: both sets of self-test `chk` lines (the #498 ones and the submit-timing/unmapped-levels ones) in `tools/macos/run-summary.sh`. Could you re-review when you get a chance?

**@⁠AnastasisKon** on GitHub · 2026-11-28 15:27 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501#issuecomment-7241479999) The branch is now based on the current public `main` (26817285), which already contains the #471/#494/#503 merges, and GitHub shows `mergeable=true` (the earlier conflict was against the newer private main). The requested shape is in place: both sets of self-test \`chk\` lines (the #498 ones and the submit-timing/unmapped-levels ones) in \`tools/macos/run-summary.sh\`. Could you re-review when you get a chance?
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 18:16 UTC · original

Re-requesting review: the head 893c6c37 already merges public main 26817285, which includes #498's run-summary self-test lines, and git merge-tree shows no conflicts against current main — both sets of lines (ours and #498's) are in tools/macos/run-summary.sh and its self-test. CI is green on this head. Ready to merge when you are.

**@⁠AnastasisKon** on GitHub · 2026-11-28 18:16 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/501#issuecomment-7243668714) Re-requesting review: the head 893c6c37 already merges public `main` 26817285, which includes #498's run-summary self-test lines, and `git merge-tree` shows no conflicts against current `main` — both sets of lines (ours and #498's) are in `tools/macos/run-summary.sh` and its self-test. CI is green on this head. Ready to merge when you are.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/505/head:github-bot/gh-501'
git switch 'github-bot/gh-501'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-501'
git switch 'github-bot/gh-501'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-501'
git switch 'github-bot/gh-501'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-501'
git switch 'main'
git merge --squash 'github-bot/gh-501'
git switch 'main'
git merge --ff-only 'github-bot/gh-501'
git switch 'main'
git merge 'github-bot/gh-501'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.