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
compaccount1-coder wants to merge 1 commit from upstream-pr/315 into main
compaccount1-coder commented 2026-11-26 15:53:27 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by compaccount1-coder on 2026-11-26T15:53:27Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6630349627 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/315). Originally posted by [compaccount1-coder](https://github.com/compaccount1-coder) on 2026-11-26T15:53:27Z. --- ### 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)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/315:upstream-pr/315'
git switch 'upstream-pr/315'

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 'upstream-pr/315'
git switch 'upstream-pr/315'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/315'
git switch 'upstream-pr/315'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/315'
git switch 'main'
git merge --squash 'upstream-pr/315'
git switch 'main'
git merge --ff-only 'upstream-pr/315'
git switch 'main'
git merge 'upstream-pr/315'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
avatarmanz/VIctory-7900XTX!315
No description provided.