Skip to content

4311 stripped state create event#871

Draft
FrenchGithubUser wants to merge 1 commit intomatrix-org:mainfrom
famedly:4311-stripped-state-create-event
Draft

4311 stripped state create event#871
FrenchGithubUser wants to merge 1 commit intomatrix-org:mainfrom
famedly:4311-stripped-state-create-event

Conversation

@FrenchGithubUser
Copy link
Copy Markdown
Contributor

@FrenchGithubUser FrenchGithubUser commented May 4, 2026

I think that there was a small error in TestMSC4311FullCreateEventOnStrippedState, the test was checking for extra fields in a stripped event while they shouldn't be there

Comes with element-hq/synapse#19749

Pull Request Checklist

Signed-off-by: Thomas Traineau t.traineau@famedly.com

@FrenchGithubUser FrenchGithubUser force-pushed the 4311-stripped-state-create-event branch from 787b2fc to 3653b4b Compare May 4, 2026 16:49
Comment thread tests/v12_test.go
Comment on lines +1360 to +1361
// find the create event: MSC4311 requires it to be present, but clients
// still receive it in stripped state format (no extra fields)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think that there was a small error in TestMSC4311FullCreateEventOnStrippedState,

Yes, this test is flawed but there are two distinct pieces to MSC4311:

  1. Ensuring the m.room.create event is included in the client API (stripped state)
  2. Ensuring all state events in the federation API are using full PDU including the m.room.create which is required.

#796 fixes the second issue.

The first issue doesn't have a good test yet and I don't think this test is necessarily a "good" test. It looks like you've adapted what's here 👍 but it could be better. For example, even the test name here needs updating. And we could some of the same must.MatchGJSON(...) assertions here instead of these for loops. Also can be simplified to not use federation at all, etc, etc, etc.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall, this is probably something we can tackle in #796

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