Skip to content
Snippets Groups Projects
  1. Apr 18, 2023
    • Val Lorentz's avatar
      Speedup tests by caching HomeServerConfig instances (#15284) · cb8e274c
      Val Lorentz authored
      These two lines:
      
      ```
      config_obj = HomeServerConfig()
      config_obj.parse_config_dict(config, "", "")
      ```
      
      are called many times with the exact same value for `config`.
      
      As the test suite is CPU-bound and non-negligeably time is spent in
      `parse_config_dict`, this saves ~5% on the overall runtime of the Trial
      test suite (tested with both `-j2` and `-j12` on a 12t CPU).
      
      This is sadly rather limited, as the cache cannot be shared between
      processes (it contains at least jinja2.Template and RLock objects which
      aren't pickleable), and Trial tends to run close tests in different
      processes.
      cb8e274c
    • Andrew Morgan's avatar
  2. Apr 14, 2023
  3. Apr 13, 2023
  4. Apr 12, 2023
  5. Apr 05, 2023
  6. Apr 04, 2023
  7. Apr 03, 2023
  8. Mar 31, 2023
  9. Mar 30, 2023
  10. Mar 29, 2023
  11. Mar 28, 2023
  12. Mar 24, 2023
    • Quentin Gliech's avatar
      Make cleaning up pushers depend on the device_id instead of the token_id (#15280) · 5b70f240
      Quentin Gliech authored
      This makes it so that we rely on the `device_id` to delete pushers on logout,
      instead of relying on the `access_token_id`. This ensures we're not removing
      pushers on token refresh, and prepares for a world without access token IDs
      (also known as the OIDC).
      
      This actually runs the `set_device_id_for_pushers` background update, which
      was forgotten in #13831.
      
      Note that for backwards compatibility it still deletes pushers based on the
      `access_token` until the background update finishes.
      5b70f240
    • Patrick Cloke's avatar
      Reject mentions on the C-S API which are invalid. (#15311) · 68a67173
      Patrick Cloke authored
      Invalid mentions data received over the Client-Server API should
      be rejected with a 400 error. This will hopefully stop clients from
      sending invalid data, although does not help with data received
      over federation.
      68a67173
  13. Mar 22, 2023
  14. Mar 21, 2023
  15. Mar 20, 2023
  16. Mar 16, 2023
  17. Mar 13, 2023
  18. Mar 10, 2023
  19. Mar 09, 2023
  20. Mar 07, 2023
  21. Mar 06, 2023
Loading