From 42eb9714b462da073cfb3314937922b975909179 Mon Sep 17 00:00:00 2001 From: Yonggang Liu Date: Fri, 17 Nov 2023 21:31:41 -0500 Subject: [PATCH] HARMONY-1573: Try macos-13 runner image. --- .github/workflows/harmony-in-a-box.yml | 15 ++++++--------- bin/port-forward | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/harmony-in-a-box.yml b/.github/workflows/harmony-in-a-box.yml index db0f38e1f..ed54c8e0c 100644 --- a/.github/workflows/harmony-in-a-box.yml +++ b/.github/workflows/harmony-in-a-box.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: harmony-in-a-box: - runs-on: macos-latest + runs-on: macos-13 strategy: matrix: @@ -23,7 +23,7 @@ jobs: brew update brew install docker brew install kubectl - colima start --cpu 3 --memory 12 --with-kubernetes + colima start --cpu 3 --memory 10 --with-kubernetes - name: Install dependencies run: npm ci @@ -40,12 +40,6 @@ jobs: - name: Start harmony in a box run: KUBE_CONTEXT=colima bin/bootstrap-harmony - - name: debug pods 00 - run: kubectl -n harmony get pods - - - name: Wait 30s for the server to start - run: sleep 30 - - name: debug pods 1 run: kubectl -n harmony get pods @@ -53,7 +47,10 @@ jobs: run: sleep 300 - name: debug pods - run: kubectl -n harmony get pods + run: | + kubectl -n harmony get pods + example_pod=$(kubectl get pods -n harmony -l name=harmony-service-example | grep -v NAME | awk '{print $1;}') + kubectl -n harmony describe pod $example_pod - name: Check if harmony server is up run: | diff --git a/bin/port-forward b/bin/port-forward index 97cd4a004..de3987b0c 100755 --- a/bin/port-forward +++ b/bin/port-forward @@ -49,7 +49,7 @@ function start_port_forwarding() { kubectl -n harmony describe pod $harmony_pod fi - kubectl wait -n harmony --for=condition=ready pod -l app="$service_name" --timeout=360s + kubectl wait -n harmony --for=condition=ready pod -l app="$service_name" --timeout=600s nohup kubectl -n harmony port-forward "service/${service_name}" "${args[@]}" > "logs/port-forward-${service_name}.log" 2>&1 & echo "Port forwarding started for service: ${service_name}, port pairs: ${port_pairs[*]}" }