-
Notifications
You must be signed in to change notification settings - Fork 7
117 lines (102 loc) · 3.96 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
## 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:
staging-instrumentation-name:
required: true
type: string
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::637423224110:role/${{ secrets.STAGING_ARTIFACTS_ACCESS_ROLE_NAME }}
aws-region: us-east-1
- uses: actions/download-artifact@v3
with:
name: ${{ inputs.staging-instrumentation-name }}
- name: Upload main-build instrumentation to S3
run: aws s3 cp ${{ inputs.staging-instrumentation-name }} s3://adot-autoinstrumentation-node-staging/${{ inputs.staging-instrumentation-name }}
ec2-default:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }}
caller-workflow-name: 'main-build'
ec2-asg:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-asg-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }}
caller-workflow-name: 'main-build'
ec2-different-node-version:
strategy:
fail-fast: false
matrix:
node-version: [ '14', '16', '18', '20', '22' ]
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: 'us-east-1'
staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }}
node-version: ${{ matrix.node-version }}
cpu-architecture: 'x86_64'
caller-workflow-name: 'main-build'
ec2-arm64-cpu-architecture:
needs: [ upload-main-build ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-default-test.yml@main
secrets: inherit
with:
aws-region: 'us-east-1'
staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }}
cpu-architecture: 'arm64'
caller-workflow-name: 'main-build'
eks:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-eks-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-node-adot-test'
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
ecs:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ecs-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
k8s:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-k8s-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
adot-image-name: ${{ inputs.adot-image-name }}
caller-workflow-name: 'main-build'
lambda:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-lambda-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
caller-workflow-name: 'main-build'