mbox series

[v4,0/8] Test SQLite configuration

Message ID 20211209033843.205325-1-vicamo@gmail.com
Headers show
Series Test SQLite configuration | expand

Message

You-Sheng Yang Dec. 9, 2021, 3:38 a.m. UTC
This patchset tries to align database configurations between development
and production environment, as well as mysql/postgre/sqlite3 database
engines.

1. database configurations are now respect environment variables of the
same names across all scenarios.

2. drop deprecated startup arguments for docker containers.

3. add tests for supported docker container operations and updated
documentation, and finally extends CI test cases for sqlite3 engine.

Github workflow in
https://github.com/vicamo/patchwork/actions/runs/1557078482.

V2:
  * respect naming convention for DATABASE_PASSWORD.
  * remove database maintenance stuff from docker entrypoint script.
V3:
  * update documentation.
  * add testcases for supported docker container operations.
V4:
  * separate patches a bit more for easy reviews.
  * add releasenotes for user-facing changes.
  * add default value for DATABASE_NAME in docker entrypoint script.

You-Sheng Yang (8):
  settings: unify database connection variables
  settings: move database settings into base
  docker, tests: reference DATABASE_* as possible
  docker: remove deprecated startup arguments
  ci: test supported docker container operations
  docker: drop database maintenance stuff
  ci: add tests for sqlite3
  ci: randomize database credentials a bit

 .github/workflows/ci.yaml                     |  77 ++++++++----
 docker-compose-pg.yml                         |  15 +--
 docker-compose-sqlite3.yml                    |  19 +++
 docker-compose.yml                            |  12 +-
 docs/deployment/installation.rst              |   4 +-
 docs/development/installation.rst             |  27 ++--
 lib/uwsgi/patchwork.ini                       |   2 +-
 patchwork/settings/base.py                    |  39 ++++++
 patchwork/settings/dev.py                     |  28 +----
 patchwork/settings/production.example.py      |  17 ---
 ...se-maintenance-stuff-e3317975c1c53ade.yaml |   5 +
 ...ed-startup-arguments-768425c23b523d1e.yaml |   9 ++
 ...e-settings-into-base-f0d05cf75170d55f.yaml |   5 +
 ...connection-variables-ac716f59ee7b8b48.yaml |   7 ++
 tools/docker/Dockerfile                       |   2 +
 tools/docker/entrypoint.sh                    | 115 ++++++------------
 tox.ini                                       |   4 +-
 17 files changed, 214 insertions(+), 173 deletions(-)
 create mode 100644 docker-compose-sqlite3.yml
 create mode 100644 releasenotes/notes/docker-drop-database-maintenance-stuff-e3317975c1c53ade.yaml
 create mode 100644 releasenotes/notes/docker-remove-deprecated-startup-arguments-768425c23b523d1e.yaml
 create mode 100644 releasenotes/notes/settings-move-database-settings-into-base-f0d05cf75170d55f.yaml
 create mode 100644 releasenotes/notes/settings-unify-database-connection-variables-ac716f59ee7b8b48.yaml