watch,gpu: guard submission view-memory refreshes in one batch #242

Closed
github-bot wants to merge 1 commit from gh-pr/242/head into gh-pr/242/base
Owner

@⁠Androtim on GitHub · 2026-11-30 10:57 UTC · original
Androtim:feat/iter236-watch-batch-refresh-guards → main · +166 −5 · 3 files · 1 commits · closed without merging

Summary

  • Add Shadow::guarded_copy() in crates/victory-gpu/src/shadow.rs and guarded_refreshes(runs) in crates/victory-gpu/src/host.rs to collect (start, end) view-memory ranges refreshed by a submission.
  • Add watch::guard_ahead(ranges) (VICTORY_GUARD_BATCH, enabled by default; "0" disables), Askings::hold_or_all, and guard_locked in crates/victory-gpu/src/watch.rs so all guarded view-memory refresh ranges in a submission are guarded together on the submitting thread after ask_once, noted in the journal, and published for subsequent lock-free writes() checks.
  • Add no_write_to_views_is_lost_with_batched_guards regression test in watch::many_askers_tests exercising batched guards across single-view, multi-view, resting, and unlocked-fault stress modes.

Testing

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy -> asset policy: 312 files ok
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib watch::many_askers_tests -- --test-threads=1 -> 14 passed; 0 failed; 0 ignored
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings -> exit 0
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings -> exit 0
**@⁠Androtim** on GitHub · 2026-11-30 10:57 UTC · [original](https://github.com/Androtim/MiniVI/pull/242) `Androtim:feat/iter236-watch-batch-refresh-guards` → `main` · +166 −5 · 3 files · 1 commits · closed without merging ## Summary - Add `Shadow::guarded_copy()` in `crates/victory-gpu/src/shadow.rs` and `guarded_refreshes(runs)` in `crates/victory-gpu/src/host.rs` to collect `(start, end)` view-memory ranges refreshed by a submission. - Add `watch::guard_ahead(ranges)` (`VICTORY_GUARD_BATCH`, enabled by default; `"0"` disables), `Askings::hold_or_all`, and `guard_locked` in `crates/victory-gpu/src/watch.rs` so all guarded view-memory refresh ranges in a submission are guarded together on the submitting thread after `ask_once`, noted in the journal, and published for subsequent lock-free `writes()` checks. - Add `no_write_to_views_is_lost_with_batched_guards` regression test in `watch::many_askers_tests` exercising batched guards across single-view, multi-view, resting, and unlocked-fault stress modes. ## Testing - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` -> `asset policy: 312 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib watch::many_askers_tests -- --test-threads=1` -> `14 passed; 0 failed; 0 ignored` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` -> exit 0 - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings` -> exit 0
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:21:50 +00:00
github-bot closed this pull request 2026-12-01 20:21:50 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 11:06 UTC · original · edited 2026-11-30 16:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 11:06 UTC · [original](https://github.com/Androtim/MiniVI/pull/242#issuecomment-7276539246) · edited 2026-11-30 16:02 UTC <!-- minivi-triage v1 head=9d856df06c925a7c9104fcb65394c20b1d978699 verdict=needs-rebase ci=passing at=2026-11-30T16:03:02Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 15:04 UTC · original

GitHub reports merge conflicts against current main. Please rebase onto main.

**@⁠Androtim** on GitHub · 2026-11-30 15:04 UTC · [original](https://github.com/Androtim/MiniVI/pull/242#issuecomment-7282381492) GitHub reports merge conflicts against current `main`. Please rebase onto `main`.
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:39 UTC · original

Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

**@⁠Androtim** on GitHub · 2026-12-01 01:39 UTC · [original](https://github.com/Androtim/MiniVI/pull/242#issuecomment-7297745241) Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.

Pull request closed

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/Androtim--MiniVI!242
No description provided.