Make the e2e test use docker in the same way all the others do.
All checks were successful
Tests / Build and Push CICD Base Image (push) Successful in 7m57s
Tests / Build and Push CICD Complete Image (push) Successful in 24m1s
Tests / End of File Check (push) Successful in 52m35s
Tests / TOML Formatting Check (push) Successful in 54s
Tests / Ruff Linting (push) Successful in 1m2s
Tests / Ruff Format Check (push) Successful in 40s
Tests / YAML Syntax Check (push) Successful in 57m17s
Tests / Pyright Type Check (push) Successful in 1m28s
Tests / Darglint Docstring Check (push) Successful in 1m7s
Tests / No Docstring Types Check (push) Successful in 38s
Tests / ESLint Check (push) Successful in 1m13s
Tests / Prettier Format Check (push) Successful in 52s
Tests / TypeScript Type Check (push) Successful in 1m21s
Tests / Backend Tests (push) Successful in 1m5s
Tests / TSDoc Lint Check (push) Successful in 1m15s
Tests / Frontend Tests (push) Successful in 1m33s
Tests / Backend Doctests (push) Successful in 40s
Tests / Integration Tests (push) Successful in 1m4s
Tests / End-to-End Tests (push) Successful in 5m14s
Tests / Trailing Whitespace Check (push) Successful in 1h6m1s
Tests / Mixed Line Ending Check (push) Successful in 57m10s
Tests / TOML Syntax Check (push) Successful in 1h10m18s

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-11-03 08:40:19 -05:00
parent bf1f3f30df
commit b9c6b604b1

View File

@@ -606,36 +606,8 @@ jobs:
run: |
echo "=== Network-Resilient E2E Test Execution ==="
# Enhanced resilient docker pull with aggressive retry logic
export DOCKER_CLI_EXPERIMENTAL=enabled
IMAGE_NAME="dogar.darkhelm.org/darkhelm.org/plex-playlist/cicd:${GITHUB_SHA:-latest}"
for i in 1 2 3 4 5; do
echo "Enhanced Docker pull attempt $i/5..."
echo "Target image: $IMAGE_NAME"
if timeout 1200 docker pull --platform linux/amd64 "$IMAGE_NAME"; then
echo "✓ Docker pull successful after $i attempts"
break
else
if [ $i -eq 5 ]; then
echo "❌ All enhanced docker pull attempts failed"
echo "Final attempt: Trying without platform specification..."
if timeout 1200 docker pull "$IMAGE_NAME"; then
echo "✓ Docker pull successful without platform specification"
break
else
echo "❌ Final fallback pull also failed"
exit 1
fi
fi
echo "⚠ Enhanced pull attempt $i failed, cleaning up and retrying in 30s..."
# Clean up partial downloads and free space
docker system prune -f --volumes 2>/dev/null || true
docker rmi "$IMAGE_NAME" 2>/dev/null || true
sleep 30
fi
done
# Use the same simple approach as all other successful tests
docker pull dogar.darkhelm.org/darkhelm.org/plex-playlist/cicd:${GITHUB_SHA:-latest}
# Run E2E tests with network resilience
docker run --rm -e CI=true dogar.darkhelm.org/darkhelm.org/plex-playlist/cicd:${GITHUB_SHA:-latest} bash -c "