Skip to content

Make invite recission over federation test deterministic - #963

Open
devonh wants to merge 2 commits into
mainfrom
initial-sync-rescinded-invite
Open

devonh wants to merge 2 commits into
mainfrom
initial-sync-rescinded-invite

Conversation

@devonh

@devonh devonh commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

In the existing test, Bob would start with an initial sync after Alice kicks them from the room. Depending on environment timings, Bob's server could have received the kick either before the initial sync, or after.
Because the sync logic is different for an initial sync vs an incremental sync, this would lead to intermittent failures in Synapse where Bob would see the leave only some of the time.

element-hq/synapse#20453 is a fix on the Synapse side.

This PR changes the complement test to ensure deterministic testing by:

  • making the first sync loop after the kick always be incremental
  • following up the successful incremental sync with a dedicated initial sync

Pull Request Checklist

devonh and others added 2 commits November 12, 2026 18:11
The test's final sync loop started with an initial sync, so whether it
exercised initial or incremental sync depended on when the rescission
arrived. It now waits for the rescission with an incremental sync, then
checks that a fresh initial sync also includes it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FqDpJa1cp5hHXwmcMbEPJm
@devonh
devonh requested review from a team as code owners November 12, 2026 18:20
@devonh
devonh requested review from sandhose and removed request for a team November 12, 2026 18:20
@devonh

devonh commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

This will fail until element-hq/synapse#20453 is merged.

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