Skip to content

Commit

Permalink
Update Test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat authored Nov 5, 2023
1 parent ba50297 commit 7cbfe7a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,20 @@ jobs:
echo WORKLOAD $WORKLOAD
echo RUN $RUN
# bootstorm_vm_scale: no need redis for synchronization but need SCALE and THREADS_LIMIT
if [[ '${{ matrix.workload }}' == 'bootstorm_vm_scale' ]]
if [[ "${{ matrix.workload }}" == 'bootstorm_vm_scale' ]]
then
# Warm-up: Pull the Fedora image from quay.io for each node
echo ssh -t provision "podman run --rm -t -e WORKLOAD='$workload' -e KUBEADMIN_PASSWORD='$KUBEADMIN_PASSWORD' -e SCALE='$SCALE' -e SCALE_NODES=$SCALE_NODES -e REDIS='$REDIS' -e RUN_ARTIFACTS_URL='$RUN_ARTIFACTS_URL' -e BUILD_VERSION='$build_version' -e RUN_TYPE='$RUN_TYPE' -e KATA_CPUOFFLINE_WORKAROUND='True' -e SAVE_ARTIFACTS_LOCAL='False' -e ENABLE_PROMETHEUS_SNAPSHOT='$ENABLE_PROMETHEUS_SNAPSHOT' -e THREADS_LIMIT='$THREADS_LIMIT' -e WINDOWS_URL='$WINDOWS_URL' -e TIMEOUT='$TIMEOUT' -e log_level='INFO' -v '$CONTAINER_KUBECONFIG_PATH':'$CONTAINER_KUBECONFIG_PATH' --privileged 'quay.io/ebattat/benchmark-runner:latest'"
elif [[ '$WORKLOAD' == 'windows_vm' ]]
elif [[ "$WORKLOAD" == "windows_vm" ]]
then
case '${{ matrix.workload }}' in
'windows_vm_scale_windows10') WINDOWS_URL=$WORKLOAD ;;
'windows_vm_scale_windows11') WINDOWS_URL=$WORKLOAD ;;
'windows_vm_scale_windows_server_2019') WINDOWS_URL=$WORKLOAD ;;
'windows_vm_scale_windows_server_2022') WINDOWS_URL=$WORKLOAD ;;
case "${{ matrix.workload }}" in
"windows_vm_scale_windows10") WINDOWS_URL=$WORKLOAD ;;
"windows_vm_scale_windows11") WINDOWS_URL=$WORKLOAD ;;
"windows_vm_scale_windows_server_2019") WINDOWS_URL=$WORKLOAD ;;
"windows_vm_scale_windows_server_2022") WINDOWS_URL=$WORKLOAD ;;
*) echo "Unknown Windows scale workload ${{ matrix.workload }}"; exit 1 ;;
esac
# Warm-up: Load DV for Windows
echo ssh -t provision "podman run --rm -t -e WORKLOAD='$WORKLOAD' -e KUBEADMIN_PASSWORD='$KUBEADMIN_PASSWORD' -e SCALE='$SCALE' -e SCALE_NODES=$SCALE_NODES -e REDIS='$REDIS' -e RUN_ARTIFACTS_URL='$RUN_ARTIFACTS_URL' -e BUILD_VERSION='$build_version' -e RUN_TYPE='$RUN_TYPE' -e KATA_CPUOFFLINE_WORKAROUND='True' -e SAVE_ARTIFACTS_LOCAL='False' -e ENABLE_PROMETHEUS_SNAPSHOT='$ENABLE_PROMETHEUS_SNAPSHOT' -e THREADS_LIMIT='$THREADS_LIMIT' -e WINDOWS_URL='$WINDOWS_URL' -e TIMEOUT='$TIMEOUT' -e log_level='INFO' -v '$CONTAINER_KUBECONFIG_PATH':'$CONTAINER_KUBECONFIG_PATH' --privileged 'quay.io/ebattat/benchmark-runner:latest'"
echo windows $WINDOWS_URL
fi
fi
Expand Down

0 comments on commit 7cbfe7a

Please sign in to comment.