-
Notifications
You must be signed in to change notification settings - Fork 56
221 lines (192 loc) · 6.75 KB
/
application-signals-e2e-test.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: Apache-2.0
# This is a reusable workflow for running the E2E test for Application Signals.
# It is meant to be called from another workflow.
# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
name: E2E Testing
on:
workflow_call:
inputs:
adot-image-name:
required: true
type: string
permissions:
id-token: write
contents: read
concurrency:
group: '${{ github.workflow }} @ ${{ inputs.aws-region }}'
cancel-in-progress: false
jobs:
upload-main-build:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
aws-region: us-east-1
- uses: actions/download-artifact@v3
with:
name: aws-opentelemetry-agent.jar
- name: Upload main-build adot.jar to s3
run: aws s3 cp ./aws-opentelemetry-agent-*-SNAPSHOT.jar s3://adot-main-build-staging-jar/aws-opentelemetry-agent.jar
#
# PACKAGED DISTRIBUTION LANGUAGE VERSION COVERAGE
# DEFAULT SETTING: {Java Version}, EC2, AMD64, AL2
#
default-v8-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '8'
cpu-architecture: 'x86_64'
default-v11-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '11'
cpu-architecture: 'x86_64'
default-v17-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '17'
cpu-architecture: 'x86_64'
default-v21-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '21'
cpu-architecture: 'x86_64'
default-v22-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '22'
cpu-architecture: 'x86_64'
#
# DOCKER DISTRIBUTION LANGUAGE VERSION COVERAGE
# DEFAULT SETTING: {Java Version}, EKS, AMD64, AL2
#
eks-v8-amd64:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '8'
eks-v11-amd64:
needs: eks-v8-amd64
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '11'
eks-v17-amd64:
needs: eks-v11-amd64
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '17'
eks-v21-amd64:
needs: eks-v17-amd64
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '21'
eks-v22-amd64:
needs: eks-v21-amd64
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '22'
#
# PACKAGED DISTRIBUTION PLATFORM COVERAGE
# DEFAULT SETTING: Java 11, {Platform}, AMD64, AL2
#
asg-v11-amd64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-asg-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '11'
#
# DOCKER DISTRIBUTION PLATFORM COVERAGE
# DEFAULT SETTING: Java 11, {Platform}, AMD64, AL2
#
k8s-v11-amd64:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-k8s-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '11'
ecs-v11-amd64:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ecs-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '11'
#
# CPU ARCHITECTURE COVERAGE
# DEFAULT SETTING: Java 11, EC2, {CPU Architecture}, AL2
#
default-v11-arm64:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'
java-version: '11'
cpu-architecture: 'arm64'
#
# Other Functional Test Case
#
metric-limiter-v11-amd64:
needs: [ eks-v22-amd64 ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/metric-limiter-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
java-version: '11'