Skip to content

Commit 69b06ee

Browse files
committed
CI: add temporary logging for CI strangeness
1 parent c52ec45 commit 69b06ee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/multitenancy.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule AshPostgres.MultiTenancy do
2121
repo.config(),
2222
prefix: tenant_name
2323
)
24+
|> tap(fn v -> Logger.warning(inspect(v, label: "ensure migraitons result")) end)
2425

2526
[tenant_migrations_path, "**", "*.exs"]
2627
|> Path.join()
@@ -39,6 +40,7 @@ defmodule AshPostgres.MultiTenancy do
3940
|> Enum.map(&extract_migration_info/1)
4041
|> Enum.filter(& &1)
4142
|> Enum.map(&load_migration!/1)
43+
|> tap(fn v -> Logger.warning(inspect(v, label: "migrations")) end)
4244
|> Enum.each(fn {version, mod} ->
4345
Ecto.Migration.Runner.run(
4446
repo,
@@ -51,8 +53,10 @@ defmodule AshPostgres.MultiTenancy do
5153
all: true,
5254
prefix: tenant_name
5355
)
56+
|> tap(fn v -> Logger.warning(inspect(v, label: "run result")) end)
5457

5558
Ecto.Migration.SchemaMigration.up(repo, repo.config(), version, prefix: tenant_name)
59+
|> tap(fn v -> Logger.warning(inspect(v, label: "schema run result")) end)
5660
end)
5761
end
5862

test/dev_migrations_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ defmodule AshPostgres.DevMigrationsTest do
220220
"priv/dev_test_repo/migrations",
221221
after_file
222222
)
223+
|> tap(fn v -> Logger.warning(inspect(v, label: "result")) end)
223224
end
224225

225226
defp tenant_migrate do
@@ -229,6 +230,7 @@ defmodule AshPostgres.DevMigrationsTest do
229230
AshPostgres.DevTestRepo,
230231
"priv/dev_test_repo/tenant_migrations"
231232
)
233+
|> tap(fn v -> Logger.warning(inspect(v, label: "result")) end)
232234
end
233235
end
234236
end

0 commit comments

Comments
 (0)