Tests: what_the_title_puts_in_beside_a_guard_is_told fails after 30 s of Cannot instead of hanging the suite until the job times out #315

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

@⁠compaccount1-coder on GitHub · 2026-11-26 15:53 UTC · original
compaccount1-coder:fix/bounded-put-beside-retry → main · +20 −6 · 1 files · 1 commits · open

What and why

watch::tests::what_the_title_puts_in_beside_a_guard_is_told retries put_beside in a loop with no end for as long as it answers Cannot ("Other tests hold changes of mapping."). That is meant for the moment another test holds a change of mapping. A state that does not pass instead hangs the whole test binary until the CI job's 60-minute timeout, with no message. put_beside also answers Cannot when the block is not guarded, or when light()/view_guard() are off.

That happened here: an RX 6700 XT on Windows 11, PR #277 merged onto main, cargo test -p victory-gpu --lib with the suite in parallel and the machine under load. freed_memory_leaves_no_notes failed, then this test printed "has been running for over 60 seconds" and spun until the run was killed 25 minutes later. I could not tie that run to #277 itself: 4 further full runs of #277 on the same card were clean apart from the known RDNA 2 descriptor test (#298). Whatever the state was, the unbounded loop is what made it a hang.

The change

Test only. The retry stops after 30 seconds with an assertion that says what put_beside checks: whether the block is guarded, light(), view_guard(). A yield_now() between tries replaces the hot spin. Nothing else changes.

Tested

  • With the block's PROTECTED bit cleared right before the first put (a local change, not in this PR), the test fails after 30.0 s with put_beside answered Cannot for 30 s: guarded false, light true, view guard true. On main that hangs.
  • Untouched: passes 3/3 on its own and in the full suite on the RX 6700 XT.
  • Clippy shows only the existing watch.rs:3626 error that #241 fixes. rustfmt reports nothing new.

Also seen while running every GPU PR's tests on this card

Two tests in the shared, address-keyed watch state each failed once in parallel runs under load, and pass on their own and in most full runs: watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view (left: Some([page]) right: Some([]) at the second guard(), watch.rs:5051) and host::refresh_tests::unchanged_ranges_are_known. The second is one of the two #277 is about.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

**@⁠compaccount1-coder** on GitHub · 2026-11-26 15:53 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/315) `compaccount1-coder:fix/bounded-put-beside-retry` → `main` · +20 −6 · 1 files · 1 commits · open ### What and why `watch::tests::what_the_title_puts_in_beside_a_guard_is_told` retries `put_beside` in a `loop` with no end for as long as it answers `Cannot` ("Other tests hold changes of mapping."). That is meant for the moment another test holds a change of mapping. A state that does not pass instead hangs the whole test binary until the CI job's 60-minute timeout, with no message. `put_beside` also answers `Cannot` when the block is not guarded, or when `light()`/`view_guard()` are off. That happened here: an RX 6700 XT on Windows 11, PR #277 merged onto `main`, `cargo test -p victory-gpu --lib` with the suite in parallel and the machine under load. `freed_memory_leaves_no_notes` failed, then this test printed "has been running for over 60 seconds" and spun until the run was killed 25 minutes later. I could not tie that run to #277 itself: 4 further full runs of #277 on the same card were clean apart from the known RDNA 2 descriptor test (#298). Whatever the state was, the unbounded loop is what made it a hang. ### The change Test only. The retry stops after 30 seconds with an assertion that says what `put_beside` checks: whether the block is guarded, `light()`, `view_guard()`. A `yield_now()` between tries replaces the hot spin. Nothing else changes. ### Tested - With the block's `PROTECTED` bit cleared right before the first `put` (a local change, not in this PR), the test fails after 30.0 s with `put_beside answered Cannot for 30 s: guarded false, light true, view guard true`. On `main` that hangs. - Untouched: passes 3/3 on its own and in the full suite on the RX 6700 XT. - Clippy shows only the existing `watch.rs:3626` error that #241 fixes. rustfmt reports nothing new. ### Also seen while running every GPU PR's tests on this card Two tests in the shared, address-keyed watch state each failed once in parallel runs under load, and pass on their own and in most full runs: `watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view` (`left: Some([page]) right: Some([])` at the second `guard()`, watch.rs:5051) and `host::refresh_tests::unchanged_ranges_are_known`. The second is one of the two #277 is about. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The test retried put_beside in a `loop` with no end for as long as it
answered Cannot ("other tests hold changes of mapping"). Any state that does
not pass – the block no longer guarded, another test that panicked midway –
then hangs the whole test binary until the job's timeout, with no message.
That happened on an RX 6700 XT (PR #277 merged on main, the suite in parallel
under load): freed_memory_leaves_no_notes failed, then this test spun for 25
minutes until the run was killed.

The retry now stops after 30 seconds with what put_beside looks at (whether
the block is guarded, light(), view_guard()). Checked by clearing the block's
PROTECTED bit before the first put: "put_beside answered Cannot for 30 s:
guarded false, light true, view guard true" after 30.0 s, where it hung
before; untouched it passes as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:54:10 +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/315/head:github-bot/gh-315'
git switch 'github-bot/gh-315'

Merge

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