A consumer uses a bounded FuturePool to calculate competing proposals. Its deterministic integration test needs to make A finish before B starts, then reverse the order on the same real worker pool. A signal in the submission or start callback alone cannot establish that the earlier computation returned. Sleep-based ordering also fails under load.
At 7b0fea6095f603f9e1904f66dfdc7752f4be4792, DeterministicRun can reorder ready actions on its test scheduler. FuturePool::try_submit returns the future for one caller-owned task. Source inspection found no test facility that tags real invocations and observes a successful return inside the submitted callable before its future becomes ready. Our caller currently wraps each submission to observe starts and uses coordinator execution on queue overload. Deterministic tests · Real executor adapter · Current consumer
Would a test-only callable adapter or bounded gate in Void::Testing fit? An optional success observer should run once after invocation returns and before the enclosing future is fulfilled, preserve void, value, reference and move-only results, and forward exceptions. The test should be able to release a blocked participant on failure or timeout. This can be opt-in with no instrumentation on the ordinary production path.
A replacement test would record actual return order A→B and B→A for two submitted tasks on a two-worker executor, including one run with an inline overload fallback. Check both resulting futures and exception behavior, then run the same vectors on Windows x64. The downstream test owns gameplay arbitration and compares world states across both schedules.
A consumer uses a bounded `FuturePool` to calculate competing proposals. Its deterministic integration test needs to make A finish before B starts, then reverse the order on the same real worker pool. A signal in the submission or start callback alone cannot establish that the earlier computation returned. Sleep-based ordering also fails under load.
At `7b0fea6095f603f9e1904f66dfdc7752f4be4792`, `DeterministicRun` can reorder ready actions on its test scheduler. `FuturePool::try_submit` returns the future for one caller-owned task. Source inspection found no test facility that tags real invocations and observes a successful return inside the submitted callable before its future becomes ready. Our caller currently wraps each submission to observe starts and uses coordinator execution on queue overload. [Deterministic tests](https://git.faumaray.com/Void/Library/src/commit/7b0fea6095f603f9e1904f66dfdc7752f4be4792/include/Void/Testing/Deterministic.hpp) · [Real executor adapter](https://git.faumaray.com/Void/Library/src/commit/7b0fea6095f603f9e1904f66dfdc7752f4be4792/include/Void/Async/FuturePool.hpp) · [Current consumer](https://git.faumaray.com/Lagg1ng/stoneheart_at_home/src/commit/e6a01bedcce609927c46b5957ff95cae93403c30/engine/include/settlement/core/worker_pool.hpp)
Would a test-only callable adapter or bounded gate in `Void::Testing` fit? An optional success observer should run once after invocation returns and before the enclosing future is fulfilled, preserve void, value, reference and move-only results, and forward exceptions. The test should be able to release a blocked participant on failure or timeout. This can be opt-in with no instrumentation on the ordinary production path.
A replacement test would record actual return order A→B and B→A for two submitted tasks on a two-worker executor, including one run with an inline overload fallback. Check both resulting futures and exception behavior, then run the same vectors on Windows x64. The downstream test owns gameplay arbitration and compares world states across both schedules.
Implemented on branch issue/15-completion-observer (local commit 1eb68a0).
Void::Testing::observe_completion/CompletionGate added: an observer runs after a successful return but before the future is ready, preserving all result categories and forwarding exceptions, with a releasable gate for deterministic A→B / B→A ordering.
Implemented on branch `issue/15-completion-observer` (local commit `1eb68a0`).
`Void::Testing::observe_completion`/`CompletionGate` added: an observer runs after a successful return but before the future is ready, preserving all result categories and forwarding exceptions, with a releasable gate for deterministic A→B / B→A ordering.
Merge request: https://git.faumaray.com/Void/Library/pulls/31
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
A consumer uses a bounded
FuturePoolto calculate competing proposals. Its deterministic integration test needs to make A finish before B starts, then reverse the order on the same real worker pool. A signal in the submission or start callback alone cannot establish that the earlier computation returned. Sleep-based ordering also fails under load.At
7b0fea6095f603f9e1904f66dfdc7752f4be4792,DeterministicRuncan reorder ready actions on its test scheduler.FuturePool::try_submitreturns the future for one caller-owned task. Source inspection found no test facility that tags real invocations and observes a successful return inside the submitted callable before its future becomes ready. Our caller currently wraps each submission to observe starts and uses coordinator execution on queue overload. Deterministic tests · Real executor adapter · Current consumerWould a test-only callable adapter or bounded gate in
Void::Testingfit? An optional success observer should run once after invocation returns and before the enclosing future is fulfilled, preserve void, value, reference and move-only results, and forward exceptions. The test should be able to release a blocked participant on failure or timeout. This can be opt-in with no instrumentation on the ordinary production path.A replacement test would record actual return order A→B and B→A for two submitted tasks on a two-worker executor, including one run with an inline overload fallback. Check both resulting futures and exception behavior, then run the same vectors on Windows x64. The downstream test owns gameplay arbitration and compares world states across both schedules.
Implemented on branch
issue/15-completion-observer(local commit1eb68a0).Void::Testing::observe_completion/CompletionGateadded: an observer runs after a successful return but before the future is ready, preserving all result categories and forwarding exceptions, with a releasable gate for deterministic A→B / B→A ordering.Merge request: #31