From 6a9c5e568c49b7135d37fe4d9b15b0acdd423d93 Mon Sep 17 00:00:00 2001 From: Karel Suta Date: Mon, 20 May 2024 21:31:28 +0200 Subject: [PATCH] Use native gRPC resolver in PR check for local interactive This resolver is compatible with dnsmasq used for dynamic hostnames in KinD. --- .github/workflows/e2e_tests.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/e2e_tests.yaml b/.github/workflows/e2e_tests.yaml index 0283c472d..c742e5066 100644 --- a/.github/workflows/e2e_tests.yaml +++ b/.github/workflows/e2e_tests.yaml @@ -76,6 +76,12 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up specific Python version + uses: actions/setup-python@v5 + with: + python-version: '3.9' + cache: 'pip' # caching pip dependencies + - name: Setup and start KinD cluster uses: ./common/github-actions/kind @@ -114,6 +120,8 @@ jobs: kubectl create clusterrolebinding sdk-user-clusterqueue-creator --clusterrole=clusterqueue-creator --user=sdk-user kubectl create clusterrole localqueue-creator --verb=get,list,create,delete,patch --resource=localqueues kubectl create clusterrolebinding sdk-user-localqueue-creator --clusterrole=localqueue-creator --user=sdk-user + kubectl create clusterrole list-secrets --verb=get,list --resource=secrets + kubectl create clusterrolebinding sdk-user-list-secrets --clusterrole=list-secrets --user=sdk-user kubectl config use-context sdk-user - name: Run e2e tests @@ -126,6 +134,8 @@ jobs: poetry install --with test,docs echo "Running e2e tests..." poetry run pytest -v -s ./tests/e2e -m kind > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1 + env: + GRPC_DNS_RESOLVER: "native" - name: Switch to kind-cluster context to print logs if: always() && steps.deploy.outcome == 'success'