Skip to content

test(engine): 1000-thread x 10K-iter stress for concurrent_register_and_dispatch under DG-3 (DG-3.e) - #4874

Merged
oferchen merged 1 commit into
masterfrom
test/dg-3e-concurrent-register-dispatch-stress
May 24, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/dg-3e-concurrent-register-dispatch-stress

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds a DG-3.e (test: remove blanket protocol <=29 known-failure skip and add interop tests #2694) stress test: 1000 OS threads each run 10K independent register/apply_one_chunk/finish_file cycles on per-worker NDX ranges.
  • Validates the DG-3 SlotData/BarrierState split fixes the historical finish_file Arc::try_unwrap release race without the prior spin-then-yield workaround.
  • Adds a non-required CI matrix cell (ubuntu-latest, windows-latest, macos-latest) gated behind a new dg-stress Cargo feature so the 1000-thread fan-out runs once per PR without blocking merges on flake.

Test plan

  • CI: lint passes
  • CI: nextest (stable) passes (no change to default test set; feature-gated test stays out of the standard cell)
  • CI: Windows (stable) passes
  • CI: macOS (stable) passes
  • CI: Linux musl (stable) passes
  • CI: new DG-3 stress (ubuntu-latest, non-required) cell completes
  • CI: new DG-3 stress (windows-latest, non-required) cell completes
  • CI: new DG-3 stress (macos-latest, non-required) cell completes

…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.
@github-actions github-actions Bot added the test label May 24, 2026
@oferchen
oferchen merged commit 9046d4c into master May 24, 2026
37 of 38 checks passed
@oferchen
oferchen deleted the test/dg-3e-concurrent-register-dispatch-stress branch May 28, 2026 03:37
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant