mirror of
https://github.com/hanzoai/s3.git
synced 2026-10-30 14:59:09 +00:00
Full internal rename — build-verified, every module green (root + s3-rdma-sidecar
+ telemetry/server + all test modules):
- Dirs: weed/→s3/ (main tree); cmd/weed-{db,sql}→cmd/s3-{db,sql};
seaweed-volume→s3-volume; seaweedfs-rdma-sidecar→s3-rdma-sidecar;
s3/mount/weedfs_*.go→s3fs_*.go (~113 path renames).
- Imports: github.com/hanzoai/s3/weed/ → /s3/ across 1700+ files.
- gRPC proto services Seaweed/SeaweedFiler/SeaweedMessaging/... → Hanzo*
(8 services) via full protoc regeneration (correct descriptors, no sed-corruption).
- Brand SeaweedFS/Seaweed/seaweed → Hanzo/hanzo; internal X-Seaweedfs-* headers
→ X-Hanzo-*; .seaweedfs config dir → .s3.
- CLI is `s3`: go install github.com/hanzoai/s3/s3@latest | make install | Docker.
install.sh rewritten as a Hanzo S3 installer.
- External forks github.com/seaweedfs/{raft,go-fuse,goexif,cockroachdb-parser}
kept verbatim — immutable third-party module paths; NOTICE retained.
Residual (cosmetic, non-build): kafka loadtest test-proto package com.seaweedfs.loadtest.
73 lines
2.5 KiB
Bash
Executable File
73 lines
2.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "🧪 Testing Hanzo Admin-Worker Integration"
|
|
echo "============================================="
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m' # No Color
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo -e "${BLUE}1. Validating docker-compose configuration...${NC}"
|
|
if docker-compose -f docker-compose-ec-test.yml config > /dev/null; then
|
|
echo -e "${GREEN}✅ Docker compose configuration is valid${NC}"
|
|
else
|
|
echo -e "${RED}❌ Docker compose configuration is invalid${NC}"
|
|
exit 1
|
|
fi
|
|
|
|
echo -e "${BLUE}2. Checking if required ports are available...${NC}"
|
|
for port in 9333 8080 8081 8082 8083 8084 8085 8888 23646; do
|
|
if lsof -i :$port > /dev/null 2>&1; then
|
|
echo -e "${YELLOW}⚠️ Port $port is in use${NC}"
|
|
else
|
|
echo -e "${GREEN}✅ Port $port is available${NC}"
|
|
fi
|
|
done
|
|
|
|
echo -e "${BLUE}3. Testing worker command syntax...${NC}"
|
|
# Test that the worker command in docker-compose has correct syntax
|
|
if docker-compose -f docker-compose-ec-test.yml config | grep -q "workingDir=/work"; then
|
|
echo -e "${GREEN}✅ Worker working directory option is properly configured${NC}"
|
|
else
|
|
echo -e "${RED}❌ Worker working directory option is missing${NC}"
|
|
exit 1
|
|
fi
|
|
|
|
echo -e "${BLUE}4. Verifying admin server configuration...${NC}"
|
|
if docker-compose -f docker-compose-ec-test.yml config | grep -q "admin:23646"; then
|
|
echo -e "${GREEN}✅ Admin server port configuration is correct${NC}"
|
|
else
|
|
echo -e "${RED}❌ Admin server port configuration is incorrect${NC}"
|
|
exit 1
|
|
fi
|
|
|
|
echo -e "${BLUE}5. Checking service dependencies...${NC}"
|
|
if docker-compose -f docker-compose-ec-test.yml config | grep -q "depends_on"; then
|
|
echo -e "${GREEN}✅ Service dependencies are configured${NC}"
|
|
else
|
|
echo -e "${YELLOW}⚠️ Service dependencies may not be configured${NC}"
|
|
fi
|
|
|
|
echo ""
|
|
echo -e "${GREEN}🎉 Integration test configuration is ready!${NC}"
|
|
echo ""
|
|
echo -e "${BLUE}To start the integration test:${NC}"
|
|
echo " make start # Start all services"
|
|
echo " make health # Check service health"
|
|
echo " make logs # View logs"
|
|
echo " make stop # Stop all services"
|
|
echo ""
|
|
echo -e "${BLUE}Key features verified:${NC}"
|
|
echo " ✅ Official Hanzo images are used"
|
|
echo " ✅ Worker working directories are configured"
|
|
echo " ✅ Admin-worker communication on correct ports"
|
|
echo " ✅ Task-specific directories will be created"
|
|
echo " ✅ Load generator will trigger EC tasks"
|
|
echo " ✅ Monitor will track progress" |