Skip to content

feat: update tests to pass with room v11#1

Open
FrenchGithubUser wants to merge 1 commit into
developfrom
tt/room-v11-default
Open

feat: update tests to pass with room v11#1
FrenchGithubUser wants to merge 1 commit into
developfrom
tt/room-v11-default

Conversation

@FrenchGithubUser
Copy link
Copy Markdown
Member

@FrenchGithubUser FrenchGithubUser commented Apr 14, 2026

SYN-33

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates SyTest’s federation helpers and tests to accommodate room version v11 semantics (implicit room creator and updated redaction rules), aligning the test harness with v11 as the default.

Changes:

  • Relax m.room.create tests to accept missing content.creator (v11+).
  • Stop emitting content.creator in locally-generated m.room.create events for v11+ rooms.
  • Add room-version-aware redaction/hash plumbing and extend redaction rules for v11+.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/30rooms/01state.pl Allows m.room.create.content.creator to be absent (v11+).
lib/SyTest/Federation/Room.pm Generates m.room.create with implicit creator for v11+.
lib/SyTest/Federation/Protocol.pm Makes event hashing pass room_version into redaction.
lib/SyTest/Federation/AuthChecks.pm Adjusts auth checks to cope with implicit creator.
lib/Protocol/Matrix.pm Introduces v11+ redaction-rule updates and room_version parameterization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/SyTest/Federation/AuthChecks.pm Outdated
Comment thread lib/Protocol/Matrix.pm Outdated
Comment thread lib/Protocol/Matrix.pm
Comment thread lib/SyTest/Federation/AuthChecks.pm Outdated
Comment thread lib/SyTest/Federation/AuthChecks.pm Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates SyTest’s federation/event handling and a core room-creation test to accommodate the Matrix default room version moving to v11 (implicit creator + updated redaction/signing semantics).

Changes:

  • Make m.room.create creator handling compatible with room v11+ (implicit creator via sender) in tests, room event generation, and auth checks.
  • Thread room_version through hashing/signing/redaction and add room v11+ redaction behavior.
  • Adjust CI workflow to download Synapse from a different GitHub org.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/30rooms/01state.pl Relaxes m.room.create assertions to allow v11+ implicit creator.
lib/SyTest/Federation/Room.pm Omits content.creator for create events in room v11+.
lib/SyTest/Federation/Protocol.pm Makes hash_event room-version-aware by redacting with room_version.
lib/SyTest/Federation/Datastore.pm Passes room_version into event signing so redaction/signing can match v11 rules.
lib/SyTest/Federation/AuthChecks.pm Accepts v11+ implicit creator in auth checks; adds helper to derive creator.
lib/Protocol/Matrix.pm Implements room v11+ redaction rule differences and plumbs room_version into signing/verification.
.github/workflows/pipeline.yml Switches Synapse download source from element-hq to famedly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/SyTest/Federation/Datastore.pm
Comment thread lib/SyTest/Federation/Room.pm
Comment thread lib/Protocol/Matrix.pm Outdated
Comment on lines 45 to +50
sub hash_event
{
my ( $event ) = @_;
my ( $event, $room_version ) = @_;
$room_version //= 1;
croak "Require an event" unless ref $event eq 'HASH';
my $redacted = redacted_event( $event );
my $redacted = redacted_event( $event, $room_version );
Comment thread lib/SyTest/Federation/AuthChecks.pm Outdated
Comment thread .github/workflows/pipeline.yml
@FrenchGithubUser FrenchGithubUser changed the title wip adapt tests to default room version v11 feat: update tests to pass with room v11 Apr 15, 2026
@FrenchGithubUser FrenchGithubUser marked this pull request as ready for review April 16, 2026 08:45
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