diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 37fcd06fa5..7e2846dbd1 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -55,7 +55,17 @@ jobs: export INTEGRATION_CONFIG_PATH=$(pwd)/.github/config/integration.config.json python packages/python/beagle/main.py test -avi - - name: Stop and Remove Containers + - name: Neo4j Debug Logs + if: failure() + run: | + docker-compose -f docker-compose.testing.yml exec -T testgraph cat /logs/debug.log + + - name: Postgres Debug Logs + if: failure() run: | + docker-compose -f docker-compose.testing.yml logs testdb + - name: Stop and Remove Containers + if: ${{ ! cancelled() }} + run: | docker-compose -f docker-compose.testing.yml down diff --git a/docker-compose.testing.yml b/docker-compose.testing.yml index 259fc61687..cc052ce963 100644 --- a/docker-compose.testing.yml +++ b/docker-compose.testing.yml @@ -19,6 +19,7 @@ services: testdb: restart: unless-stopped image: docker.io/library/postgres:13.2 + command: "-c log_statement=all" environment: - POSTGRES_USER=bloodhound - POSTGRES_PASSWORD=bloodhoundcommunityedition @@ -33,7 +34,8 @@ services: image: neo4j:4.4.0 environment: - NEO4J_AUTH=neo4j/bloodhoundcommunityedition - - NEO4J_dbms_security_auth__enabled:false + - NEO4J_dbms_security_auth__enabled=false + - NEO4J_server_logs_debug_enabled=true ports: - 127.0.0.1:37687:7687 - 127.0.0.1:37474:7474