Skip to content

Commit eb4470c

Browse files
committed
Address TODOs
1 parent eff1b8f commit eb4470c

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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:
711
# schedule:
@@ -20,7 +24,8 @@ jobs:
2024
strategy:
2125
fail-fast: false
2226
matrix:
23-
aws-region: ['us-west-1']
27+
aws-region: ['af-south-1', 'us-west-1', 'us-east-2']
28+
# TODO: Add the others back in. Note that the first run on a fresh cluster may fail, root cause TBD
2429
# 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',
2530
# 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1',
2631
# '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-test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,25 +189,24 @@ jobs:
189189
echo MAIN_SAMPLE_APP_IMAGE_ARN="${{ env.ACCOUNT_ID }}.dkr.ecr.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/${{ env.JAVA_MAIN_SAMPLE_APP_IMAGE }}:v${{ env.JAVA_VERSION }}" >> $GITHUB_ENV
190190
echo REMOTE_SAMPLE_APP_IMAGE_ARN="${{ env.ACCOUNT_ID }}.dkr.ecr.${{ env.E2E_TEST_AWS_REGION }}.amazonaws.com/${{ env.JAVA_REMOTE_SAMPLE_APP_IMAGE }}:v${{ env.JAVA_VERSION }}" >> $GITHUB_ENV
191191
192-
# TODO: Fix retry, clean-app-signals doesn't work for enable-app-signals-ocb.sh
193192
- name: Install OTel Operator using enablement script
194193
uses: ./.github/workflows/actions/execute_and_retry
195194
with:
196195
command: "${{ env.TEST_RESOURCES_FOLDER }}/enablement-script/enable-app-signals-ocb.sh \
197196
${{ env.CLUSTER_NAME }} \
198197
${{ env.E2E_TEST_AWS_REGION }} \
199198
${{ env.SAMPLE_APP_NAMESPACE }}"
200-
max_retry: 1
199+
max_retry: 3
201200
sleep_time: 60
202-
# TODO: cleanup and increase retries
203-
# cleanup: "TODO"
204201

205202
- name: Install OTel Collector
206203
uses: ./.github/workflows/actions/execute_and_retry
207204
with:
208205
command: "cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/java/eks-otlp-ocb/util && kubectl apply -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }}"
209206
cleanup: "kubectl delete -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }} && \
210207
aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}"
208+
max_retry: 3
209+
sleep_time: 60
211210

212211
- name: Deploy sample app via terraform and wait for the endpoint to come online
213212
id: deploy-sample-app
@@ -398,7 +397,7 @@ jobs:
398397
continue-on-error: true
399398
run: |
400399
eksctl delete iamserviceaccount \
401-
--name appsignals-collector \
400+
--name appsignals-collector \
402401
--namespace ${{ env.SAMPLE_APP_NAMESPACE }} \
403402
--cluster ${{ env.CLUSTER_NAME }} \
404403
--region ${{ env.E2E_TEST_AWS_REGION }}

validator/src/main/resources/expected-data-template/java/eks-otlp-ocb/aws-sdk-call-trace.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"name": "^S3$",
3737
"http": {
3838
"request": {
39-
"url": "^https://e2e-test-bucket-name-{{testingId}}.s3.us-west-1.amazonaws.com\\?location$",
39+
"url": "^https://e2e-test-bucket-name-{{testingId}}.s3.[a-z]+-[a-z]+-\\d.amazonaws.com\\?location$",
4040
"method": "^GET$"
4141
}
4242
},

0 commit comments

Comments
 (0)