Lotta Supply

Development Log

Back to all entries

Enhanced Test Stability and CI Performance

Significant improvements were made to our testing infrastructure, focusing on the speed and reliability of our per-run isolated databases. By cloning a pre-migrated template instead of running full migrations for each test, we have drastically reduced the time required for test setup, making development cycles faster. This change also enhances stability by ensuring a consistent and fully migrated database state for every test run.

We also addressed several critical issues within the template provisioning system. These fixes ensure the template database is correctly built and hardened against interruptions, preventing potential data corruption or stale states. Furthermore, robustness checks were implemented to guarantee template integrity across different test configurations and concurrent operations, further solidifying our testing environment.

The Continuous Integration pipeline has been enhanced with the addition of the API integration suite running on ephemeral PostgreSQL instances. This allows for more comprehensive automated testing directly within the CI environment, catching regressions earlier. The workflow has been further optimized with updated dependencies, refined path filtering, and adjusted timeouts to improve efficiency and reduce unnecessary test runs for documentation or UI-only changes.

View source activity

Commits (2)

  • perf(test): clone a migrated template instead of migrating each run (LOT-218) (#288)
  • feat(ci): run API integration suite on ephemeral Postgres (LOT-217) (#287)

Pull Requests (2)

  • #288: perf(test): clone a migrated template instead of migrating each run (LOT-218)
  • #287: feat(ci): run API integration suite on ephemeral Postgres (LOT-217)