Skip to content

Commit

Permalink
DEBUG: run only problematic e2e test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-dp committed Apr 25, 2024
1 parent 47669e4 commit 4b861d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: electric-e2e-8-32
strategy:
matrix:
write_to_pg_mode: [logical_replication, direct_writes]
write_to_pg_mode: [logical_replication]
defaults:
run:
working-directory: e2e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ defmodule Electric.Satellite.ClientReconnectionInfo do
advance_up_to_new_wal_pos(graph, advance_graph_fn, client_id, txn_stream)

Logger.debug(
"Advancing graph for #{inspect(client_id)} from #{inspect(acked_wal_pos)} to #{inspect(new_wal_pos)} by #{count} txns"
"Advancing graph for #{inspect(client_id)} from #{inspect(acked_wal_pos)} to #{inspect(new_wal_pos)} by #{count} txns - discarded acc is: #{inspect(discarded_acc)}"
)

if map_size(pending_actions) > 0 do
Expand All @@ -350,6 +350,10 @@ defmodule Electric.Satellite.ClientReconnectionInfo do
{new_graph, discarded_acc} =
advance_by_additional_data(new_graph, client_id, received_data, discarded_acc)

Logger.debug(
"Discarded acc: #{inspect(discarded_acc)}"
)

Client.pooled_transaction(origin, fn ->
delete_discarded_cache_entries(discarded_acc)
store_client_checkpoint(client_id, new_wal_pos, new_graph)
Expand Down
6 changes: 4 additions & 2 deletions e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ deps: lux
make -C elixir_client build
make -C prisma_example build

test_sqlite_and_pg: test_only
make -C tests test_pg
test_sqlite_and_pg:
make -C tests debug_pg
#test_sqlite_and_pg: test_only
# make -C tests test_pg

test_only:
${LUX} --junit tests
Expand Down
5 changes: 4 additions & 1 deletion e2e/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ test:
${LUX} *.lux

test_pg:
DIALECT=Postgres ${LUX} 03.*.lux
DIALECT=Postgres ${LUX} 03.*.lux

debug_pg:
DIALECT=Postgres ${LUX} 03.25_*.lux

0 comments on commit 4b861d7

Please sign in to comment.