Skip to content

test(velo-events): harden slot_v2 waiter/wakeup regression coverage - #2

Merged
ryanolson merged 1 commit into
ryan/velo-eventsfrom
codex/compare-slot-and-slot_v2-modules
Feb 16, 2026
Merged

ryanolson merged 1 commit into
ryan/velo-eventsfrom
codex/compare-slot-and-slot_v2-modules

Conversation

@ryanolson

Copy link
Copy Markdown
Owner

Motivation

  • Improve confidence in the slot_v2 single-lock waiter/wakeup path by adding focused regression tests that exercise waker deduplication, multi-waker wake behavior, and stale-waker flushing.
  • Preserve existing production behavior while increasing test coverage to guard against subtle race/regression scenarios.
  • Apply a small formatting normalization to a match arm in LocalEventSystem::wait_local to align with project rustfmt style.

Description

  • Added three unit tests under lib/velo-events/src/slot_v2/entry.rs that introduce a CountingWake harness and asserts for poll_waiter deduplication, finalize_completion waking all distinct waiters, and begin_generation flushing stale wakers.
  • Implemented a counting_waker() helper and CountingWake type to create Wakers which record wake calls for assertions in tests.
  • Kept runtime code unchanged; only test code and a tiny rustfmt-driven one-line formatting change in lib/velo-events/src/local/system.rs were modified.

Testing

  • Ran cargo test -p velo-events slot_v2::entry::tests -- --nocapture and the slot v2 entry tests passed.
  • Ran cargo test -p velo-events race1_no_stale_completion_leakage -- --nocapture and the race/regression test passed.
  • Ran cargo test -p velo-events stale_waiter -- --nocapture and the stale-waiter tests passed.
  • Ran cargo fmt --all to normalize formatting with no failures.

Codex Task

@github-actions github-actions Bot added the test label Feb 16, 2026
@ryanolson
ryanolson merged commit e08c7ec into ryan/velo-events Feb 16, 2026
11 of 23 checks passed
ryanolson added a commit that referenced this pull request Nov 4, 2026
Backend and Migration read gdl items in their Result, with gdl's error
rule applied once at the boundary, and RoutingHost hands its stream to
gdl without the extra boxes.

Signed-off-by: Ryan Olson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant