1+ # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ # # SPDX-License-Identifier: Apache-2.0
3+
4+ # This is a reusable workflow for running the E2E test for Application Signals.
5+ # It is meant to be called from another workflow.
6+ # Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
7+ name : E2E Testing
8+ on :
9+ workflow_call :
10+ inputs :
11+ adot-image-name :
12+ required : true
13+ type : string
14+
15+ permissions :
16+ id-token : write
17+ contents : read
18+
19+ concurrency :
20+ group : ' ${{ github.workflow }} @ ${{ inputs.aws-region }}'
21+ cancel-in-progress : false
22+
23+
24+ jobs :
25+ upload-main-build :
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Configure AWS Credentials
29+ uses : aws-actions/configure-aws-credentials@v4
30+ with :
31+ role-to-assume : arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
32+ aws-region : us-east-1
33+
34+ - uses : actions/download-artifact@v3
35+ with :
36+ name : aws-opentelemetry-agent.jar
37+
38+ - name : Upload main-build adot.jar to s3
39+ run : aws s3 cp ./aws-opentelemetry-agent-*-SNAPSHOT.jar s3://adot-main-build-staging-jar/aws-opentelemetry-agent.jar
40+
41+ java-ec2-default-e2e-test :
42+ needs : [ upload-main-build ]
43+ uses : aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-default-e2e-test.yml@consolidate-release
44+ secrets : inherit
45+ with :
46+ aws-region : us-east-1
47+ caller-workflow-name : ' main-build'
48+
49+ java-ec2-asg-e2e-test :
50+ needs : [ upload-main-build ]
51+ uses : aws-observability/aws-application-signals-test-framework/.github/workflows/java-ec2-asg-e2e-test.yml@consolidate-release
52+ secrets : inherit
53+ with :
54+ aws-region : us-east-1
55+ caller-workflow-name : ' main-build'
56+
57+ java-eks-e2e-test :
58+ uses : aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-e2e-test.yml@consolidate-release
59+ secrets : inherit
60+ with :
61+ aws-region : us-east-1
62+ test-cluster-name : ' e2e-adot-test'
63+ adot-image-name : ${{ inputs.adot-image-name }}
64+ caller-workflow-name : ' main-build'
65+
66+ java-metric-limiter-e2e-test :
67+ needs : [ java-eks-e2e-test ]
68+ uses : aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-e2e-test.yml@consolidate-release
69+ secrets : inherit
70+ with :
71+ aws-region : us-east-1
72+ test-cluster-name : ' e2e-adot-test'
73+ adot-image-name : ${{ inputs.adot-image-name }}
74+ caller-workflow-name : ' main-build'
75+
76+ java-k8s-e2e-test :
77+ uses : aws-observability/aws-application-signals-test-framework/.github/workflows/java-k8s-e2e-test.yml@consolidate-release
78+ secrets : inherit
79+ with :
80+ aws-region : us-east-1
81+ adot-image-name : ${{ inputs.adot-image-name }}
82+ caller-workflow-name : ' main-build'
0 commit comments