Skip to content
Snippets Groups Projects
  1. Nov 12, 2021
    • David Robertson's avatar
      Misc typing fixes for `tests`, part 1 of N (#11323) · 4c96ce39
      David Robertson authored
      * Annotate HomeserverTestCase.servlets
      * Correct annotation of federation_auth_origin
      * Use AnyStr custom_headers instead of a Union
      
      This allows (str, str) and (bytes, bytes).
      This disallows (str, bytes) and (bytes, str)
      
      * DomainSpecificString.SIGIL is a ClassVar
      Unverified
      4c96ce39
  2. Oct 01, 2021
  3. Sep 30, 2021
    • David Robertson's avatar
      Pass str to twisted's IReactorTCP (#10895) · 29364145
      David Robertson authored
      This follows a correction made in twisted/twisted#1664 and should fix our Twisted Trial CI job.
      
      Until that change is in a twisted release, we'll have to ignore the type
      of the `host` argument. I've raised #10899 to remind us to review the
      issue in a few months' time.
      Unverified
      29364145
  4. Sep 24, 2021
  5. Sep 23, 2021
  6. Sep 16, 2021
  7. Aug 26, 2021
  8. Aug 19, 2021
  9. Aug 18, 2021
  10. Aug 17, 2021
  11. Jul 13, 2021
  12. Jun 24, 2021
  13. Jun 22, 2021
  14. May 18, 2021
  15. Apr 23, 2021
  16. Apr 20, 2021
  17. Apr 14, 2021
  18. Apr 13, 2021
  19. Apr 09, 2021
  20. Apr 08, 2021
  21. Mar 29, 2021
  22. Mar 26, 2021
    • Erik Johnston's avatar
      Make it possible to use dmypy (#9692) · b5efcb57
      Erik Johnston authored
      Running `dmypy run` will do a `mypy` check while spinning up a daemon
      that makes rerunning `dmypy run` a lot faster.
      
      `dmypy` doesn't support `follow_imports = silent` and has
      `local_partial_types` enabled, so this PR enables those options and
      fixes the issues that were newly raised. Note that `local_partial_types`
      will be enabled by default in upcoming mypy releases.
      Unverified
      b5efcb57
  23. Mar 15, 2021
  24. Mar 12, 2021
  25. Mar 09, 2021
  26. Feb 24, 2021
    • Erik Johnston's avatar
      Clean up `ShardedWorkerHandlingConfig` (#9466) · 29279219
      Erik Johnston authored
      * Split ShardedWorkerHandlingConfig
      
      This is so that we have a type level understanding of when it is safe to
      call `get_instance(..)` (as opposed to `should_handle(..)`).
      
      * Remove special cases in ShardedWorkerHandlingConfig.
      
      `ShardedWorkerHandlingConfig` tried to handle the various different ways
      it was possible to configure federation senders and pushers. This led to
      special cases that weren't hit during testing.
      
      To fix this the handling of the different cases is moved from there and
      `generic_worker` into the worker config class. This allows us to have
      the logic in one place and allows the rest of the code to ignore the
      different cases.
      Unverified
      29279219
  27. Feb 16, 2021
  28. Jan 26, 2021
  29. Dec 15, 2020
  30. Dec 09, 2020
  31. Dec 04, 2020
  32. Dec 02, 2020
    • Richard van der Hoff's avatar
      fix up various test cases · 7ea85302
      Richard van der Hoff authored
      A few test cases were relying on being able to mount non-client servlets on the
      test resource. it's better to give them their own Resources.
      7ea85302
    • Patrick Cloke's avatar
      Apply an IP range blacklist to push and key revocation requests. (#8821) · 30fba621
      Patrick Cloke authored
      Replaces the `federation_ip_range_blacklist` configuration setting with an
      `ip_range_blacklist` setting with wider scope. It now applies to:
      
      * Federation
      * Identity servers
      * Push notifications
      * Checking key validitity for third-party invite events
      
      The old `federation_ip_range_blacklist` setting is still honored if present, but
      with reduced scope (it only applies to federation and identity servers).
      Unverified
      30fba621
Loading