Skip to content

Famedly release/v1.153#17

Merged
FrenchGithubUser merged 12 commits into
mainfrom
famedly-release/v1.153
May 27, 2026
Merged

Famedly release/v1.153#17
FrenchGithubUser merged 12 commits into
mainfrom
famedly-release/v1.153

Conversation

@FrenchGithubUser

Copy link
Copy Markdown
Member

No description provided.

anoadragon453 and others added 12 commits April 17, 2026 12:28
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…-org#865)

Follow-up to matrix-org#830

As experienced in https://github.com/element-hq/synapse-rust-apps/actions/runs/24910122124/job/72949760158?pr=360 (element-hq/synapse-rust-apps#360)

```
❌ TestDelayedEvents/delayed_state_events_are_kept_on_server_restart (10.12s)
      delayed_event_test.go:425: StopServer hs1
      delayed_event_test.go:429: StartServer hs1
      delayed_event_test.go:443: CSAPI.MustDo GET http://127.0.0.1:32978/_matrix/client/v3/rooms/%21MbDncghrqxTzEmQhCP:hs1/state/com.example.test/1 returned non-2xx code: 404 Not Found - body: {"errcode":"M_NOT_FOUND","error":"Event not found."}
```

This is most likely caused because the main process handles processing delayed events
(and serving `/state`) but the state will be persisted on one of event_persister workers so the main process
might be serving stale data until the invalidation comes through.
---------

Signed-off-by: Thomas Traineau t.traineau@famedly.com
…ke v2) (matrix-org#869)

Re-introducing the changes from matrix-org#865 which were reverted in matrix-org#867

Follow-up to matrix-org#830

As experienced when running this test against the worker-based Synapse setup we use alongside the Synapse Pro Rust apps, https://github.com/element-hq/synapse-rust-apps/actions/runs/24910122124/job/72949760158?pr=360 (element-hq/synapse-rust-apps#360)

```
❌ TestDelayedEvents/delayed_state_events_are_kept_on_server_restart (10.12s)
      delayed_event_test.go:425: StopServer hs1
      delayed_event_test.go:429: StartServer hs1
      delayed_event_test.go:443: CSAPI.MustDo GET http://127.0.0.1:32978/_matrix/client/v3/rooms/%21MbDncghrqxTzEmQhCP:hs1/state/com.example.test/1 returned non-2xx code: 404 Not Found - body: {"errcode":"M_NOT_FOUND","error":"Event not found."}
```

Also updating the rest of the `TestDelayedEvents` tests to better account for state changes that might not show up immediately because processing/worker/replication delay


### Why does this flake happen?

Discussed in matrix-org#865 (comment)
@FrenchGithubUser FrenchGithubUser requested a review from a team as a code owner May 26, 2026 13:59

@jason-famedly jason-famedly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tests seem happy so I guess this is fine

@FrenchGithubUser FrenchGithubUser merged commit 3c181c7 into main May 27, 2026
4 of 6 checks passed
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.

4 participants