Skip to content

Commit

Permalink
Debug ubi e2e tests on gitlab CI
Browse files Browse the repository at this point in the history
Signed-off-by: Xu Liu <[email protected]>
  • Loading branch information
xliuxu committed Mar 8, 2024
1 parent 17ff95a commit 12cd13b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Build Antrea UBI8 Docker image without pushing to registry
if: ${{ github.repository != 'antrea-io/antrea' || github.event_name != 'push' || github.ref != 'refs/heads/main' }}
run: |
./hack/build-antrea-linux-all.sh --pull --distro ubi
./hack/build-antrea-linux-all.sh --pull --push-base-images --distro ubi
- name: Clean up docker build cache
# Clean up build cache to avoid running out of disk space in the following go tests.
run: docker builder prune -f
Expand Down
6 changes: 6 additions & 0 deletions ci/kind/test-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,12 @@ function setup_cluster {

echo "creating test bed with args $args"
eval "timeout 600 $TESTBED_CMD create kind $args"

echo "dumping iptables-legacy"
docker exec -i kind-control-plane "sh" "-c" "iptables-legacy-save || true; ip6tables-legacy-save || true"

echo "dumping iptables-nft"
docker exec -i kind-control-plane "timeout" "5" "sh" "-c" "iptables-nft-save; ip6tables-nft-save || true"
}

function run_test {
Expand Down

0 comments on commit 12cd13b

Please sign in to comment.