Skip to content

Commit

Permalink
temp test in us-east-1 via push
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Nov 25, 2024
1 parent a443689 commit 327744e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/java-eks-otlp-ocb-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
name: Java EKS OTLP/OCB Enablement Canary Test
on:
# TODO: Reintroduce cron-job
schedule:
- cron: '12,37 * * * *' # run the workflow at 12th and 37th minute of every hour
# schedule:
# - cron: '12,37 * * * *' # run the workflow at 12th and 37th minute of every hour
workflow_dispatch: # be able to run the workflow on demand
# push:
# branches:
# - otlp-ocb
push:
branches:
- otlp-ocb

permissions:
id-token: write
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/java-eks-otlp-ocb-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ jobs:
- name: Install OTel Collector
uses: ./.github/workflows/actions/execute_and_retry
with:
command: "cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/java/eks-otlp-ocb/util && \
sed -i -e 's/${E2E_TEST_AWS_REGION}/${{ env.E2E_TEST_AWS_REGION }}/g' ./appsignals-collector.yaml && \
kubectl apply -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }}"
command: "cd ${{ env.TEST_RESOURCES_FOLDER }}/terraform/java/eks-otlp-ocb/util && kubectl apply -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }}"
cleanup: "kubectl delete -f ./appsignals-collector.yaml -n ${{ env.SAMPLE_APP_NAMESPACE }} && \
aws eks update-kubeconfig --name ${{ env.CLUSTER_NAME }} --region ${{ env.E2E_TEST_AWS_REGION }}"
max_retry: 3
Expand Down Expand Up @@ -265,7 +263,7 @@ jobs:
run: ./gradlew validator:run --args='-c java/eks-otlp-ocb/log-validation.yml
--testing-id ${{ env.TESTING_ID }}
--endpoint http://${{ env.APP_ENDPOINT }}
--region ${{ env.E2E_TEST_AWS_REGION }}
--region us-east-1
--account-id ${{ env.ACCOUNT_ID }}
--metric-namespace ${{ env.METRIC_NAMESPACE }}
--log-group ${{ env.LOG_GROUP_NAME }}
Expand All @@ -276,14 +274,16 @@ jobs:
--remote-service-ip ${{ env.REMOTE_SERVICE_POD_IP }}
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
--rollup'
# TODO: Undo hardcode
# --region ${{ env.E2E_TEST_AWS_REGION }}

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

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

- name: Refresh AWS Credentials
if: ${{ github.event.repository.name == 'aws-application-signals-test-framework' }}
Expand Down
4 changes: 2 additions & 2 deletions terraform/java/eks-otlp-ocb/util/appsignals-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
config: |
extensions:
sigv4auth:
region: "${E2E_TEST_AWS_REGION}"
region: "us-east-1"
service: "xray"
receivers:
Expand Down Expand Up @@ -137,7 +137,7 @@ spec:
exporters:
otlphttp:
traces_endpoint: https://xray.${E2E_TEST_AWS_REGION}.amazonaws.com/v1/traces
traces_endpoint: https://xray.us-east-1.amazonaws.com/v1/traces
auth:
authenticator: sigv4auth
Expand Down

0 comments on commit 327744e

Please sign in to comment.