diff --git a/.github/workflows/kind.yml b/.github/workflows/kind.yml index ce5c196eafe..d8ebe428265 100644 --- a/.github/workflows/kind.yml +++ b/.github/workflows/kind.yml @@ -390,7 +390,7 @@ jobs: path: log.tar.gz retention-days: 30 - test-e2e-flow-visibility: + test-e2e-flow-visibility-ipv4: name: E2e tests on a Kind cluster on Linux for Flow Visibility needs: [build-antrea-coverage-image, build-flow-aggregator-coverage-image] runs-on: [ubuntu-latest] @@ -435,7 +435,81 @@ jobs: run: | mkdir log mkdir test-e2e-fa-coverage - ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-e2e-fa-coverage ./ci/kind/test-e2e-kind.sh --encap-mode encap --coverage --flow-visibility --ip-family dual + ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-e2e-fa-coverage ./ci/kind/test-e2e-kind.sh --encap-mode encap --coverage --flow-visibility + - name: Tar coverage files + run: tar -czf test-e2e-fa-coverage.tar.gz test-e2e-fa-coverage + - name: Upload coverage for test-e2e-fa-coverage + uses: actions/upload-artifact@v3 + with: + name: test-e2e-fa-coverage + path: test-e2e-fa-coverage.tar.gz + retention-days: 30 + - name: Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: '*.cov.out*' + flags: kind-e2e-tests + name: codecov-test-e2e-fa + directory: test-e2e-fa-coverage + fail_ci_if_error: ${{ github.event_name == 'push' }} + - name: Tar log files + if: ${{ failure() }} + run: tar -czf log.tar.gz log + - name: Upload test log + uses: actions/upload-artifact@v3 + if: ${{ failure() }} + with: + name: e2e-kind-fa.tar.gz + path: log.tar.gz + retention-days: 30 + + test-e2e-flow-visibility-ipv6: + name: E2e tests on a Kind cluster on Linux for Flow Visibility + needs: [build-antrea-coverage-image, build-flow-aggregator-coverage-image] + runs-on: [ubuntu-latest] + steps: + - name: Free disk space + # https://github.com/actions/virtual-environments/issues/709 + run: | + sudo apt-get clean + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo rm -rf "/usr/local/lib/android" + df -h + - uses: actions/checkout@v4 + with: + show-progress: false + - uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' + - name: Download Antrea image from previous job + uses: actions/download-artifact@v3 + with: + name: antrea-ubuntu-cov + - name: Load Antrea image + run: | + docker load -i antrea-ubuntu.tar + - name: Download Flow Aggregator image from previous job + uses: actions/download-artifact@v3 + with: + name: flow-aggregator-cov + - name: Load Flow Aggregator image + run: | + docker load -i flow-aggregator.tar + - name: Install Kind + run: | + KIND_VERSION=$(head -n1 ./ci/kind/version) + curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-$(uname)-amd64 + chmod +x ./kind + sudo mv kind /usr/local/bin + - name: Run e2e tests + run: | + mkdir log + mkdir test-e2e-fa-coverage + ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-e2e-fa-coverage ./ci/kind/test-e2e-kind.sh --encap-mode encap --coverage --flow-visibility --ip-family v6 - name: Tar coverage files run: tar -czf test-e2e-fa-coverage.tar.gz test-e2e-fa-coverage - name: Upload coverage for test-e2e-fa-coverage