11name : Kurtosis Smoke Test
22
33on :
4+ schedule :
5+ - cron : ' 0 6 * * *'
46 workflow_dispatch :
57 inputs :
68 charon_image_tag :
2729 description : " Cluster lifetime in minutes (60-300)"
2830 required : false
2931 default : " 60"
30- type : string
32+ type : number
3133
3234concurrency :
3335 group : kurtosis-smoke-test
7577
7678 - name : Clone kurtosis-charon and install dependencies
7779 env :
78- KURTOSIS_BRANCH : ${{ inputs.branch }}
80+ KURTOSIS_BRANCH : ${{ inputs.branch || 'main' }}
7981 run : |
8082 git clone --depth 1 --branch "$KURTOSIS_BRANCH" \
8183 https://github.com/ObolNetwork/kurtosis-charon.git \
@@ -85,11 +87,11 @@ jobs:
8587 - name : Deploy Kurtosis clusters
8688 id : deploy
8789 env :
88- CHARON_VERSION : " obolnetwork/charon:${{ inputs.charon_image_tag }}"
90+ CHARON_VERSION : " obolnetwork/charon:${{ inputs.charon_image_tag || 'next' }}"
8991 KURTOSIS_MONITORING_TOKEN : ${{ secrets.KURTOSIS_MONITORING_TOKEN }}
90- KURTOSIS_BRANCH : ${{ inputs.branch }}
91- KURTOSIS_INSTANCE_TYPE : ${{ inputs.instance_type }}
92- LIFETIME_MINUTES : ${{ inputs.lifetime_minutes }}
92+ KURTOSIS_BRANCH : ${{ inputs.branch || 'main' }}
93+ KURTOSIS_INSTANCE_TYPE : ${{ inputs.instance_type || 'c6a.4xlarge' }}
94+ LIFETIME_MINUTES : ${{ inputs.lifetime_minutes || '60' }}
9395 run : |
9496 echo "deploy_start=$(date +%s)" >> "$GITHUB_OUTPUT"
9597 cd /tmp/kurtosis-charon/kurtosis-aws-runner
@@ -109,7 +111,7 @@ jobs:
109111
110112 - name : Wait for clusters to finish
111113 env :
112- LIFETIME_MINUTES : ${{ inputs.lifetime_minutes }}
114+ LIFETIME_MINUTES : ${{ inputs.lifetime_minutes || '60' }}
113115 run : |
114116 WAIT_SECONDS=$(( (LIFETIME_MINUTES + 5) * 60 ))
115117 echo "Waiting $((WAIT_SECONDS / 60)) minutes (${LIFETIME_MINUTES}m lifetime + 5m buffer)..."
@@ -120,10 +122,10 @@ jobs:
120122 env :
121123 OBOL_GRAFANA_API_TOKEN : ${{ secrets.OBOL_GRAFANA_API_TOKEN }}
122124 DEPLOY_START : ${{ steps.deploy.outputs.deploy_start }}
123- LIFETIME_MINUTES : ${{ inputs.lifetime_minutes }}
124- CHARON_IMAGE_TAG : ${{ inputs.charon_image_tag }}
125- KURTOSIS_BRANCH : ${{ inputs.branch }}
126- KURTOSIS_INSTANCE_TYPE : ${{ inputs.instance_type }}
125+ LIFETIME_MINUTES : ${{ inputs.lifetime_minutes || '60' }}
126+ CHARON_IMAGE_TAG : ${{ inputs.charon_image_tag || 'next' }}
127+ KURTOSIS_BRANCH : ${{ inputs.branch || 'main' }}
128+ KURTOSIS_INSTANCE_TYPE : ${{ inputs.instance_type || 'c6a.4xlarge' }}
127129 EXPECTED_CLUSTERS : ${{ steps.deploy.outputs.cluster_count }}
128130 run : |
129131 ALERT_FROM=$((DEPLOY_START + 20 * 60))
0 commit comments