diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-06 17:08:50 -0800 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2025-12-06 17:08:50 -0800 |
| commit | 277fb80de1ebf4ba71669d4948de63c8f75ea466 (patch) | |
| tree | 4caee272d2a045220bf8aaee04d5cc41db2e16c6 | |
| parent | 32b514bfe2ac46846c3082174fb0128a91f3aa79 (diff) | |
| download | seaweedfs-csi-driver-277fb80de1ebf4ba71669d4948de63c8f75ea466.tar.xz seaweedfs-csi-driver-277fb80de1ebf4ba71669d4948de63c8f75ea466.zip | |
fix: simplify SeaweedFS readiness check in integration testorigin/feat/mount-service-separation
- Reduce volumeSizeLimitMB from 64 to 16 for faster volume allocation
- Trust the readiness probe instead of redundant manual wget check
(pod 1/1 Ready means filer port 8888 is responding)
- Use 'kubectl wait --for=condition=ready pod' which is more reliable
- Add brief 5s stabilization delay after readiness
| -rw-r--r-- | .github/workflows/integration_test.yaml | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml index 79140ed..02b2134 100644 --- a/.github/workflows/integration_test.yaml +++ b/.github/workflows/integration_test.yaml @@ -92,7 +92,7 @@ jobs: - -filer - -master.peers=none - -volume.max=10 - - -master.volumeSizeLimitMB=64 + - -master.volumeSizeLimitMB=16 ports: - containerPort: 9333 - containerPort: 8080 @@ -116,26 +116,14 @@ jobs: emptyDir: {} EOF - # Wait for SeaweedFS deployment to be available - kubectl wait --for=condition=available --timeout=180s deployment/seaweedfs -n seaweedfs + # Wait for SeaweedFS pod to be ready (readiness probe checks filer port 8888) + echo "Waiting for SeaweedFS to be ready..." + kubectl wait --for=condition=ready pod -l app=seaweedfs -n seaweedfs --timeout=180s kubectl get pods -n seaweedfs - # Wait for SeaweedFS filer to be responsive (readiness probe ensures this) - echo "Waiting for SeaweedFS filer to be ready..." - for i in {1..60}; do - if kubectl exec -n seaweedfs deploy/seaweedfs -- wget -q -O- http://localhost:8888/ 2>/dev/null; then - echo "SeaweedFS filer is ready" - exit 0 - fi - echo "Waiting for filer... ($i/60)" - sleep 3 - done - echo "SeaweedFS filer did not become ready in time" - echo "=== Pod Status ===" - kubectl get pods -n seaweedfs -o wide - echo "=== Pod Logs ===" - kubectl logs -n seaweedfs -l app=seaweedfs --tail=100 - exit 1 + # Brief additional wait for internal services to stabilize + sleep 5 + echo "SeaweedFS is ready" - name: Deploy CSI Driver run: | |
