Stabilize scope_unbounded panic test (#98416)
### What? Make `test_unbounded_panic_propagates_and_abandons_queue` deterministically exercise panic-driven queue abandonment. ### Why? The test failed in two consecutive canary `test-cargo-unit` attempts after all 10,000 fixed seed items ran before the panic's abort was recorded. That outcome is legal scheduling: a fixed seed queue can drain before its designated panicking item executes, so the assertion did not prove that abort handling was broken. ### How? The test now grows a bounded work cascade and panics after a fixed amount of processing. Since each completed item adds more work, queued items are guaranteed to exist when the panic occurs. The test therefore continues to verify panic propagation and queue abandonment without relying on worker timing. Production `scope_unbounded` behavior is unchanged. ### Verification - Changed panic test passed 100 consecutive runs with `release-with-assertions` - `cargo nextest run -p turbo-tasks -E 'test(~scope_unbounded::tests::)' --cargo-profile release-with-assertions` (17 passed) - `cargo fmt --all -- --check` - `git diff --check` <!-- NEXT_JS_LLM --> <!-- fleet ae1d9ec9-156e-4b53-80c0-f24bf0b22f13 --> Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment