5454 ADOT_WHEEL_NAME : ${{ inputs.staging-wheel-name }}
5555 OTEL_SOURCE : ${{ inputs.otel-source }}
5656 CUSTOM_METRICS_ENABLED : ${{ inputs.custom-metrics-enabled }}
57- SAMPLE_APP_ZIP : s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/python-sample-app.zip
57+ SAMPLE_APP_ZIP : s3://aws-appsignals-sample-app-prod-${{ inputs.aws-region }}/python-sample-app-delete-me .zip
5858 E2E_TEST_ACCOUNT_ID : ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
5959 E2E_TEST_ROLE_NAME : ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
6060 METRIC_NAMESPACE : ApplicationSignals
@@ -176,7 +176,6 @@ jobs:
176176 -var="get_adot_wheel_command=${{ env.GET_ADOT_WHEEL_COMMAND }}" \
177177 -var="language_version=${{ env.PYTHON_VERSION }}" \
178178 -var="cpu_architecture=${{ env.CPU_ARCHITECTURE }}" \
179- -var="custom_metrics_enabled=${{ env.CUSTOM_METRICS_ENABLED }}" \
180179 || deployment_failed=1
181180 if [ $deployment_failed -eq 1 ]; then
182181 echo "Terraform deployment was unsuccessful. Will attempt to retry deployment."
@@ -259,8 +258,8 @@ jobs:
259258
260259 - name : Validate CWAgent metrics
261260 id : cwagent-metric-validation
262- if : (success() || (env.CUSTOM_METRICS_ENABLED == 'true' && steps.log-validation.outcome == 'failure') ) && !cancelled()
263- run : ./gradlew validator:run --args='-c python/ec2/custom-metrics /custom-metric-validation.yml
261+ if : (success() || ( steps.log-validation.outcome == 'failure') && !cancelled()
262+ run : ./gradlew validator:run --args='-c python/ec2/default /custom-metric-validation.yml
264263 --testing-id ${{ env.TESTING_ID }}
265264 --endpoint http://${{ env.MAIN_SERVICE_ENDPOINT }}
266265 --remote-service-deployment-name ${{ env.REMOTE_SERVICE_IP }}:8001
@@ -276,7 +275,7 @@ jobs:
276275
277276 - name : Validate generated traces
278277 id : trace-validation
279- if : (success() || steps.log-validation.outcome == 'failure' || steps.metric-validation.outcome == 'failure' || (env.CUSTOM_METRICS_ENABLED == 'true' && steps.cwagent-metric-validation.outcome == 'failure') ) && !cancelled()
278+ if : (success() || steps.log-validation.outcome == 'failure' || steps.metric-validation.outcome == 'failure' || (steps.cwagent-metric-validation.outcome == 'failure') && !cancelled()
280279 run : ./gradlew validator:run --args='-c python/ec2/default/trace-validation.yml
281280 --testing-id ${{ env.TESTING_ID }}
282281 --endpoint http://${{ env.MAIN_SERVICE_ENDPOINT }}
@@ -303,7 +302,7 @@ jobs:
303302 if : always()
304303 id : validation-result
305304 run : |
306- if [ "${{ steps.log-validation.outcome }}" = "success" ] && [ "${{ env.CUSTOM_METRICS_ENABLED }}" = "true" ] && [ "${{ steps.cwagent-metric-validation.outcome }}" = "success" ] && [ "${{ steps.metric-validation.outcome }}" = "success" ] && [ "${{ steps.trace-validation.outcome }}" = "success" ]; then
305+ if [ "${{ steps.log-validation.outcome }}" = "success" ] && [ "${{ steps.cwagent-metric-validation.outcome }}" = "success" ] && [ "${{ steps.metric-validation.outcome }}" = "success" ] && [ "${{ steps.trace-validation.outcome }}" = "success" ]; then
307306 echo "validation-result=success" >> $GITHUB_OUTPUT
308307 else
309308 echo "validation-result=failure" >> $GITHUB_OUTPUT
0 commit comments