-
Notifications
You must be signed in to change notification settings - Fork 29
60 lines (57 loc) · 1.85 KB
/
performance-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Performance tests
on:
workflow_dispatch: {}
schedule:
- cron: "0 9 * * 2" # every Tuesday
permissions:
id-token: write
contents: read
jobs:
build-image:
if: github.repository == 'aws/aws-network-policy-agent'
runs-on: ubuntu-latest
outputs:
AWS_EKS_NODEAGENT_IMAGE: ${{steps.build-and-push-image.outputs.image_uri}}
steps:
- name: Checkout latest commit
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.OSS_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 3600 # 1 hour
- name: Build and Push Network Policy Image
id: build-and-push-image
uses: ./.github/actions/build-and-push-image
with:
aws-region: us-west-2
performance-tests:
needs: build-image
strategy:
fail-fast: false
matrix:
ip-family: [ IPv4, IPv6 ]
# kubernetes-versions: ["1.25", "1.26", "1.27"]
if: github.repository == 'aws/aws-network-policy-agent'
runs-on: ubuntu-latest
steps:
- name: Checkout latest commit
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.OSS_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 18000 # 5 hours
- name: Run performance tests
env:
RUN_PERFORMANCE_TESTS: true
NODES_CAPACITY: 3
INSTANCE_TYPE: c5.xlarge
IP_FAMILY: ${{ matrix.ip-family }}
AWS_EKS_NODEAGENT_IMAGE: ${{ needs.build-image.outputs.AWS_EKS_NODEAGENT_IMAGE }}
run: |
./scripts/run-tests.sh