Skip to content

Commit

Permalink
Try #6464:
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemesh-bors[bot] authored Nov 18, 2024
2 parents f4de865 + 16a48ea commit 39ff4ca
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/systest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@ jobs:
- name: Configure kubectl
run: gcloud container clusters get-credentials ${{ secrets.CI_CLUSTER_NAME }} --region ${{ secrets.CI_REGION_NAME }} --project ${{ secrets.CI_GCP_PROJECT_ID }}

- name: Create Node Pool
run: |
NODE_POOL_NAME="systemtest-${{ github.run_id }}"
gcloud container node-pools create $NODE_POOL_NAME \
--cluster ${{ secrets.CI_CLUSTER_NAME }} \
--num-nodes 8 \
--preemptible \
--machine-type ${{ CI_NODE_MACHINE_TYPE }} \
--disk-type pd-ssd \
--disk-size 300GB \
--image-type COS_CONTAINERD \
--enable-autorepair \
--no-enable-autoupgrade \
--node-labels env=dev,cluster=${{ secrets.CI_CLUSTER_NAME }},pipeline-id=${{ github.run_id }} \
--metadata disable-legacy-endpoints=true \
--service-account ${{ secrets.CI_GKE_NODEPOOL_SA }} \
--quiet
echo "Node pool created: $NODE_POOL_NAME"
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -138,7 +160,7 @@ jobs:
env:
test_id: systest-${{ steps.vars.outputs.sha_short }}
storage: premium-rwo=10Gi
node_selector: cloud.google.com/gke-nodepool=systemtest
node_selector: pipeline-id=${{ github.run_id }}
size: 20
bootstrap: 4m
level: ${{ inputs.log_level }}
Expand All @@ -151,6 +173,16 @@ jobs:
env:
test_id: systest-${{ steps.vars.outputs.sha_short }}
run: make -C systest clean

- name: Delete Node Pool
if: always()
run: |
NODE_POOL_NAME="systemtest-${{ github.run_id }}"
gcloud container node-pools delete $NODE_POOL_NAME \
--cluster ${{ secrets.CI_CLUSTER_NAME }} \
--location ${{ secrets.CI_REGION_NAME }} \
--quiet
echo "Node pool deleted: $NODE_POOL_NAME"
systest-status:
if: always()
Expand Down

0 comments on commit 39ff4ca

Please sign in to comment.