Skip to content

Commit

Permalink
Use native gRPC resolver in PR check for local interactive
Browse files Browse the repository at this point in the history
This resolver is compatible with dnsmasq used for dynamic hostnames in KinD.
  • Loading branch information
sutaakar authored and openshift-merge-bot[bot] committed May 21, 2024
1 parent 890975e commit b782a4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit b782a4a

Please sign in to comment.