Skip to content

Commit ec1575e

Browse files
committed
temp test in us-east-1 via push
1 parent 5d94e31 commit ec1575e

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
name: Java EKS OTLP/OCB Enablement Canary Test
1010
on:
1111
# TODO: Reintroduce cron-job
12-
schedule:
13-
- cron: '12,37 * * * *' # run the workflow at 12th and 37th minute of every hour
12+
# schedule:
13+
# - cron: '12,37 * * * *' # run the workflow at 12th and 37th minute of every hour
1414
workflow_dispatch: # be able to run the workflow on demand
15-
# push:
16-
# branches:
17-
# - otlp-ocb
15+
push:
16+
branches:
17+
- otlp-ocb
1818

1919
permissions:
2020
id-token: write

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ jobs:
194194
- name: Install OTel Collector
195195
uses: ./.github/workflows/actions/execute_and_retry
196196
with:
197-
command: "cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/java/eks-otlp-ocb/util && \
198-
sed -i -e 's/${E2E_TEST_AWS_REGION}/${{ env.E2E_TEST_AWS_REGION }}/g' ./appsignals-collector.yaml && \
199-
kubectl apply -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }}"
197+
command: "cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/java/eks-otlp-ocb/util && kubectl apply -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }}"
200198
cleanup: "kubectl delete -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }} && \
201199
aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}"
202200
max_retry: 3
@@ -265,7 +263,7 @@ jobs:
265263
run: ./gradlew validator:run --args='-c java/eks-otlp-ocb/log-validation.yml
266264
--testing-id ${{ env.TESTING_ID }}
267265
--endpoint http://${{ env.APP_ENDPOINT }}
268-
--region ${{ env.E2E_TEST_AWS_REGION }}
266+
--region us-east-1
269267
--account-id ${{ env.ACCOUNT_ID }}
270268
--metric-namespace ${{ env.METRIC_NAMESPACE }}
271269
--log-group ${{ env.LOG_GROUP_NAME }}
@@ -276,14 +274,16 @@ jobs:
276274
--remote-service-ip ${{ env.REMOTE_SERVICE_POD_IP }}
277275
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
278276
--rollup'
277+
# TODO: Undo hardcode
278+
# --region ${{ env.E2E_TEST_AWS_REGION }}
279279

280280
- name: Call endpoints and validate generated metrics
281281
id: metric-validation
282282
if: (steps.deploy-sample-app.outcome == 'success' || steps.log-validation.outcome == 'failure') && !cancelled()
283283
run: ./gradlew validator:run --args='-c java/eks-otlp-ocb/metric-validation.yml
284284
--testing-id ${{ env.TESTING_ID }}
285285
--endpoint http://${{ env.APP_ENDPOINT }}
286-
--region ${{ env.E2E_TEST_AWS_REGION }}
286+
--region us-east-1
287287
--account-id ${{ env.ACCOUNT_ID }}
288288
--metric-namespace ${{ env.METRIC_NAMESPACE }}
289289
--log-group ${{ env.LOG_GROUP_NAME }}
@@ -295,14 +295,16 @@ jobs:
295295
--remote-service-ip ${{ env.REMOTE_SERVICE_POD_IP }}
296296
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
297297
--rollup'
298+
# TODO: Undo hardcodes:
299+
# --region ${{ env.E2E_TEST_AWS_REGION }}
298300

299301
- name: Call endpoints and validate generated traces
300302
id: trace-validation
301303
if: (steps.deploy-sample-app.outcome == 'success' || steps.log-validation.outcome == 'failure' || steps.metric-validation.outcome == 'failure') && !cancelled()
302304
run: ./gradlew validator:run --args='-c java/eks-otlp-ocb/trace-validation.yml
303305
--testing-id ${{ env.TESTING_ID }}
304306
--endpoint http://${{ env.APP_ENDPOINT }}
305-
--region ${{ env.E2E_TEST_AWS_REGION }}
307+
--region us-east-1
306308
--account-id ${{ env.ACCOUNT_ID }}
307309
--metric-namespace ${{ env.METRIC_NAMESPACE }}
308310
--log-group ${{ env.LOG_GROUP_NAME }}
@@ -313,6 +315,8 @@ jobs:
313315
--remote-service-ip ${{ env.REMOTE_SERVICE_POD_IP }}
314316
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
315317
--rollup'
318+
# TODO: Undo hardcode
319+
# --region ${{ env.E2E_TEST_AWS_REGION }}
316320

317321
- name: Refresh AWS Credentials
318322
if: ${{ github.event.repository.name == 'aws-application-signals-test-framework' }}

terraform/java/eks-otlp-ocb/util/appsignals-collector.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
config: |
5151
extensions:
5252
sigv4auth:
53-
region: "${E2E_TEST_AWS_REGION}"
53+
region: "us-east-1"
5454
service: "xray"
5555
5656
receivers:
@@ -137,7 +137,7 @@ spec:
137137
138138
exporters:
139139
otlphttp:
140-
traces_endpoint: https://xray.${E2E_TEST_AWS_REGION}.amazonaws.com/v1/traces
140+
traces_endpoint: https://xray.us-east-1.amazonaws.com/v1/traces
141141
auth:
142142
authenticator: sigv4auth
143143

0 commit comments

Comments
 (0)