Repository navigation
test(engine): 1000-thread x 10K-iter stress for concurrent_register_and_dispatch under DG-3 (DG-3.e) - #4874
Merged
Conversation
…nd_dispatch under DG-3 (DG-3.e) Adds a dedicated stress test that validates the DG-3 SlotData / BarrierState split fixes the historical finish_file Arc::try_unwrap release race without the prior spin-then-yield workaround. Test shape: 1000 OS threads each run 10K independent register -> apply_one_chunk -> finish_file cycles on per-worker NDX ranges, then assertions verify every cycle returned Ok, no in-flight counter leaked across the 10M-cycle loop, and per-worker sink byte counts match the expected payload total. The finish_file step is the exact site the DG-1 audit flagged for the release race; the post-split applier runs it clean on every platform. Gated behind a new dg-stress Cargo feature so the 1000-thread fan-out does not run in every PR's nextest cell. A dedicated non-required CI matrix cell (ubuntu-latest, windows-latest, macos-latest) runs the stress test per PR with --features dg-stress so cross-platform regressions surface without blocking merges.
1 of 2 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…nd_dispatch under DG-3 (DG-3.e) (#4874) Adds a dedicated stress test that validates the DG-3 SlotData / BarrierState split fixes the historical finish_file Arc::try_unwrap release race without the prior spin-then-yield workaround. Test shape: 1000 OS threads each run 10K independent register -> apply_one_chunk -> finish_file cycles on per-worker NDX ranges, then assertions verify every cycle returned Ok, no in-flight counter leaked across the 10M-cycle loop, and per-worker sink byte counts match the expected payload total. The finish_file step is the exact site the DG-1 audit flagged for the release race; the post-split applier runs it clean on every platform. Gated behind a new dg-stress Cargo feature so the 1000-thread fan-out does not run in every PR's nextest cell. A dedicated non-required CI matrix cell (ubuntu-latest, windows-latest, macos-latest) runs the stress test per PR with --features dg-stress so cross-platform regressions surface without blocking merges.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan