Browse Source

ci: add comprehensive failure diagnostics

- Add container status (docker compose ps -a) on startup failure
- Add detailed logs for all three services (master, volume, filer)
- Add container inspection to verify binary exists
- Add debugging info for spark-example job
- Helps diagnose startup failures before containers are torn down
pull/7526/head
chrislu 7 days ago
parent
commit
a61af2989c
  1. 32
      .github/workflows/spark-integration-tests.yml

32
.github/workflows/spark-integration-tests.yml

@ -150,7 +150,21 @@ jobs:
fi fi
if [ $i -eq 30 ]; then if [ $i -eq 30 ]; then
echo "✗ SeaweedFS failed to start after 60 seconds" echo "✗ SeaweedFS failed to start after 60 seconds"
docker compose logs
echo ""
echo "=== Container Status ==="
docker compose ps -a
echo ""
echo "=== Master Container Logs ==="
docker compose logs seaweedfs-master
echo ""
echo "=== Volume Container Logs ==="
docker compose logs seaweedfs-volume
echo ""
echo "=== Filer Container Logs ==="
docker compose logs seaweedfs-filer
echo ""
echo "=== Inspecting master container ==="
docker compose exec -T seaweedfs-master ls -la /usr/bin/weed || echo "Failed to inspect container"
exit 1 exit 1
fi fi
echo "Waiting... ($i/30)" echo "Waiting... ($i/30)"
@ -258,9 +272,11 @@ jobs:
- name: Prepare SeaweedFS binary - name: Prepare SeaweedFS binary
run: | run: |
echo "Copying SeaweedFS binary to docker directory..." echo "Copying SeaweedFS binary to docker directory..."
ls -la build-artifacts/docker/
cp build-artifacts/docker/weed docker/ cp build-artifacts/docker/weed docker/
chmod +x docker/weed chmod +x docker/weed
ls -la docker/weed ls -la docker/weed
file docker/weed
echo "✓ Binary is ready" echo "✓ Binary is ready"
- name: Cache Apache Spark - name: Cache Apache Spark
@ -287,6 +303,7 @@ jobs:
working-directory: test/java/spark working-directory: test/java/spark
run: | run: |
echo "Starting SeaweedFS with Docker Compose..." echo "Starting SeaweedFS with Docker Compose..."
docker compose build --no-cache
docker compose up -d seaweedfs-master seaweedfs-volume seaweedfs-filer docker compose up -d seaweedfs-master seaweedfs-volume seaweedfs-filer
echo "Waiting for SeaweedFS filer to be ready..." echo "Waiting for SeaweedFS filer to be ready..."
@ -297,7 +314,18 @@ jobs:
fi fi
if [ $i -eq 30 ]; then if [ $i -eq 30 ]; then
echo "✗ SeaweedFS failed to start after 60 seconds" echo "✗ SeaweedFS failed to start after 60 seconds"
docker compose logs
echo ""
echo "=== Container Status ==="
docker compose ps -a
echo ""
echo "=== Master Container Logs ==="
docker compose logs seaweedfs-master
echo ""
echo "=== Volume Container Logs ==="
docker compose logs seaweedfs-volume
echo ""
echo "=== Filer Container Logs ==="
docker compose logs seaweedfs-filer
exit 1 exit 1
fi fi
echo "Waiting... ($i/30)" echo "Waiting... ($i/30)"

Loading…
Cancel
Save