Skip to content

Commit 94ca8bf

Browse files
authored
Add and configure soak tests workflow (#3404)
* Add and configure soak tests workflow * Update soak tests workflow
1 parent 7077081 commit 94ca8bf

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/soak-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Soak Tests
2+
3+
on:
4+
workflow_dispatch: {}
5+
schedule:
6+
- cron: "0 3 * * *" # every night
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
integration-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout latest commit in the PR
17+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # refs/tags/v4.1.7
18+
- name: Set up Go
19+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # refs/tags/v5.5.0
20+
with:
21+
go-version: "1.24"
22+
- name: Set up tools
23+
run: |
24+
# Install ginkgo version from go.mod
25+
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
26+
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
27+
sudo mv /tmp/eksctl /usr/local/bin/
28+
- name: Set up AWS credentials
29+
uses: aws-actions/configure-aws-credentials@5579c002bb4778aa43395ef1df492868a9a1c83f # refs/tags/v4.0.2
30+
with:
31+
role-to-assume: ${{ secrets.OSS_TEST_ROLE_ARN }}
32+
role-duration-seconds: 14400 # 4 hours
33+
aws-region: us-west-2
34+
- name: Run soak tests
35+
run: |
36+
RUN_CNI_INTEGRATION_TESTS=false RUN_UBUNTU_TEST=true ./scripts/run-integration-tests.sh
37+
env:
38+
AWS_DEFAULT_REGION: us-west-2

scripts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following tests are valid to run, and setting the respective environment var
2121
3. Performance Tests - `RUN_PERFORMANCE_TESTS`
2222
4. KOPS Tests - `RUN_KOPS_TEST`
2323
5. Bottlerocket Tests - `RUN_BOTTLEROCKET_TEST`
24+
6. CNI Soak Tests with Ubuntu AMI - `RUN_UBUNTU_TEST`
2425

2526
Example for running performance tests:
2627
```

0 commit comments

Comments
 (0)