Skip to content

Add minimal /send_join MSC4242 Complement tests - #926

Open
kegsay wants to merge 4 commits into
mainfrom
kegan/4242-inbound
Open

kegsay wants to merge 4 commits into
mainfrom
kegan/4242-inbound

Conversation

@kegsay

@kegsay kegsay commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Spawning from the discussions in element-hq/synapse#20194

This is to serve as regression tests for:

  • rejoining a room not working because we skipped seen events during processing
  • rejected events (due to cascading) being accepted because we didn't persist rejection status in-memory alongside the state group

This cargo cults some chunks of code from #841

Pull Request Checklist

This is to serve as regression tests for:
 - rejoining a room not working because we skipped seen events during processing
 - rejected events (due to cascading) being accepted because we didn't persist
   rejection status in-memory alongside the state group
@kegsay
kegsay requested review from a team as code owners September 24, 2026 15:55
@kegsay
kegsay requested review from devonh and removed request for a team September 24, 2026 15:55

@devonh devonh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the very thorough test descriptions and diagrams. They are very helpful to understand the test intent.

I found just a couple things after puzzling my way through each test.

Comment thread tests/msc4242/msc4242_joins_test.go Outdated
Comment thread tests/msc4242/msc4242_joins_test.go
Comment thread tests/msc4242/msc4242_joins_test.go
Comment thread tests/msc4242/msc4242_joins_test.go Outdated
@kegsay
kegsay requested a review from devonh October 2, 2026 13:34

@devonh devonh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the failing MSC4311 tests are due to this branch being slightly behind.

These tests look great!

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.

2 participants