From 5dc2ff94add75d59880781fb2d4550e4c79b2dd9 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..5652b108 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 ${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