Skip to content

CICD-315 · Database compatibility testing ​

Encyclopedia · Database delivery and migration · All snippets

Previous · CICD-314 · Next · CICD-316

1. Where it fits ​

  • Placement CI compatibility gate.
  • Prerequisites disposable database, migration tools and a scoped database role.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
./scripts/start-version.sh previous
pytest -q tests/db-compat
alembic upgrade head
pytest -q tests/db-compat

3. How it works ​

The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream. Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.

4. Verify the result ​

Assert the previous app still reads and writes after the expand migration. Test the new app separately before contract changes.

Validation syntax-validated (Bash parse). Status definitions.