Skip to content

Commit f1a7fed

Browse files
committed
Address TODOs
1 parent eff1b8f commit f1a7fed

File tree

4 files changed

+371
-369
lines changed

4 files changed

+371
-369
lines changed

.github/workflows/java-eks-otlp-ocb-canary.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
## SPDX-License-Identifier: Apache-2.0
33

4-
# TODO: Add comment
4+
## This workflow aims to run the Application Signals end-to-end tests as a canary to
5+
## test the artifacts for App Signals enablement. It will deploy a sample app and remote
6+
## service onto an EKS cluster, instrumented using an OTel Collector built through
7+
## OTel Collector Builder (OCB) and interacting with the OTLP endpoint for this use case.
8+
## Logs, metrics, and traces are all validated.
59
name: Java EKS OTLP/OCB Enablement Canary Test
610
on:
11+
# TODO: Reintroduce cron-job
712
# schedule:
813
# - cron: '12,37 * * * *' # run the workflow at 12th and 37th minute of every hour
914
workflow_dispatch: # be able to run the workflow on demand
@@ -21,6 +26,7 @@ jobs:
2126
fail-fast: false
2227
matrix:
2328
aws-region: ['us-west-1']
29+
# TODO: Reintroduce all regions (one more first, then all except eu-central-2, then eu-central-2 when infra is deployed)
2430
# aws-region: ['af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-south-2','ap-southeast-1',
2531
# 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1',
2632
# 'eu-south-1','eu-south-2','eu-west-1','eu-west-2','eu-west-3','il-central-1','me-central-1','me-south-1', 'sa-east-1',

.github/workflows/java-eks-otlp-ocb-retry.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions:
3030
contents: read
3131

3232
jobs:
33-
java-eks-otlp-ocb-attempt-1:
33+
java-eks-attempt-1:
3434
uses: ./.github/workflows/java-eks-otlp-ocb-test.yml
3535
secrets: inherit
3636
with:
@@ -39,33 +39,33 @@ jobs:
3939
caller-workflow-name: ${{ inputs.caller-workflow-name }}
4040
java-version: ${{ inputs.java-version }}
4141

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 }}
42+
java-eks-attempt-2:
43+
needs: [ java-eks-attempt-1 ]
44+
if: ${{ needs.java-eks-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 }}
5252

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 }}
53+
publish-metric-attempt-1:
54+
needs: [ java-eks-attempt-1, java-eks-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-attempt-1.outputs.validation-result || needs.java-eks-attempt-2.outputs.validation-result }}
6262

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 }}
63+
publish-metric-attempt-2:
64+
needs: [ java-eks-attempt-1, java-eks-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-attempt-1.outputs.validation-result || needs.java-eks-attempt-2.outputs.validation-result }}

0 commit comments

Comments
 (0)