From 3f6d2f44f521da9ca7a520a26debfc2226a3f235 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Fri, 19 Jul 2024 18:36:28 +0000 Subject: [PATCH] tests.e2e.ansible: Fix to increase github rate limiting for kustomize This PR authenticates for github to increase the threshold for rate limiting while installing kustomize and avoid the random failures that are impacting several CIs. Signed-off-by: Gabriela Cervantes --- .github/workflows/ccruntime_e2e.yaml | 1 + tests/e2e/ansible/install_test_deps.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ccruntime_e2e.yaml b/.github/workflows/ccruntime_e2e.yaml index 3880e1f3..8fd6eec8 100644 --- a/.github/workflows/ccruntime_e2e.yaml +++ b/.github/workflows/ccruntime_e2e.yaml @@ -78,6 +78,7 @@ jobs: ./run-local.sh -t -r "${{ matrix.runtimeclass }}" "${args}" env: RUNNING_INSTANCE: ${{ matrix.instance }} + GITHUB_TOKEN: ${{ github.token }} - name: Take a post-action if: always() diff --git a/tests/e2e/ansible/install_test_deps.yaml b/tests/e2e/ansible/install_test_deps.yaml index 06d3d3e0..1062a7dd 100644 --- a/tests/e2e/ansible/install_test_deps.yaml +++ b/tests/e2e/ansible/install_test_deps.yaml @@ -39,7 +39,7 @@ ignore_errors: yes - name: Install kustomize shell: | - curl -s --retry 3 --retry-delay 10 "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash + curl -s --retry 3 --retry-delay 10 -u ${GITHUB_USER}:${GITHUB_TOKEN} "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash cp -f ./kustomize /usr/local/bin args: creates: /usr/local/bin/kustomize