Rig scripts: "host memory pressure cleared" is no longer counted or alerted as a new warning #3790

Open
github-bot wants to merge 3 commits from github-bot/gh-3790 into main AGit
Owner

@⁠mixaoc on GitHub · 2026-11-30 07:17 UTC · original
mixaoc:patch-1 → main · +9 −2 · 3 files · 3 commits · open

What it changes

crates/victory-gpu/src/residency.rs logs two lines about host memory pressure:

  • WARN host memory pressure: limiting texture prefetch and idle upload storage ... available_commit_mib=N
  • INFO host memory pressure cleared physical_free_mib=N available_commit_mib=N

Both rig scripts also match the second one:

  • play-rig.ps1 -Summary counts it as a memory-pressure warning, so an episode that clears is counted twice. With the lines quoted in #1806 (a warning, a clear, a second warning) it reports 3 warnings instead of 2.
  • watch-rig.ps1 raises "ALERT the layer reports memory pressure: N MB of commit left" when the pressure has just ended, and adds it to the run's total.

Both patterns now require the colon that only the warning has. A regression test is added to the -Summary tests.

How it was tested

  • Windows PowerShell 5.1, Pester 3.4.0: the -Summary tests of play-rig.Tests.ps1, with New-Log, Get-RunSummary, Show-RunSummary and Write-Line loaded from the files and Invoke-Launcher replaced by a direct call. The whole test file was not run.
  • Before: the new test fails (2 warnings for one episode). After: it passes, and the two existing -Summary tests pass with an invariant number format.
  • With a French locale, "leaves menus out ..." fails both before and after because of the decimal comma; #2824 addresses that.
  • watch-rig.ps1: its log-reading loop run on both lines. Before: 2 alerts, count 2. After: 1 alert, count 1.
  • Both patched scripts parse without errors and stay ASCII.
  • Not tested: a live run of the game.
  • cargo test: no crate touched (scripts only).

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1448, #2824, #3351, #3589 touch these scripts; I found no other change to these two patterns beyond #1448, which first added them.
**@⁠mixaoc** on GitHub · 2026-11-30 07:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3790) `mixaoc:patch-1` → `main` · +9 −2 · 3 files · 3 commits · open ## What it changes `crates/victory-gpu/src/residency.rs` logs two lines about host memory pressure: - WARN `host memory pressure: limiting texture prefetch and idle upload storage ... available_commit_mib=N` - INFO `host memory pressure cleared physical_free_mib=N available_commit_mib=N` Both rig scripts also match the second one: - `play-rig.ps1 -Summary` counts it as a memory-pressure warning, so an episode that clears is counted twice. With the lines quoted in #1806 (a warning, a clear, a second warning) it reports 3 warnings instead of 2. - `watch-rig.ps1` raises "ALERT the layer reports memory pressure: N MB of commit left" when the pressure has just ended, and adds it to the run's total. Both patterns now require the colon that only the warning has. A regression test is added to the `-Summary` tests. ## How it was tested - Windows PowerShell 5.1, Pester 3.4.0: the `-Summary` tests of `play-rig.Tests.ps1`, with `New-Log`, `Get-RunSummary`, `Show-RunSummary` and `Write-Line` loaded from the files and `Invoke-Launcher` replaced by a direct call. The whole test file was not run. - Before: the new test fails (2 warnings for one episode). After: it passes, and the two existing `-Summary` tests pass with an invariant number format. - With a French locale, "leaves menus out ..." fails both before and after because of the decimal comma; #2824 addresses that. - `watch-rig.ps1`: its log-reading loop run on both lines. Before: 2 alerts, count 2. After: 1 alert, count 1. - Both patched scripts parse without errors and stay ASCII. - Not tested: a live run of the game. - `cargo test`: no crate touched (scripts only). ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1448, #2824, #3351, #3589 touch these scripts; I found no other change to these two patterns beyond #1448, which first added them.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 07:18:19 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/3790/head:github-bot/gh-3790'
git switch 'github-bot/gh-3790'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3790'
git switch 'github-bot/gh-3790'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3790'
git switch 'github-bot/gh-3790'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3790'
git switch 'main'
git merge --squash 'github-bot/gh-3790'
git switch 'main'
git merge --ff-only 'github-bot/gh-3790'
git switch 'main'
git merge 'github-bot/gh-3790'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3790
No description provided.