Skip to content

Commit

Permalink
run in separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Jul 5, 2024
1 parent 1e80d77 commit 0231f9a
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,50 @@ jobs:
# Prevents https://cluster-api.sigs.k8s.io/user/troubleshooting#cluster-api-with-docker----too-many-open-files
sudo sysctl fs.inotify.max_user_watches=1048576
sudo sysctl fs.inotify.max_user_instances=8192
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: e2e-images
path: |
/var/lib/docker
run-e2e-tests:
name: Run E2E Tests
runs-on: [self-hosted, linux, X64, jammy, xlarge]
needs: build-e2e-images
strategy:
matrix:
ginkgo_focus: ["Workload cluster creation", "Workload cluster scaling", "Workload cluster upgrade"]
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: e2e-images
path: /var/lib/docker
- name: Install requirements
run: |
sudo apt install make
sudo snap install go --classic
sudo apt install docker-buildx
sudo snap install kubectl --classic
- name: Load docker images
run: |
for image in $(ls /var/lib/docker); do
sudo docker load -i /var/lib/docker/$image
done
- name: Create docker network
run: |
sudo docker network create kind --driver=bridge -o com.docker.network.bridge.enable_ip_masquerade=true
- name: Increase inotify watches
run: |
# Prevents https://cluster-api.sigs.k8s.io/user/troubleshooting#cluster-api-with-docker----too-many-open-files
sudo sysctl fs.inotify.max_user_watches=1048576
sudo sysctl fs.inotify.max_user_instances=8192
- name: Run e2e tests
run: |
sudo GINKGO_FOCUS="Workload cluster scaling" SKIP_RESOURCE_CLEANUP=true make test-e2e
sudo GINKGO_FOCUS="${{ matrix.ginkgo_focus }}" SKIP_RESOURCE_CLEANUP=true make test-e2e
- name: Setup tmate session
if: ${{ failure() }}
uses: canonical/action-tmate@main

0 comments on commit 0231f9a

Please sign in to comment.