[pr-fix][memory] Retry the memory report after its worker fails to start #251

Open
andrewpozdnakov7-jpg wants to merge 1 commit from andrewpozdnakov7-jpg/Darner:port/4872-retry-procmem-thread-start into main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

The process-memory report claims its sampling interval before spawning the worker. A failed spawn currently consumes the interval as though it took a sample. Restore the previous timestamp on that failure if the failed attempt still owns the claim. Keep any newer claim made by another caller.

Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: a32c1da. Adapted by andrewpozdnakov7-jpg (GitHub profile).

How it was tested

  • Tested revision: 836d405 on f3840d7.
  • Commands and results: A Rust fixture compiled the current and patched interval gates with a fake clock and an injected spawn failure at 65 seconds. Main skipped the 70-second report; the patch accepted it. A successful claim still enforced the interval, and a stale rollback preserved a newer claim. cargo check --locked -p darner-gpu --lib --tests, xtask policy, and git diff --check passed.
  • Changes a default: no.
  • Gates run on that revision: none of the three workspace-wide gates.
  • Coverage gaps: Synthetic time and a failed-start outcome. No OS thread exhaustion or gameplay.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #225 changes ramtrim.rs, a separate memory walk.
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: <!-- optional --> ## What it changes The process-memory report claims its sampling interval before spawning the worker. A failed spawn currently consumes the interval as though it took a sample. Restore the previous timestamp on that failure if the failed attempt still owns the claim. Keep any newer claim made by another caller. Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: a32c1da. Adapted by [andrewpozdnakov7-jpg](https://git.gtahub.st/andrewpozdnakov7-jpg) ([GitHub profile](https://github.com/andrewpozdnakov7-jpg)). ## How it was tested - Tested revision: 836d405 on f3840d7. - Commands and results: A Rust fixture compiled the current and patched interval gates with a fake clock and an injected spawn failure at 65 seconds. Main skipped the 70-second report; the patch accepted it. A successful claim still enforced the interval, and a stale rollback preserved a newer claim. cargo check --locked -p darner-gpu --lib --tests, xtask policy, and git diff --check passed. - Changes a default: no. - Gates run on that revision: none of the three workspace-wide gates. - Coverage gaps: Synthetic time and a failed-start outcome. No OS thread exhaustion or gameplay. ## Checklist - [ ] I ran this change in the game. - [x] This PR contains one change based on main. - [x] The diff follows docs/asset-policy.md. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #225 changes ramtrim.rs, a separate memory walk. - Replaces or overlaps: none found
Adapt locally saved VIctory-NVIDIA work from December 1, 2026 (a32c1da). A failed spawn did not take a sample. Restore the previous interval marker only if the failed spawn still owns that claim.

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg
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 'port/4872-retry-procmem-thread-start:andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git rebase 'main'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git rebase 'main'
git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'main'
git merge --squash 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git switch 'main'
git merge 'andrewpozdnakov7-jpg-port/4872-retry-procmem-thread-start'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
TrustNo1/Darner!251
No description provided.