Skip to content
Snippets Groups Projects
  1. Oct 06, 2021
  2. Apr 14, 2021
  3. Aug 05, 2020
  4. Jan 21, 2020
    • Brendan Abolivier's avatar
      Port synapse_port_db to async/await (#6718) · 07124d02
      Brendan Abolivier authored
      * Raise an exception if there are pending background updates
      
      So we return with a non-0 code
      
      * Changelog
      
      * Port synapse_port_db to async/await
      
      * Port update_database to async/await
      
      * Add version string to mocked homeservers
      
      * Remove unused imports
      
      * Convert overseen bits to async/await
      
      * Fixup logging contexts
      
      * Fix imports
      
      * Add a way to print an error without raising an exception
      
      * Incorporate review
      07124d02
  5. Dec 18, 2019
  6. Dec 10, 2019
  7. Dec 05, 2019
  8. Oct 30, 2019
  9. Oct 28, 2019
    • Brendan Abolivier's avatar
      Add CI for synapse_port_db (#6140) · 14504ad5
      Brendan Abolivier authored
      This adds:
      
      * a test sqlite database
      * a configuration file for the sqlite database
      * a configuration file for a postgresql database (using the credentials in `.buildkite/docker-compose.pyXX.pgXX.yaml`)
      
      as well as a new script named `.buildkite/scripts/test_synapse_port_db.sh` that:
      
      1. installs Synapse
      2. updates the test sqlite database to the latest schema and runs background updates on it
      3. creates an empty postgresql database
      4. run the `synapse_port_db` script to migrate the test sqlite database to the empty postgresql database (with coverage)
      
      Step `2` is done via a new script located at `scripts-dev/update_database`.
      
      The test sqlite database is extracted from a SyTest run, so that it can be considered as an actual homeserver's database with actual data in it.
      14504ad5
Loading