Repository navigation
impl(042): the runtime cases run on one thread - #426
Conversation
AI review (no-findings)The PR makes two related changes: switching the Code change ( Spec change ( No bugs, security problems, or governance inconsistencies found. {"head": "13aa810c85b79e2ead2d7222328c74713e53d2ca", "verdict": "no-findings", "findings": []}Subject: 8517df9...13aa810, diff digest 8a02cc8caae23a98691a4554430a1da1e0c991e116f690703210573b75c08124, 1 call(s). An AI comment is not an approval. |
The runtime-case runner could read the runtime's gauges mid-poll on a worker pool and step the manual clock before the next attempt was dispatched. Drive it on a current-thread runtime, as the native runner does.
13aa810 to
e35cb32
Compare
AI review (no-findings)The PR makes two related changes: switching a tokio test from a 4-worker multi-threaded runtime to the default single-threaded ( Test change ( Spec change ( No bugs, security problems, or governance inconsistencies found. {"head": "e35cb3284dabdbae97c010a6fc1dc0762493f35f", "verdict": "no-findings", "findings": []}Subject: 2cfbfee...e35cb32, diff digest 73a77667e2aca5485f64125e20f8a22fb8b789a7fe6a57208d093f3b615bd15d, 1 call(s). An AI comment is not an approval. |
Fixes the intermittent failure of
conformance::every_runtime_case_through_both_transports_and_listeners(seen in #422's merge group, run 41139262023):runtime.retry's delivered record differed.Cause: the test ran on a 4-thread runtime. The driver could read the runtime's gauges in the middle of the decision's poll, after the
topicattempt answered and released its permit and beforeexplicit_deadlinewas dispatched. It then saw "retry timer pending, nothing in flight" and advanced the manual clock early, soexplicit_deadlinewas recorded as dispatched or ended at 10 ms instead of 0. Reproduced under CPU load with the old binary: 2 failures in 80 runs. The captured records show exactly that difference.Fix: the test now runs on a current-thread runtime, as the suite's native runner (
tools/rustev-conformance/src/runtime.rs) drives the same cases. The driver then reads gauges and sleepers only between the decision's polls. No retries were added, and the byte comparison is unchanged. Under the same load the fixed binary passed 96 of 96 runs.Checks: the stress runs above,
make gate,scripts/check-authored-content.sh.