Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for MSC2716 and backfilling history #68

Merged
merged 93 commits into from
Jul 15, 2021

Commits on Jan 28, 2021

  1. Configuration menu
    Copy the full SHA
    15ba451 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2021

  1. Configuration menu
    Copy the full SHA
    55c5a8c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70036ac View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2021

  1. Configuration menu
    Copy the full SHA
    dabdf5a View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Configuration menu
    Copy the full SHA
    6b77b29 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. Proper test formatting

    MadLittleMods committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    2b2a53f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    975665d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    110352f View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2021

  1. Update docs

    MadLittleMods committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    8bbb929 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22292b5 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2021

  1. Configuration menu
    Copy the full SHA
    3c332ba View commit details
    Browse the repository at this point in the history
  2. Enable msc2716 feature flag

    MadLittleMods committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    1675fec View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

  1. Configuration menu
    Copy the full SHA
    54061cb View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2021

  1. Configuration menu
    Copy the full SHA
    3973312 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2021

  1. Configuration menu
    Copy the full SHA
    5a71989 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. Configuration menu
    Copy the full SHA
    c607f8d View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2021

  1. Configuration menu
    Copy the full SHA
    fe050a9 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. Configuration menu
    Copy the full SHA
    7625067 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2021

  1. Configuration menu
    Copy the full SHA
    7d70586 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Configuration menu
    Copy the full SHA
    9292cf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4400459 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    606eca3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a8ccf1 View commit details
    Browse the repository at this point in the history
  5. Remove unused function

    MadLittleMods committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    1dd26ef View commit details
    Browse the repository at this point in the history
  6. Fix lint

    MadLittleMods committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    4f96f44 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7f8c5c1 View commit details
    Browse the repository at this point in the history
  8. Add application service support to blueprints

    Split out from #68
    MadLittleMods committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    cf4d8e9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ee1ed9f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    614c66e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ccb20e6 View commit details
    Browse the repository at this point in the history
  12. Add comment doc

    MadLittleMods committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    12e6ec0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0d1e9bf View commit details
    Browse the repository at this point in the history
  14. Some nits and remove the volume paths

     - Seems like the `Volumes` syntax is to create an anonymous volume, https://stackoverflow.com/a/58916037/796832
     - And lots of people not knowing what `Volumes` syntax is or what to do. Seems like Mounts is the thing to use
        - fsouza/go-dockerclient#155
        - https://stackoverflow.com/questions/55718603/golang-docker-library-mounting-host-directory-volumes
        - https://stackoverflow.com/questions/48470194/defining-a-mount-point-for-volumes-in-golang-docker-sdk
    MadLittleMods committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    1b19990 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2d9c3b9 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c1f07c2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e08e8c8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2f78441 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    169a60d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    0dd18af View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. Configuration menu
    Copy the full SHA
    c6155af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be23da8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f353135 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2021

  1. Configuration menu
    Copy the full SHA
    30b4f6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    312feaa View commit details
    Browse the repository at this point in the history
  3. Add more messages to fill up sync and limit response

    See explanation in matrix-org/synapse#9247 (comment)
    
    > Basically, for initial sync we will return the latest N events, which can involve backfilled events, e.g. if you have a graph `A2 -> A1 -> B1 -> B2 -> B3` where An are "live" events and Bn are backfilled events (i.e. the server only has two live events, the rest are backfilled) then initial sync will return `A1`, `A2` and then a bunch of the backfilled events (up to the limit). Incremental syncs from that, however, will just return new events non-backfilled events received after `A2`.
    >
    > So I'm wondering if your tests are correctly seeing some backfilled events, due to the server not having enough non-backfilled recent events to fill up the timeline section in the initial sync
    MadLittleMods committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    923c41e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63a59af View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    172ecf2 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2021

  1. Configuration menu
    Copy the full SHA
    711ca3c View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2021

  1. Configuration menu
    Copy the full SHA
    95b20af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dee8369 View commit details
    Browse the repository at this point in the history
  3. Fix historical typo

    MadLittleMods committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    8978f58 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Configuration menu
    Copy the full SHA
    c5264d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Configuration menu
    Copy the full SHA
    16c50bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8ca419 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Merge branch 'master' into eric/msc2716-backfilling-history

    Conflicts:
    	dockerfiles/synapse/homeserver.yaml
    MadLittleMods committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    bfc260e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6215726 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    367db56 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. Configuration menu
    Copy the full SHA
    88b4e98 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. Configuration menu
    Copy the full SHA
    90d8f7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac8e770 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. Configuration menu
    Copy the full SHA
    e1d203c View commit details
    Browse the repository at this point in the history
  2. Add tests to ensure historical messages are visible to federated user…

    …s who are already in the room
    MadLittleMods committed May 6, 2021
    Configuration menu
    Copy the full SHA
    ec5fc15 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

  1. Configuration menu
    Copy the full SHA
    7150004 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed82752 View commit details
    Browse the repository at this point in the history
  3. Remove namespace

    kegsay committed May 14, 2021
    Configuration menu
    Copy the full SHA
    8d65ac7 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Configuration menu
    Copy the full SHA
    0145930 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'eric/msc2716-backfilling-history' of github.com:matrix-…

    …org/complement into eric/msc2716-backfilling-history
    MadLittleMods committed May 27, 2021
    Configuration menu
    Copy the full SHA
    37e086d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c720f4 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Configuration menu
    Copy the full SHA
    f970444 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ee5ad1 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Configuration menu
    Copy the full SHA
    35c8f76 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. Merge branch 'master' into eric/msc2716-backfilling-history

    Conflicts:
    	dockerfiles/synapse/workers-shared.yaml
    	internal/client/client.go
    	tests/msc2403_test.go
    MadLittleMods committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    3890321 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    007877f View commit details
    Browse the repository at this point in the history
  3. Fix blueprint name conflict

    The name conflict would result in the following error when some alice tests ran before the MSC2716 tests.
    ```
    === RUN   TestBackfillingHistory
        msc2716_test.go:54: Deploy times: 18.499364ms blueprints, 1.581230486s containers
        msc2716_test.go:60: Deployment.Client - HS name 'hs1' - user ID '@the-bridge-user:hs1' not found
    ```
    MadLittleMods committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    c03e49e View commit details
    Browse the repository at this point in the history
  4. Skip federation tests

    MadLittleMods committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    3611002 View commit details
    Browse the repository at this point in the history
  5. Some cleanup

    MadLittleMods committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    29582e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Remove some unused bits

    MadLittleMods committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    603fd8f View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2021

  1. Configuration menu
    Copy the full SHA
    b6b615d View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Configuration menu
    Copy the full SHA
    9a3da4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dcd84ad View commit details
    Browse the repository at this point in the history
  3. Revert "Re-use one test setup with sub-tests"

    This reverts commit dcd84ad.
    MadLittleMods committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    4875ef8 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Add test for multiple senders within a single chunk

    Add tests for matrix-org/synapse#10276
    
    Also removes the `?user_id` usage because it's no longer necessary.
    We now create the proper requester in Synapse for each given sender
    in the event.
    MadLittleMods committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    e56c872 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Configuration menu
    Copy the full SHA
    d63fb7f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34756a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3224030 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3ac2176 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Configuration menu
    Copy the full SHA
    1d09b18 View commit details
    Browse the repository at this point in the history
  2. Add homeserver name to client request logging to differentiate who/where

    Before:
    
    ```
    === CONT  TestBackfillingHistory
        client.go:356: GET /_matrix/client/r0/sync => 200 OK (31.496008ms)
        client.go:356: POST /_matrix/client/unstable/org.matrix.msc2716/rooms/!GkmAGvcDmllsuqLgZA:hs1/batch_send => 200 OK (96.308307ms)
        client.go:356: POST /_matrix/client/r0/join/!GkmAGvcDmllsuqLgZA:hs1 => 200 OK (808.747133ms)
        client.go:356: GET /_matrix/client/r0/rooms/!GkmAGvcDmllsuqLgZA:hs1/messages => 200 OK (83.415512ms)
    ```
    
    After:
    ```
    === CONT  TestBackfillingHistory
        client.go:357: GET hs1/_matrix/client/r0/sync => 200 OK (29.885812ms)
        client.go:357: POST hs1/_matrix/client/unstable/org.matrix.msc2716/rooms/!jbwgZJKNOedwNWRdop:hs1/batch_send => 200 OK (96.173807ms)
        client.go:357: POST hs2/_matrix/client/r0/join/!jbwgZJKNOedwNWRdop:hs1 => 200 OK (808.849665ms)
        client.go:357: GET hs2/_matrix/client/r0/rooms/!jbwgZJKNOedwNWRdop:hs1/messages => 200 OK (73.667196ms)
    ```
    MadLittleMods committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    9c68cb5 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Configuration menu
    Copy the full SHA
    1f780ec View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    425206d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53f5347 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Configuration menu
    Copy the full SHA
    991e91c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b0355b View commit details
    Browse the repository at this point in the history