From 584a6637bc1941ee3b63cf998b937097a531f831 Mon Sep 17 00:00:00 2001 From: Hank Bob Date: Thu, 7 May 2026 06:49:00 +0700 Subject: [PATCH] ci: remove racing deploy-dev-coordinator workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cloud Build (deploy/gcp/cloudbuild.yaml) already deploys the coordinator on the same trigger (push to master touching coordinator/** or deploy/gcp/**). Having both paths active creates a race condition where two CI systems simultaneously deploy to the same dev VM — see #115. --- .github/workflows/deploy-dev-coordinator.yml | 57 -------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/workflows/deploy-dev-coordinator.yml diff --git a/.github/workflows/deploy-dev-coordinator.yml b/.github/workflows/deploy-dev-coordinator.yml deleted file mode 100644 index 0dc0cda608..0000000000 --- a/.github/workflows/deploy-dev-coordinator.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Deploy Dev Coordinator - -on: - push: - branches: [master] - paths: - - 'coordinator/**' - - 'deploy/gcp/**' - -jobs: - deploy: - name: Build & Deploy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 - with: - go-version-file: coordinator/go.mod - - - name: Cross-compile coordinator - run: | - cd coordinator - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /tmp/coordinator ./cmd/coordinator - - - name: Deploy to dev VM - env: - SSH_KEY: ${{ secrets.DEV_VM_SSH_KEY }} - VM_IP: ${{ secrets.DEV_VM_IP }} - run: | - mkdir -p ~/.ssh - echo "$SSH_KEY" > ~/.ssh/deploy_key - chmod 600 ~/.ssh/deploy_key - ssh-keyscan -t ed25519 "$VM_IP" >> ~/.ssh/known_hosts 2>/dev/null || true - - # Upload binary - scp -i ~/.ssh/deploy_key /tmp/coordinator "deploy@${VM_IP}:/tmp/coordinator-new" - - # Swap binary in running container and restart - ssh -i ~/.ssh/deploy_key "deploy@${VM_IP}" ' - sudo docker cp /tmp/coordinator-new d-inference-coordinator:/usr/local/bin/coordinator - sudo docker restart d-inference-coordinator - rm /tmp/coordinator-new - - # Wait for health - for i in $(seq 1 24); do - code=$(curl -sk -o /dev/null -w "%{http_code}" http://localhost:8080/health || true) - if [ "$code" = "200" ]; then - echo "Health check passed after $((i*5))s" - exit 0 - fi - echo "attempt $i: got $code" - sleep 5 - done - echo "Health check failed" - exit 1 - '