Skip to content
Snippets Groups Projects
  1. Feb 24, 2025
  2. Feb 19, 2025
    • Quentin Gliech's avatar
      Speedup the building of Docker images (#18038) · 1525a3b4
      Quentin Gliech authored
      This is a split off #18033 
      
      This uses a few tricks to speed up the building of docker images:
      
      - This switches to use `uv pip install` instead of `pip install`. This
      saves a bunch of time, especially when cross-compiling
      - I then looked at what packages were not using binary wheels: I
      upgraded MarkupSafe to have binaries for py3.12, and got back to Python
      3.12 because hiredis didn't have builds for py3.13 with the version we
      were using
      - The generation of the requirements.txt is arch-agnostic, so I've
      switched this one to run on the build architecture, so that both arch
      can share it
      - The download of runtime depdendencies can be done on the build
      architecture through manual `apt-get download` plus `dpkg --extract`
      - We were using -slim images, but still installed a bunch of -dev
      dependencies. Turns out, all the dev dependencies were already installed
      in the non-slim image, which saves a bunch of time as well
      Unverified
      1525a3b4
  3. Feb 17, 2025
    • Eric Eastwood's avatar
      Add support to proxy outbound requests from Synapse in tests (#18158) · 12dc6b10
      Eric Eastwood authored
      Adds new environment variables that can be used with the Docker image
      (`SYNAPSE_HTTP_PROXY`/`SYNAPSE_HTTPS_PROXY`/`SYNAPSE_NO_PROXY`)
      
      Useful for things like the [Secure Border
      Gateway](https://element.io/server-suite/secure-border-gateways)
      
      
      ### Why is this necessary?
      
      You can already configure the `HTTP_PROXY`/`HTTPS_PROXY` environment
      variables to proxy outbound requests but setting this globally in the
      Docker image affects all processes which isn't always desirable or
      workable in the case where the proxy is running in the Docker image
      itself (because the Debian packages will fail to download because the
      proxy isn't up and running yet) . Adding Synapse specific environment
      variables
      (`SYNAPSE_HTTP_PROXY`/`SYNAPSE_HTTPS_PROXY`/`SYNAPSE_NO_PROXY`) makes
      things much more targetable.
      Unverified
      12dc6b10
  4. Jan 24, 2025
  5. Jan 13, 2025
  6. Dec 19, 2024
  7. Dec 03, 2024
  8. Nov 20, 2024
  9. Nov 05, 2024
  10. Sep 23, 2024
  11. Jul 11, 2024
  12. Jul 09, 2024
  13. Jul 02, 2024
  14. Jun 19, 2024
  15. Jun 13, 2024
  16. May 16, 2024
  17. May 02, 2024
  18. May 01, 2024
  19. Apr 29, 2024
  20. Apr 15, 2024
  21. Mar 28, 2024
  22. Mar 21, 2024
  23. Mar 13, 2024
    • Richard van der Hoff's avatar
      Multi-worker-docker-container: disable log buffering (#16919) · 92f20696
      Richard van der Hoff authored
      Background: we have a `matrixdotorg/synapse-workers` docker image, which
      is intended for running multiple workers within the same container. That
      image includes a `prefix-log` script which, for each line printed to
      stdout or stderr by one of the processes, prepends the name of the
      process.
      
      This commit disables buffering in that script, so that lines are logged
      quickly after they are printed. This makes it much easier to understand
      the output, since they then come out in a natural order.
      Unverified
      92f20696
  24. Feb 20, 2024
  25. Jan 23, 2024
  26. Jan 22, 2024
    • reivilibre's avatar
      Add a `--generate-only` option to the Complement launcher. (#16828) · fa2700f0
      reivilibre authored
      
      Pulled out of #16803 since the drive-by cleanup was maybe not as
      drive-by as I had hoped.
      
      <!--
      Fixes: # <!-- -->
      <!--
      Supersedes: # <!-- -->
      <!--
      Follows: # <!-- -->
      <!--
      Part of: # <!-- -->
      Base: `develop` <!-- git-stack-base-branch:develop -->
      
      <!--
      This pull request is commit-by-commit review friendly. <!-- -->
      <!--
      This pull request is intended for commit-by-commit review. <!-- -->
      
      Original commit schedule, with full messages:
      
      <ol>
      <li>
      
      Add a --generate-only option 
      
      </li>
      </ol>
      
      ---------
      
      Signed-off-by: default avatarOlivier Wilkinson (reivilibre) <oliverw@matrix.org>
      Unverified
      fa2700f0
  27. Dec 13, 2023
  28. Nov 21, 2023
  29. Oct 27, 2023
    • kegsay's avatar
      complement: enable dirty runs (#16520) · 11a8ae06
      kegsay authored
      * complement: enable dirty runs
      
      * Add changelog
      
      * Set a low connpool limit when running in Complement
      
      Dirty runs can cause many containers to be running concurrently,
      which seems to easily exhaust resources on the host. The increased
      speedup from dirty runs also seems to use more db connections on
      workers, which are misconfigured currently to have
      `SUM(workers * cp_max) > max_connections`, causing
      ```
      FATAL:  sorry, too many clients already
      ```
      which results in tests failing.
      
      * Try p=2 concurrency to restrict slowness of servers which causes partial state join tests to flake
      
      * Debug logging
      
      * Only run flakey tests
      
      * Only adjust connection pool limits in worker mode
      
      * Move cp vars to somewhere where they get executed in CI
      
      * Move cp values back to where they actually work
      
      * Debug logging
      
      * Try p=1 to see if this makes worker mode happier
      
      * Remove debug logging
      Unverified
      11a8ae06
  30. Sep 15, 2023
  31. Sep 08, 2023
  32. Sep 07, 2023
  33. Aug 15, 2023
  34. Jul 11, 2023
  35. Jul 05, 2023
Loading