Skip to content

test(dispatcher): widen selectFromPartitions wall-time threshold to 120ms#2317

Merged
TalZaccai merged 1 commit into
mainfrom
dev/talzacc/fix-flaky-partitions-test
May 9, 2026
Merged

test(dispatcher): widen selectFromPartitions wall-time threshold to 120ms#2317
TalZaccai merged 1 commit into
mainfrom
dev/talzacc/fix-flaky-partitions-test

Conversation

@TalZaccai
Copy link
Copy Markdown
Contributor

@TalZaccai TalZaccai commented May 8, 2026

test(dispatcher): widen selectFromPartitions wall-time threshold to 120ms

The "all partitions run in parallel" test asserts elapsed < 80ms for
3 partitions × 20ms delays. PR #2296 (May 6) added per-partition
AbortSignal plumbing through selectFromPartitions, adding a few ms
of overhead per partition and pushing wall-time past 80ms on shared CI
runners.

Evidence

Date Run Wall-time
May 7 18:30 25514597765 108ms
Today, merge queue 25578868557 86ms
Today, merge queue 25580652506 86ms

PR #2296 merged May 6. Failures start May 7. Pre-#2296 runs
back weeks: all green. The 86ms reading repeating exactly across runs
suggests the new abort-plumbing overhead landed deterministically just
above the old threshold.

Fix

Bump the assertion from < 80ms to < 120ms. That absorbs the
observed overhead (108ms worst case) with a small margin while keeping
the spread check and a meaningful upper bound — a serial-await
regression on these 20ms delays would still take ≥60ms minimum and
combined with the spread check this remains a useful guard.

-expect(elapsed).toBeLessThan(80);
+expect(elapsed).toBeLessThan(120);

@TalZaccai TalZaccai force-pushed the dev/talzacc/fix-flaky-partitions-test branch from d90488b to 934646e Compare May 8, 2026 23:49
@TalZaccai TalZaccai force-pushed the dev/talzacc/fix-flaky-partitions-test branch from 934646e to c6eac37 Compare May 8, 2026 23:49
@TalZaccai TalZaccai changed the title test(dispatcher): drop flaky wall-time assertion from selectFromPartitions parallelism test test(dispatcher): make selectFromPartitions parallelism test robust to CI overhead May 8, 2026
@TalZaccai TalZaccai force-pushed the dev/talzacc/fix-flaky-partitions-test branch from c6eac37 to 3bd0dc8 Compare May 8, 2026 23:51
@TalZaccai TalZaccai force-pushed the dev/talzacc/fix-flaky-partitions-test branch from 3bd0dc8 to 8e23458 Compare May 8, 2026 23:52
@TalZaccai TalZaccai changed the title test(dispatcher): make selectFromPartitions parallelism test robust to CI overhead test(dispatcher): widen selectFromPartitions wall-time threshold to 120ms May 8, 2026
…20ms

The "all partitions run in parallel" test asserts elapsed < 80ms for
3 partitions × 20ms delays. PR #2296 (May 6) added per-partition
AbortSignal plumbing through selectFromPartitions, adding a few ms of
overhead per partition and pushing wall-time past 80ms on shared CI
runners. Observed failures since May 7 on ubuntu-latest at 86ms and
108ms — too consistent to be normal flake.

Bumping the threshold from 80ms → 120ms absorbs the new overhead with
headroom while still catching a genuine serial-await regression
(3 × 20ms = 60ms minimum, but combined with the spread check this
remains a meaningful guard).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TalZaccai TalZaccai force-pushed the dev/talzacc/fix-flaky-partitions-test branch from 8e23458 to 64a4eca Compare May 8, 2026 23:55
@TalZaccai TalZaccai temporarily deployed to development-fork May 8, 2026 23:55 — with GitHub Actions Inactive
@TalZaccai TalZaccai temporarily deployed to development-fork May 8, 2026 23:55 — with GitHub Actions Inactive
@TalZaccai TalZaccai enabled auto-merge May 8, 2026 23:58
@TalZaccai TalZaccai added this pull request to the merge queue May 9, 2026
Merged via the queue into main with commit bf0d1ab May 9, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant