From 7a4858f8d2e7b977a7d42789f97e1224cb1c1eaa Mon Sep 17 00:00:00 2001 From: Alexis Romero Date: Fri, 26 May 2023 15:51:46 +0200 Subject: [PATCH] gh actions: enable ipv6 in docker containers --- .github/workflows/build-and-test-all.yml | 15 +++++++++++---- tasks.py | 1 - 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index 3e0c3fe1be..4db01a4994 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -28,7 +28,7 @@ jobs: SANITIZERS: asan+ubsan UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" UNIT_TESTS: yes - PDNS_TEST_NO_IPV6: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 outputs: clang-tidy-failed: ${{ steps.clang-tidy-annotations.outputs.failed }} steps: @@ -97,6 +97,7 @@ jobs: SANITIZERS: ${{ matrix.sanitizers }} UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" UNIT_TESTS: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 defaults: run: working-directory: ./pdns/recursordist/ @@ -168,6 +169,7 @@ jobs: SANITIZERS: ${{ matrix.sanitizers }} UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" UNIT_TESTS: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 defaults: run: working-directory: ./pdns/dnsdistdist/ @@ -231,6 +233,7 @@ jobs: ASAN_OPTIONS: detect_leaks=0 TSAN_OPTIONS: "halt_on_error=1:suppressions=${{ env.REPO_HOME }}/pdns/dnsdistdist/dnsdist-tsan.supp" AUTH_BACKEND_IP_ADDR: "172.17.0.1" + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 strategy: matrix: include: @@ -282,7 +285,7 @@ jobs: LDAPHOST: ldap://ldapserver/ ODBCINI: /github/home/.odbc.ini AUTH_BACKEND_IP_ADDR: "172.17.0.1" - SKIP_IPV6_TESTS: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 strategy: matrix: include: @@ -391,6 +394,7 @@ jobs: env: UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" ASAN_OPTIONS: detect_leaks=0 + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - uses: actions/checkout@v3 with: @@ -420,6 +424,7 @@ jobs: UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" ASAN_OPTIONS: detect_leaks=0 TSAN_OPTIONS: "halt_on_error=1:suppressions=${{ env.REPO_HOME }}/pdns/recursordist/recursor-tsan.supp" + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - uses: actions/checkout@v3 with: @@ -451,7 +456,7 @@ jobs: UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp' ASAN_OPTIONS: detect_leaks=0 TSAN_OPTIONS: "halt_on_error=1:suppressions=${{ env.REPO_HOME }}/pdns/recursordist/recursor-tsan.supp" - SKIP_IPV6_TESTS: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: # - uses: PowerDNS/pdns/set-ubuntu-mirror@meta - uses: actions/checkout@v3.1.0 @@ -485,6 +490,7 @@ jobs: UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp' ASAN_OPTIONS: detect_leaks=0 TSAN_OPTIONS: "halt_on_error=1:suppressions=${{ env.REPO_HOME }}/pdns/recursordist/recursor-tsan.supp" + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - uses: actions/checkout@v3 with: @@ -514,7 +520,7 @@ jobs: TSAN_OPTIONS: "halt_on_error=1:intercept_send=0:suppressions=${{ env.REPO_HOME }}/pdns/dnsdistdist/dnsdist-tsan.supp" # IncludeDir tests are disabled because of a weird interaction between TSAN and these tests which ever only happens on GH actions SKIP_INCLUDEDIR_TESTS: yes - SKIP_IPV6_TESTS: yes + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - uses: actions/checkout@v3 with: @@ -534,6 +540,7 @@ jobs: runs-on: ubuntu-20.04 container: image: ghcr.io/powerdns/base-pdns-ci-image/debian-11-pdns-base:master + options: --sysctl net.ipv6.conf.all.disable_ipv6=0 steps: - uses: actions/checkout@v3 with: diff --git a/tasks.py b/tasks.py index 426a428f3b..e78e0a5521 100644 --- a/tasks.py +++ b/tasks.py @@ -776,7 +776,6 @@ def test_auth_backend(c, backend): if os.getenv('SKIP_IPV6_TESTS'): pdns_auth_env_vars += ' context=noipv6' with c.cd('regression-tests.nobackend'): - c.run(f'echo {pdns_auth_env_vars}') c.run(f'{pdns_auth_env_vars} ./runtests') c.run('/opt/pdns-auth/bin/pdnsutil test-algorithms') return -- 2.47.2