Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Enabling federation_sender in the worker-enabled docker image causes Complement tests to fail #9192

@anoadragon453

Description

@anoadragon453

When adding federation_sender to the list of enabled workers (via the SYNAPSE_WORKERS env var) to the Synapse worker Docker image, Complement tests that rely on receiving federation transactions fail. This is predictably due to the in-built Complement server never receiving any federation transactions from Synapse.

@MatMaul and myself have looked into this, and have so far concluded that:

  • send_federation is true for the federation_sender work and false for the master process, as intended.
  • The federation_sender is starting up correctly.
  • Adding federation_sender_instances to the federation_sender config does not help (nor should it really, as we're only using one federation sender...)

My hunch is that somehow the master process is not communicating transactions that need to be sent out to the federation sender. Additionally, while enabling other workers poses no problems, it's worth noting that Complement still only has a very small number of tests. As such the federation sender may not be the only worker having issues; it may just be the first to show them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.X-Needs-InfoThis issue is blocked awaiting information from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions