Skip to content

Commit

Permalink
chore: debug logging for test databases (#346)
Browse files Browse the repository at this point in the history
* feat: add debug logging to our testing databases and show them in our actions

* chore: fix up pipeline failures

* fix: use smarter condition checks
  • Loading branch information
superlinkx authored Jan 24, 2024
1 parent c97bf69 commit f8c2b83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion docker-compose.testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8c2b83

Please sign in to comment.