Skip to content

test: patch msc3902 complement handler-map race#148

Merged
sufforest merged 1 commit into
mainfrom
wzy/complement-msc3902-handler-race
Jun 10, 2026
Merged

test: patch msc3902 complement handler-map race#148
sufforest merged 1 commit into
mainfrom
wzy/complement-msc3902-handler-race

Conversation

@sufforest

Copy link
Copy Markdown
Owner

The msc3902 partial-state-join test removes its leave handler off a CurrentState read while the federation goroutine is still dispatching that delivery, so the in-flight callback fails the (legitimate) leave as an unexpected PDU. It is a race in the Complement test harness, not vela — vela delivers each leave exactly once.

run.sh now applies the fix as a patch to the pinned Complement checkout before the tests compile, until it lands upstream. matrix-org/complement#878 targets the same race but is not mergeable yet (its entry pre-check fatals on the nested kicked/absent subtests).

The partial-state-join test removes its leave handler off a CurrentState
read while the federation goroutine is still dispatching that delivery, so
the in-flight callback finds no handler and fails the leave as an unexpected
PDU. It's a race in the test harness, not the homeserver — vela delivers each
leave exactly once. Carry the fix as a patch applied by run.sh until it lands
upstream.
@sufforest sufforest merged commit 24d5846 into main Jun 10, 2026
9 checks passed
@sufforest sufforest deleted the wzy/complement-msc3902-handler-race branch June 10, 2026 05:54
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