Skip to content

Commit 37140d8

Browse files
committed
DEBUG Redshift: Some network diagnostic
1 parent c99c49b commit 37140d8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/drivers-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,26 @@ jobs:
353353
if: |
354354
env.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '' && matrix.database == 'snowflake-export-bucket-s3-via-storage-integration-iam-roles'
355355
356+
- name: Network diagnostics for Redshift
357+
if: startsWith(matrix.database, 'redshift')
358+
run: |
359+
echo "=== Network diagnostics for Redshift ==="
360+
echo "Running DNS lookup for Redshift host..."
361+
nslookup ${DRIVERS_TESTS_CUBEJS_DB_REDSHIFT_HOST} || true
362+
echo ""
363+
echo "Running ping test (3 packets)..."
364+
ping -c 3 ${DRIVERS_TESTS_CUBEJS_DB_REDSHIFT_HOST} || true
365+
echo ""
366+
echo "Checking connectivity to Redshift port..."
367+
timeout 5 bash -c "</dev/tcp/${DRIVERS_TESTS_CUBEJS_DB_REDSHIFT_HOST}/5439" && echo "Port 5439 is reachable" || echo "Port 5439 is not reachable"
368+
echo ""
369+
echo "GitHub Runner IP address:"
370+
curl -s https://api.ipify.org
371+
echo ""
372+
echo "=== End network diagnostics ==="
373+
env:
374+
DRIVERS_TESTS_CUBEJS_DB_REDSHIFT_HOST: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_REDSHIFT_HOST }}
375+
356376
- name: Run tests
357377
uses: nick-fields/retry@v3
358378
# It's enough to test for any one secret because they are set all at once or not set all
@@ -364,6 +384,9 @@ jobs:
364384
DRIVERS_TESTS_CUBEJS_TRANSPILATION_NATIVE: false
365385
DRIVERS_TESTS_CUBEJS_TESSERACT_SQL_PLANNER: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.use_tesseract_sql_planner) || matrix.use_tesseract_sql_planner }}
366386

387+
# Enable debugging for pg driver for Redshift tests
388+
DEBUG: ${{ startsWith(matrix.database, 'redshift') && 'pg:*' || 'testcontainers' }}
389+
367390
# Athena
368391
DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }}
369392
DRIVERS_TESTS_ATHENA_CUBEJS_AWS_SECRET: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_SECRET }}

0 commit comments

Comments
 (0)