perf typing scenario: two clients rarely end with different text (10k, dev code) #1146

Open
opened 2026-11-15 00:33:21 +00:00 by kayg · 1 comment
Owner

Found by the #1130 perf-comparator lane on perf-01 (14–15 Nov). Recorded here; not fixed in that lane.

What: calternal-perf's typing scenario (crates/perf/src/scenarios/typing.rs round_trip) has two clients edit one note. Client A types 200 keystrokes. After each one, client B waits until it has A's clock. At the end, the scenario checks a.text() == b.text(). That check failed twice:

When (CET) Turn Server binary Size Run
14 Nov, 12:4x–13:59 sound-cmp-turn/t1 round 2, arm cand #1117 934ef1c36 (09fdc5db…) 10k warm run 2 of 3
15 Nov, 01:25 sound-cmp-1117s/ts warm-up, arm inert dev 796d80cba + never-run padding (ae6d0a27…); the code is dev's 10k warm run 7 of 9
  • Out of roughly 600 typing runs across my turns, two failed, both at 10k.
  • The second binary runs exactly dev's code: the padding sits behind black_box(false) and never executes. So this is on dev, not on a branch.
  • Either B can see A's clock and still hold different text (a convergence bug in sync/rooms), or the harness compares the texts before something settles (a check bug). I haven't told the two apart.
  • Raw result files are kept on perf-01: ~/Developer/Worktrees/sound-cmp-1117s/keep/warmup-inert-divergence/ and ~/Developer/Worktrees/sound-cmp-turn/t1/rounds/2/cand/.

Suggested next step: loop only the typing scenario at 10k (--runs high), on dev. When the texts differ, dump both texts and both version vectors, and diff them.

Found by the #1130 perf-comparator lane on perf-01 (14–15 Nov). Recorded here; not fixed in that lane. **What:** `calternal-perf`'s typing scenario (`crates/perf/src/scenarios/typing.rs` `round_trip`) has two clients edit one note. Client A types 200 keystrokes. After each one, client B waits until it has A's clock. At the end, the scenario checks `a.text() == b.text()`. That check failed twice: | When (CET) | Turn | Server binary | Size | Run | |---|---|---|---|---| | 14 Nov, 12:4x–13:59 | `sound-cmp-turn/t1` round 2, arm cand | #1117 `934ef1c36` (`09fdc5db…`) | 10k | warm run 2 of 3 | | 15 Nov, 01:25 | `sound-cmp-1117s/ts` warm-up, arm inert | dev `796d80cba` + never-run padding (`ae6d0a27…`); the code is dev's | 10k | warm run 7 of 9 | - Out of roughly 600 typing runs across my turns, two failed, both at 10k. - The second binary runs exactly dev's code: the padding sits behind `black_box(false)` and never executes. So this is on dev, not on a branch. - **Either** B can see A's clock and still hold different text (a convergence bug in sync/rooms), **or** the harness compares the texts before something settles (a check bug). I haven't told the two apart. - Raw result files are kept on perf-01: `~/Developer/Worktrees/sound-cmp-1117s/keep/warmup-inert-divergence/` and `~/Developer/Worktrees/sound-cmp-turn/t1/rounds/2/cand/`. **Suggested next step:** loop only the typing scenario at 10k (`--runs` high), on dev. When the texts differ, dump both texts and both version vectors, and diff them.
Author
Owner

Third occurrence, on plain dev: 15 Nov 01:56–02:07 CET, turn sound-cmp-1117s/ts round 2, arm dev = 796d80cba built on dev-01 (sha256 c3e9a68f…, no padding), 10k, warm run 4 of 9: "the two clients ended with different text".

So this is on dev itself. I've now seen 3 failures in roughly 700 typing runs, all at 10k. The raw results stay on perf-01 under ~/Developer/Worktrees/sound-cmp-1117s/ts/rounds/2/dev/ until this issue is picked up.

**Third occurrence, on plain dev:** 15 Nov 01:56–02:07 CET, turn `sound-cmp-1117s/ts` round 2, arm **dev** = `796d80cba` built on dev-01 (sha256 `c3e9a68f…`, no padding), 10k, warm run 4 of 9: "the two clients ended with different text". So this is on dev itself. I've now seen 3 failures in roughly 700 typing runs, all at 10k. The raw results stay on perf-01 under `~/Developer/Worktrees/sound-cmp-1117s/ts/rounds/2/dev/` until this issue is picked up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#1146
No description provided.