Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOTFORREIVEW] Compatibility Test #6249

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions .github/workflows/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,130 @@ jobs:
path: log.tar.gz
retention-days: 30

test-e2e-ipv6-ds:
name: E2e tests on a Ipv6 dual stack Kind cluster on Linux
needs: [build-antrea-coverage-image]
runs-on: [ubuntu-latest]
steps:
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
sudo apt-get clean
df -h
- uses: actions/checkout@v4
with:
show-progress: false
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Download Antrea image from previous job
uses: actions/download-artifact@v4
with:
name: antrea-ubuntu-cov
- name: Load Antrea image
run: |
docker load -i antrea-ubuntu.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-ipv6-ds-coverage
ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-e2e-ipv6-ds-coverage ./ci/kind/test-e2e-kind.sh --ip-family dual --encap-mode encap --coverage
- name: Tar coverage files
run: tar -czf test-e2e-ipv6-ds-coverage.tar.gz test-e2e-ipv6-ds-coverage
- name: Upload coverage for test-e2e-ipv6-ds-coverage
uses: actions/upload-artifact@v4
with:
name: test-e2e-ipv6-ds-coverage
path: test-e2e-ipv6-ds-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-ipv6-ds
directory: test-e2e-ipv6-ds-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@v4
if: ${{ failure() }}
with:
name: e2e-kind-ipv6-ds.tar.gz
path: log.tar.gz
retention-days: 30

test-e2e-ipv6-only:
name: E2e tests on a IPv6 Kind cluster on Linux
needs: [build-antrea-coverage-image]
runs-on: [ubuntu-latest]
steps:
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
run: |
sudo apt-get clean
df -h
- uses: actions/checkout@v4
with:
show-progress: false
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Download Antrea image from previous job
uses: actions/download-artifact@v4
with:
name: antrea-ubuntu-cov
- name: Load Antrea image
run: |
docker load -i antrea-ubuntu.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-ipv6-only-coverage
ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-e2e-ipv6-only-coverage ./ci/kind/test-e2e-kind.sh --ip-family v6 --encap-mode encap --coverage
- name: Tar coverage files
run: tar -czf test-e2e-ipv6-only-coverage.tar.gz test-e2e-ipv6-only-coverage
- name: Upload coverage for test-e2e-ipv6-only-coverage
uses: actions/upload-artifact@v4
with:
name: test-e2e-ipv6-only-coverage
path: test-e2e-ipv6-only-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-ipv6-only
directory: test-e2e-ipv6-only-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@v4
if: ${{ failure() }}
with:
name: e2e-kind-ipv6-only.tar.gz
path: log.tar.gz
retention-days: 30

test-network-policy-conformance-encap:
name: NetworkPolicy conformance tests on a Kind cluster on Linux
needs: [build-antrea-coverage-image]
Expand Down Expand Up @@ -793,6 +917,8 @@ jobs:
- test-compatible-N-2
- validate-prometheus-metrics-doc
- test-e2e-flow-visibility
- test-e2e-ipv6-ds
- test-e2e-ipv6-only
- test-network-policy-conformance-encap
runs-on: [ubuntu-latest]
steps:
Expand Down
4 changes: 2 additions & 2 deletions ci/jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ IMAGE_PULL_POLICY="Always"
PROXY_ALL=false
DEFAULT_IP_MODE="ipv4"
IP_MODE=""
K8S_VERSION="1.28.2-00"
K8S_VERSION="1.30.0-00"
WINDOWS_YAML_SUFFIX="windows"
WIN_IMAGE_NODE=""
echo "" > WIN_DHCP
Expand Down Expand Up @@ -688,7 +688,7 @@ function run_conformance {

set +e
if [[ "$TESTCASE" =~ "conformance" ]]; then
${WORKSPACE}/ci/run-k8s-e2e-tests.sh --e2e-conformance --e2e-skip "$CONFORMANCE_SKIP" --log-mode $MODE --image-pull-policy ${IMAGE_PULL_POLICY} --kubernetes-version "auto" > ${WORKSPACE}/test-result.log
${WORKSPACE}/ci/run-k8s-e2e-tests.sh --e2e-whole-conformance --log-mode $MODE --image-pull-policy ${IMAGE_PULL_POLICY} --kubernetes-version "auto" > ${WORKSPACE}/test-result.log
else
${WORKSPACE}/ci/run-k8s-e2e-tests.sh --e2e-network-policy --e2e-skip "$NETWORKPOLICY_SKIP" --log-mode $MODE --image-pull-policy ${IMAGE_PULL_POLICY} --kubernetes-version "auto" > ${WORKSPACE}/test-result.log
fi
Expand Down
4 changes: 3 additions & 1 deletion ci/jenkins/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ function check_and_cleanup_docker_build_cache() {
free_space=$(df -h -B 1G / | awk 'NR==2 {print $4}')
if [[ $free_space -lt $free_space_threshold ]]; then
# If the first round cleanup doesn't free up sufficient disk space,
# we will have to clean up all builder cache to release enough disk space.
# we will have to clean up all builder cache and "none" images that
# can't be removed by the "docker images prune" command to release enough disk space.
docker builder prune -af > /dev/null
docker rmi $(docker images -f "dangling=true" -q)
fi
fi
docker system df -v
Expand Down
Loading