instedd / surveda

InSTEDD Surveda
https://instedd.org/technologies/surveda-mobile-surveys/
GNU General Public License v3.0
17 stars 6 forks source link

"[error] Elixir.Ask.Swoosh.Adapters.Test does not exist" message logged in tests #2312

Open matiasgarciaisaia opened 9 months ago

matiasgarciaisaia commented 9 months ago

As of 85e69e86e511e4a56360575803f9e20818987b69, when running the specs in the CI, we've seen a message like this one:

Run docker compose run --rm -e MIX_ENV=test app mix do compile --warnings-as-errors, ecto.create, ecto.load, test
  docker compose run --rm -e MIX_ENV=test app mix do compile --warnings-as-errors, ecto.create, ecto.load, test
  docker compose run --rm webpack yarn test
  docker compose run --rm webpack yarn webpack
  docker compose run --rm webpack yarn flow check
  docker compose run --rm webpack yarn eslint
  shell: /usr/bin/bash -e {0}
 Container surveda-db-1  Running
Compiling 207 files (.ex)
Error: 06:33:52.285 [error] Elixir.Ask.Swoosh.Adapters.Test does not exist
Generated ask app
The database for Ask.Repo has been created
06:33:59.595 [debug] QUERY OK db=0.4ms decode=1.2ms queue=1.9ms idle=0.0ms
SELECT true FROM information_schema.tables WHERE table_name = ? AND table_schema = DATABASE() LIMIT 1 ["schema_migrations"]
The structure for Ask.Repo has been loaded from /app/priv/repo/structure.sql
06:34:00.450 [info]  Migrations already up
[ ... ]

The error seems to be a bug in Swoosh, fixed in 1.11.4 (see swoosh/swoosh#792).