ucfopen / Materia

Engage students with easily embedded apps for online courses. Supercharge your course with compelling experiences and game mechanics.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
36 stars 33 forks source link

docker-compose v2 causes the test suite to drop the primary database (!!!) #1454

Closed clpetersonucf closed 11 months ago

clpetersonucf commented 1 year ago

We're using a test override of the docker-compose.yml file when running the test suite, either manually via the run_tests.sh script or during the pre-commit hook. The primary purpose of the override is to set the database environment variables to use the test database instead of materia, which is truncated, reset, and repopulated prior to running the suite. For one reason or another, that behavior is not happening correctly with compose v2. Despite FuelPHP confirming that the test db is currently in use prior to truncating tables, the materia db is either truncated or completely missing after the test suite runs.

Note: there is a time limit for this issue. Compose v1 is being deprecated at the end of June 2023.

clpetersonucf commented 1 year ago

Some recommendations from the team to consider:

clpetersonucf commented 11 months ago

Addressed via https://github.com/ucfopen/Materia/pull/1500/commits/d3c17a084087f486c778db562767b3651e4ecb33