Skip to content

Commit 9663a25

Browse files
authored
Merge pull request #38 from aws-observability/add-testing-id-to-sample-app-namespace
Append testing id to sample-app-namespace
2 parents 5bc51c6 + 02b2dbe commit 9663a25

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/appsignals-e2e-eks-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ env:
3434
# It is not redundant
3535
AWS_DEFAULT_REGION: ${{ inputs.aws-region }}
3636
ENABLEMENT_SCRIPT_S3_BUCKET: ${{ secrets.APP_SIGNALS_E2E_ENABLEMENT_SCRIPT }}
37-
SAMPLE_APP_NAMESPACE: sample-app-namespace
3837
SAMPLE_APP_FRONTEND_SERVICE_IMAGE: ${{ secrets.APP_SIGNALS_E2E_TEST_ACC }}.dkr.ecr.${{ inputs.aws-region }}.amazonawss.com/${{ secrets.APP_SIGNALS_E2E_FE_SA_IMG }}
3938
SAMPLE_APP_REMOTE_SERVICE_IMAGE: ${{ secrets.APP_SIGNALS_E2E_TEST_ACC }}.dkr.ecr.${{ inputs.aws-region }}.amazonawss.com/${{ secrets.APP_SIGNALS_E2E_RE_SA_IMG }}
4039
METRIC_NAMESPACE: AppSignals
@@ -67,8 +66,10 @@ jobs:
6766
delete_log_group="aws logs delete-log-group --log-group-name '${{ env.LOG_GROUP_NAME }}' --region \$REGION"
6867
sed -i "s#$delete_log_group##g" clean-app-signals.sh
6968
70-
- name: Generate testing id
71-
run: echo TESTING_ID="${{ inputs.aws-region }}-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_ENV
69+
- name: Generate testing id and sample app namespace
70+
run: |
71+
echo TESTING_ID="${{ inputs.aws-region }}-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_ENV
72+
echo SAMPLE_APP_NAMESPACE="ns-${{ github.run_id }}-${{ github.run_number }}" >> $GITHUB_ENV
7273
7374
- name: Configure AWS Credentials
7475
uses: aws-actions/configure-aws-credentials@v4
@@ -349,6 +350,7 @@ jobs:
349350
- name: Terraform destroy
350351
if: always()
351352
continue-on-error: true
353+
timeout-minutes: 5
352354
working-directory: terraform/eks
353355
run: |
354356
terraform destroy -auto-approve \

validator/src/main/resources/expected-data-template/eks/remote-service-trace.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
{
8181
"name": "^RemoteServiceController.healthcheck$",
8282
"annotations": {
83-
"HostedIn.K8s.Namespace": "^sample-app-namespace$",
83+
"HostedIn.K8s.Namespace": "^{{appNamespace}}$",
8484
"HostedIn.EKS.Cluster": "^{{platformInfo}}$",
8585
"aws.local.operation": "^GET /healthcheck$"
8686
}

0 commit comments

Comments
 (0)