Skip to content

Commit

Permalink
skip remediation tests on aws, add aws infra in action
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Oct 17, 2024
1 parent e8cd32b commit bf45bd0
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 713 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
name: Build & Run E2E Images
runs-on: [self-hosted, linux, X64, jammy, large]
steps:
-
name: Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
# We run into rate limiting issues if we don't authenticate
Expand All @@ -26,9 +25,8 @@ jobs:
- name: Install requirements
run: |
sudo apt update
sudo apt install make docker-buildx
sudo snap install go --classic --channel=1.22/stable
sudo apt install make
sudo apt install docker-buildx
sudo snap install kubectl --classic --channel=1.30/stable
- name: Build provider images
run: sudo make docker-build-e2e
Expand Down Expand Up @@ -61,6 +59,9 @@ jobs:
needs: build-e2e-images
strategy:
matrix:
infra:
- "aws"
#- "docker"
ginkgo_focus:
- "KCP remediation"
- "MachineDeployment remediation"
Expand All @@ -70,8 +71,7 @@ jobs:
# TODO(ben): Remove once all tests are running stable.
fail-fast: false
steps:
-
name: Login to GitHub Container Registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
# We run into rate limiting issues if we don't authenticate
Expand Down Expand Up @@ -109,6 +109,15 @@ 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: Configure AWS Credentials
if: matrix.infra == 'aws'
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: us-east-2
role-to-assume: arn:aws:iam::018302341396:role/GithubOIDC
role-duration-seconds: 3600
- name: Run e2e tests
if: ${{!(matrix.infra == 'aws' && (matrix.ginkgo_focus == 'KCP remediation' || matrix.ginkgo_focus == 'MachineDeployment remediation'))}}
run: |
sudo GINKGO_FOCUS="${{ matrix.ginkgo_focus }}" SKIP_RESOURCE_CLEANUP=true make test-e2e
sudo E2E_INFRA=${{matrix.infra}} GINKGO_FOCUS="${{ matrix.ginkgo_focus }}" SKIP_RESOURCE_CLEANUP=true make test-e2e
3 changes: 1 addition & 2 deletions test/e2e/config/ck8s-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ providers:
new: "imagePullPolicy: IfNotPresent"
files:
- sourcePath: "../data/infrastructure-aws/cluster-template.yaml"
- sourcePath: "../data/infrastructure-aws/cluster-template-md-remediation.yaml"
- sourcePath: "../data/infrastructure-aws/cluster-template-kcp-remediation.yaml"
- name: ck8s
type: BootstrapProvider
versions:
Expand Down Expand Up @@ -111,6 +109,7 @@ variables:

intervals:
# Ref: https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/test/e2e/data/e2e_conf.yaml
default/wait-machines: [ "35m", "10s" ]
default/wait-cluster: [ "35m", "10s" ]
default/wait-control-plane: [ "35m", "10s" ]
default/wait-worker-nodes: [ "20m", "10s" ]
Expand Down
Loading

0 comments on commit bf45bd0

Please sign in to comment.