Reset the rig watcher's low-FPS streak on restart #4767

Open
github-bot wants to merge 1 commit from github-bot/gh-4766 into main AGit
Owner

@⁠mia03ther on GitHub · 2026-12-01 06:32 UTC · original
mia03ther:fix/watch-rig-stall-restart → main · +1 −0 · 1 files · 1 commits · open

What it changes

Reset the consecutive low-FPS sample counter when watch-rig.ps1 switches to a new run log. A new game run starts with a fresh streak.

How it was tested

  • Windows PowerShell 5.1 with synthetic logs. No game or GPU profile was needed.
  • Before (5fabb46): 14 low-FPS samples in the first log and one in the second triggered an alert.
  • After (8d7c122): the same fixture did not alert. A second log with 15 low-FPS samples still triggered one alert.
  • cargo xtask policy --staged passed. Both Clippy checks hit the same five findings as main’s CI run. See #4708.
  • cargo test --workspace --locked stopped on watch::tests::ask_rest_falls_back_per_piece_when_touching_unwatched_neighbour. The test passed in isolation on main. The intermittent parallel failure is tracked in #4620.

Checked for overlap

  • Searched for the same issue and for open PRs touching scripts/watch-rig.ps1. Related changes are #2824, #3589, and #3790.
**@⁠mia03ther** on GitHub · 2026-12-01 06:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4766) `mia03ther:fix/watch-rig-stall-restart` → `main` · +1 −0 · 1 files · 1 commits · open ## What it changes Reset the consecutive low-FPS sample counter when `watch-rig.ps1` switches to a new run log. A new game run starts with a fresh streak. ## How it was tested - Windows PowerShell 5.1 with synthetic logs. No game or GPU profile was needed. - Before (`5fabb46`): 14 low-FPS samples in the first log and one in the second triggered an alert. - After (`8d7c122`): the same fixture did not alert. A second log with 15 low-FPS samples still triggered one alert. - `cargo xtask policy --staged` passed. Both Clippy checks hit the same five findings as main’s CI run. See #4708. - `cargo test --workspace --locked` stopped on `watch::tests::ask_rest_falls_back_per_piece_when_touching_unwatched_neighbour`. The test passed in isolation on main. The intermittent parallel failure is tracked in #4620. ## Checked for overlap - [x] Searched for the same issue and for open PRs touching `scripts/watch-rig.ps1`. Related changes are #2824, #3589, and #3790.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 06:37:24 +00:00
Author
Owner

@⁠Andrew05213 on GitHub · 2026-12-01 10:37 UTC · original · reviewed

Independent retest of #4767

I retested #4767 at main 5fabb46eaf6ed8771321787f8871051abde69b9b and PR head 8d7c1229f8b74f976743485af7e1ccdd6bf77cef. I used Windows 11 build 26300, Windows PowerShell 5.1.26100.9818, and PowerShell 7.6.9. Each log-switch case ran three times per engine per revision.

Synthetic log switch with a new PID Main PR head
14 low-FPS samples, then 1 in a fresh log 1 false stall alert in each of 6 runs 0 alerts in all 6 runs
14 low-FPS samples, then 15 in a fresh log 1 alert in each of 6 runs 1 alert in each of 6 runs

Both versions recorded 15 or 29 total samples and counted two logs. A same-log control on each engine confirmed that a valid sample breaks a streak and the cooldown suppresses repeat alerts. This covers the watcher alert and counters with generated logs and a controlled clock. Game runs, live hardware telemetry, and Cargo were not tested.

**@⁠Andrew05213** on GitHub · 2026-12-01 10:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4766#pullrequestreview-6129555558) · **reviewed** # Independent retest of #4767 I retested [#4767](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4767) at main `5fabb46eaf6ed8771321787f8871051abde69b9b` and PR head `8d7c1229f8b74f976743485af7e1ccdd6bf77cef`. I used Windows 11 build 26300, Windows PowerShell 5.1.26100.9818, and PowerShell 7.6.9. Each log-switch case ran three times per engine per revision. | Synthetic log switch with a new PID | Main | PR head | | --- | --- | --- | | 14 low-FPS samples, then 1 in a fresh log | 1 false stall alert in each of 6 runs | 0 alerts in all 6 runs | | 14 low-FPS samples, then 15 in a fresh log | 1 alert in each of 6 runs | 1 alert in each of 6 runs | Both versions recorded 15 or 29 total samples and counted two logs. A same-log control on each engine confirmed that a valid sample breaks a streak and the cooldown suppresses repeat alerts. This covers the watcher alert and counters with generated logs and a controlled clock. Game runs, live hardware telemetry, and Cargo were not tested.
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/4767/head:github-bot/gh-4766'
git switch 'github-bot/gh-4766'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4766'
git switch 'github-bot/gh-4766'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4766'
git switch 'github-bot/gh-4766'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4766'
git switch 'main'
git merge --squash 'github-bot/gh-4766'
git switch 'main'
git merge --ff-only 'github-bot/gh-4766'
git switch 'main'
git merge 'github-bot/gh-4766'
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!4767
No description provided.