From f0bfc103ba0d7af74cbf67cf7d3de6ccf616e89e Mon Sep 17 00:00:00 2001 From: ytimocin Date: Tue, 9 Jan 2024 23:21:05 -0800 Subject: [PATCH] Updating the Radius installation step of the long-haul workflow Signed-off-by: ytimocin --- .github/workflows/long-running-azure.yaml | 24 +++++++++++++++---- .../validating-webhook-configuration.yaml | 1 - deploy/Chart/templates/ucp/apiservice.yaml | 1 - 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/long-running-azure.yaml b/.github/workflows/long-running-azure.yaml index 5a73d95ef0..6090bbbf86 100644 --- a/.github/workflows/long-running-azure.yaml +++ b/.github/workflows/long-running-azure.yaml @@ -86,6 +86,9 @@ env: # Radius test environment name RADIUS_TEST_ENVIRONMENT_NAME: 'kind-radius' + # The current GitHub action link + ACTION_LINK: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' + jobs: build: name: Build Radius for test @@ -388,10 +391,6 @@ jobs: rad env create ${{ env.RADIUS_TEST_ENVIRONMENT_NAME }} --namespace default rad env switch ${{ env.RADIUS_TEST_ENVIRONMENT_NAME }} - # Temporary workaround to fix the x509 certificate error in the controller. - # https://github.com/radius-project/radius/issues/6989 - kubectl delete secrets controller-cert -n radius-system --ignore-not-found - echo "*** Configuring Azure provider ***" rad env update ${{ env.RADIUS_TEST_ENVIRONMENT_NAME }} --azure-subscription-id ${{ secrets.INTEGRATION_TEST_SUBSCRIPTION_ID }} \ --azure-resource-group ${{ env.AZURE_TEST_RESOURCE_GROUP }} @@ -480,3 +479,20 @@ jobs: - name: Clean up cluster if: always() run: ./.github/scripts/cleanup-cluster.sh + report-failure: + name: Report test failure + needs: [build, tests] + runs-on: ubuntu-latest + if: failure() && github.repository == 'radius-project/radius' + steps: + - name: Create failure issue for failing long running test run + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GH_RAD_CI_BOT_PAT }} + script: | + github.rest.issues.create({ + ...context.repo, + title: `Scheduled long running test failed - Run ID: ${context.runId}`, + labels: ['bug', 'test-failure'], + body: `## Bug information \n\nThis bug is generated automatically if the scheduled long running test fails. The Radius long running test operates on a schedule of every 2 hours everyday. It's important to understand that the test may fail due to workflow infrastructure issues, like network problems, rather than the flakiness of the test itself. For the further investigation, please visit [here](${process.env.ACTION_LINK}).` + }) diff --git a/deploy/Chart/templates/controller/validating-webhook-configuration.yaml b/deploy/Chart/templates/controller/validating-webhook-configuration.yaml index 93e8399b2b..5aa78833a9 100644 --- a/deploy/Chart/templates/controller/validating-webhook-configuration.yaml +++ b/deploy/Chart/templates/controller/validating-webhook-configuration.yaml @@ -13,7 +13,6 @@ metadata: labels: app.kubernetes.io/name: controller app.kubernetes.io/part-of: radius -type: kubernetes.io/tls data: tls.crt: {{ include "secrets.lookup" (dict "secret" "controller-cert" "namespace" .Release.Namespace "key" "tls.crt" "defaultValue" $cert.Cert) }} tls.key: {{ include "secrets.lookup" (dict "secret" "controller-cert" "namespace" .Release.Namespace "key" "tls.key" "defaultValue" $cert.Key) }} diff --git a/deploy/Chart/templates/ucp/apiservice.yaml b/deploy/Chart/templates/ucp/apiservice.yaml index df5c3f046b..946590dcb0 100644 --- a/deploy/Chart/templates/ucp/apiservice.yaml +++ b/deploy/Chart/templates/ucp/apiservice.yaml @@ -13,7 +13,6 @@ metadata: labels: app.kubernetes.io/name: ucp app.kubernetes.io/part-of: radius -type: kubernetes.io/tls data: tls.crt: {{ include "secrets.lookup" (dict "secret" "ucp-cert" "namespace" .Release.Namespace "key" "tls.crt" "defaultValue" $cert.Cert) }} tls.key: {{ include "secrets.lookup" (dict "secret" "ucp-cert" "namespace" .Release.Namespace "key" "tls.key" "defaultValue" $cert.Key) }}