darner-gpu: a queue-test wait that is never told fails instead of spinning #586
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!586
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:queue-test-bounded-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
The problem on main:
the_title_goes_on_and_is_told_in_orderwaited on the line with a barewhile ... { yield_now() }in two places — for the submission a fence stands behind, and for the wait it pushes behind that fence once it is set (crates/darner-gpu/src/queue/behind.rs, around:1595and:1620). A condition that never came did not fail the test: it spun for ever.cargo testhas no per-test timeout, so one line that stopped telling the test hung the whole workspace gate with no output saying why — which is what a test report of a hang should never be.This change puts both waits through one
withinhelper: five seconds, then a failure naming what was waited for and what the line is. Tests-only: the production queue is untouched.How it was tested
1b376c6(one commit onc8258f9).cargo test --locked -p darner-gpu --lib -- queue::— 27 passed, 0 failed.cargo clippy --locked -p darner-gpu --all-targets -- -D warningspasses.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: this change makes the gate diagnosable, not green —darner-gpustill has the pre-existing order-dependent failures and the #224 deadlock, which is why the whole-workspace run is not green on this machine.Checklist
main.docs/asset-policy.md. (cargo xtask policy: 576 files ok.)Checked for overlap
crates/darner-gpu/src/queue/behind.rstoo; this change only touches the test module. No open or closed issue mentions a hanging queue test by name.`the_title_goes_on_and_is_told_in_order` waited on the line with a bare `while ... { yield_now() }` in two places: for the submission a fence stands behind, and for the wait it pushes behind that fence once it is set. A condition that never came did not fail the test: it spun for ever, and `cargo test` has no per-test timeout, so one line that stopped telling the test hung the whole workspace gate with no output to say why. Both waits now go through `within`, which gives the line five seconds and then fails naming what was waited for. Co-Authored-By: Claude Opus 5.5 <[email protected]>[pr-tests] darner-gpu: a queue-test wait that is never told fails instead of spinningto darner-gpu: a queue-test wait that is never told fails instead of spinningView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.