mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-12 10:35:06 +08:00
## Summary Wait for the benchmark worker pool deployment to roll out before returning from `benchmarking/workloads/deploy.sh`, preventing downstream suites from racing against unready workers. ## Key Changes - **Rollout Wait:** Added `kubectl wait --for=create` followed by `kubectl rollout status` on `deployment/benchmark-ateom` in `benchmarking/workloads/deploy.sh`. - **Configurable Timeout:** Added `--wait-timeout DURATION` flag (default: `300s`) to `workloads/deploy.sh` and forwarded it through `deploy_locust.sh`. - **Validation:** Added duration regex validation (`^([0-9]+(h|m|s))+$`) to catch invalid formats/missing units early. ## Testing - Verified successful rollout wait on GKE: `deploy.sh --deploy --worker-count 2 --wait-timeout 300s` - Verified timeout failure handling: `deploy.sh --deploy --worker-count 5 --wait-timeout 1s` - Verified flag validation rejects invalid formats (`180`, `0`, `invalid`).