Run functional tests every 2 hours and add another workflow that runs…#1020
Conversation
238a9b7 to
f9bd925
Compare
| - name: Build images | ||
| if: steps.gen-id.outputs.RUN_TEST == 'true' && matrix.images != '' | ||
| run: | | ||
| # split images and directories into arrays | ||
| IFS=',' read -ra images <<< "${{ matrix.images }}" | ||
| IFS=',' read -ra directories <<< "${{ matrix.directories }}" | ||
| echo "Building images: $images" | ||
| echo "Directories: $directories" | ||
| for index in "${!images[@]}"; do | ||
| image=${images[$index]} | ||
| directory=${directories[$index]} | ||
| echo "Building image $image from directory $directory" | ||
| docker build -t ghcr.io/radius-project/$image:${{ github.run_id }} $directory | ||
| docker tag ghcr.io/radius-project/$image:${{ github.run_id }} ghcr.io/radius-project/$image:${{ github.run_id }} | ||
| # We need to think about how we can delete these images at the end of the run | ||
| docker push ghcr.io/radius-project/$image:${{ github.run_id }} | ||
| done |
There was a problem hiding this comment.
This is where we build the necessary images and push them to GHCR. Would love to get ideas on this approach. I see that for some tests we are using the latest tag but for some we are building images. What would the best approach be here?
| if: steps.gen-id.outputs.RUN_TEST == 'true' && steps.gen-id.outputs.ENABLE_DAPR == 'true' | ||
| run: | | ||
| helm repo add dapr https://dapr.github.io/helm-charts/ | ||
| helm upgrade --install dapr dapr/dapr --version=1.6 --namespace dapr-system --create-namespace --wait |
There was a problem hiding this comment.
Updated this so that if Dapr is installed there is no error.
36bf504 to
45d9032
Compare
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| AZURE_LOCATION: westus3 | ||
| AKS_RESOURCE_GROUP: samples-functional-tests | ||
| AKS_CLUSTER_NAME: samples-aks |
There was a problem hiding this comment.
@ytimocin If you use the existing aks cluster, workflow must clean up the existing resource first before starting the test. I recommend to add the code to delete namespace first before starting the test.
| aws eks update-kubeconfig --region ${{ env.AWS_REGION }} --name ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }} | ||
| timeout-minutes: 60 | ||
| continue-on-error: false | ||
| - name: Install Dapr |
There was a problem hiding this comment.
If you use /test/azure/ bicep template, dapr is installed and maintained by AKS. So I would disable this one for AKS cluster.
9a4526b to
a8f758f
Compare
e9cd591 to
f70e55c
Compare
f70e55c to
d77c6ba
Compare
… the tests on AKS instead of k3d Signed-off-by: ytimocin <ytimocin@microsoft.com>
Signed-off-by: ytimocin <ytimocin@microsoft.com>
… the tests on AKS instead of k3d
Goal:
We will be collecting data for a week to see if the flakiness can be caused by k3d cluster.