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 Enablement test for App 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 : Java EKS OTLP/OCB Retry
8+ on :
9+ workflow_call :
10+ inputs :
11+ aws-region :
12+ required : true
13+ type : string
14+ test-cluster-name :
15+ required : true
16+ type : string
17+ caller-workflow-name :
18+ required : true
19+ type : string
20+ java-version :
21+ required : true
22+ type : string
23+
24+ concurrency :
25+ group : ' java-eks-otlp-ocb-${{ inputs.aws-region }}-${{ github.ref_name }}'
26+ cancel-in-progress : false
27+
28+ permissions :
29+ id-token : write
30+ contents : read
31+
32+ jobs :
33+ java-eks-otlp-ocb-attempt-1 :
34+ uses : ./.github/workflows/java-eks-otlp-ocb-test.yml
35+ secrets : inherit
36+ with :
37+ aws-region : ${{ inputs.aws-region }}
38+ test-cluster-name : ${{ inputs.test-cluster-name }}
39+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
40+ java-version : ${{ inputs.java-version }}
41+
42+ java-eks-otlp-ocb-attempt-2 :
43+ needs : [ java-eks-otlp-ocb-attempt-1 ]
44+ if : ${{ needs.java-eks-otlp-ocb-attempt-1.outputs.job-started != 'true' }}
45+ uses : ./.github/workflows/java-eks-otlp-ocb-test.yml
46+ secrets : inherit
47+ with :
48+ aws-region : ${{ inputs.aws-region }}
49+ test-cluster-name : ${{ inputs.test-cluster-name }}
50+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
51+ java-version : ${{ inputs.java-version }}
52+
53+ publish-metric-attempt-1 :
54+ needs : [ java-eks-otlp-ocb-attempt-1, java-eks-otlp-ocb-attempt-2 ]
55+ if : always()
56+ uses : ./.github/workflows/enablement-test-publish-result.yml
57+ secrets : inherit
58+ with :
59+ aws-region : ${{ inputs.aws-region }}
60+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
61+ validation-result : ${{ needs.java-eks-otlp-ocb-attempt-1.outputs.validation-result || needs.java-eks-otlp-ocb-attempt-2.outputs.validation-result }}
62+
63+ publish-metric-attempt-2 :
64+ needs : [ java-eks-otlp-ocb-attempt-1, java-eks-otlp-ocb-attempt-2, publish-metric-attempt-1 ]
65+ if : ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }}
66+ uses : ./.github/workflows/enablement-test-publish-result.yml
67+ secrets : inherit
68+ with :
69+ aws-region : ${{ inputs.aws-region }}
70+ caller-workflow-name : ${{ inputs.caller-workflow-name }}
71+ validation-result : ${{ needs.java-eks-otlp-ocb-attempt-1.outputs.validation-result || needs.java-eks-otlp-ocb-attempt-2.outputs.validation-result }}
0 commit comments