diff --git a/.github/actions/e2e/setup-cluster/action.yaml b/.github/actions/e2e/setup-cluster/action.yaml index 6d3965e0ad67..705af5ef60c5 100644 --- a/.github/actions/e2e/setup-cluster/action.yaml +++ b/.github/actions/e2e/setup-cluster/action.yaml @@ -82,6 +82,7 @@ runs: PRIVATE_CLUSTER: ${{ inputs.private_cluster }} GIT_REF: ${{ inputs.git_ref }} run: | + echo "$GIT_REF" || $(git rev-parse --short "$GITHUB_SHA") # Create or Upgrade the cluster based on whether the cluster already exists cmd="create" eksctl get cluster --name "$CLUSTER_NAME" && cmd="upgrade" @@ -99,7 +100,7 @@ runs: github.com/run-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" testing/type: "e2e" testing/cluster: "$CLUSTER_NAME" - test/git_ref: "$GIT_REF" + test/git_ref: "$GIT_REF" || $(git rev-parse --short "$GITHUB_SHA") kubernetesNetworkConfig: ipFamily: "$IP_FAMILY" managedNodeGroups: @@ -188,12 +189,12 @@ runs: env: ACCOUNT_ID: ${{ inputs.account_id }} CLUSTER_NAME: ${{ inputs.cluster_name }} - GIT_REF: ${{ inputs.git_ref }} + GIT_REF: ${{ inputs.git_ref }} run: | oidc_id=$(aws eks describe-cluster --name "$CLUSTER_NAME" --query "cluster.identity.oidc.issuer" --output text | cut -d '/' -f 3,4,5) arn="arn:aws:iam::$ACCOUNT_ID:oidc-provider/${oidc_id}" aws iam tag-open-id-connect-provider --open-id-connect-provider-arn $arn \ - --tags Key=test/git_ref,Values="$GIT_REF" Key=testing/type,Value=e2e Key=testing/cluster,Value=$CLUSTER_NAME Key=github.com/run-url,Value=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + --tags Key=test/git_ref,Values="$GIT_REF" || $(git rev-parse --short "$GITHUB_SHA") Key=testing/type,Value=e2e Key=testing/cluster,Value=$CLUSTER_NAME Key=github.com/run-url,Value=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} - name: give KarpenterNodeRole permission to bootstrap shell: bash env: diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 4663ff732335..a97aaf1d8269 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -97,10 +97,10 @@ jobs: role-to-assume: arn:aws:iam::${{ vars.CI_ACCOUNT_ID }}:role/${{ vars.CI_ROLE_NAME }} aws-region: ${{ inputs.region }} role-duration-seconds: 21600 - - name: add jitter on cluster setup - run: | - # Creating jitter so that we can stagger cluster creation to avoid throttling - sleep $(( RANDOM % 300 + 1 )) + # - name: add jitter on cluster setup + # run: | + # # Creating jitter so that we can stagger cluster creation to avoid throttling + # sleep $(( RANDOM % 300 + 1 )) - id: generate-cluster-name name: generate cluster name env: