From 2dd03e3612cb5d5e4b55b57cf4a73a0f45d034b2 Mon Sep 17 00:00:00 2001 From: Mahad Janjua Date: Fri, 11 Apr 2025 15:34:04 -0700 Subject: [PATCH] [Lambda] Deprecate canary workflows --- .github/workflows/dotnet-lambda-canary.yml | 29 -------- .github/workflows/dotnet-lambda-retry.yml | 57 --------------- .github/workflows/java-lambda-canary.yml | 29 -------- .github/workflows/java-lambda-retry.yml | 57 --------------- .github/workflows/node-lambda-canary.yml | 29 -------- .github/workflows/node-lambda-retry.yml | 57 --------------- .github/workflows/python-lambda-canary.yml | 32 --------- .github/workflows/python-lambda-retry.yml | 80 ---------------------- 8 files changed, 370 deletions(-) delete mode 100644 .github/workflows/dotnet-lambda-canary.yml delete mode 100644 .github/workflows/dotnet-lambda-retry.yml delete mode 100644 .github/workflows/java-lambda-canary.yml delete mode 100644 .github/workflows/java-lambda-retry.yml delete mode 100644 .github/workflows/node-lambda-canary.yml delete mode 100644 .github/workflows/node-lambda-retry.yml delete mode 100644 .github/workflows/python-lambda-canary.yml delete mode 100644 .github/workflows/python-lambda-retry.yml diff --git a/.github/workflows/dotnet-lambda-canary.yml b/.github/workflows/dotnet-lambda-canary.yml deleted file mode 100644 index fc289b064..000000000 --- a/.github/workflows/dotnet-lambda-canary.yml +++ /dev/null @@ -1,29 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -## This workflow aims to run the Application Signals end-to-end tests as a canary to -## test the artifacts for App Signals enablement. -name: DotNet Lambda Enablement Canary Testing -on: - schedule: - - cron: '14,39 * * * *' # run the workflow at 14th and 39th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - default: - strategy: - fail-fast: false - matrix: - 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', - 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1', - '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', - 'us-east-1','us-east-2', 'us-west-1', 'us-west-2'] - uses: ./.github/workflows/dotnet-lambda-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-dotnet-e2e-lambda-canary-test' diff --git a/.github/workflows/dotnet-lambda-retry.yml b/.github/workflows/dotnet-lambda-retry.yml deleted file mode 100644 index eef32fb0c..000000000 --- a/.github/workflows/dotnet-lambda-retry.yml +++ /dev/null @@ -1,57 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -# This is a reusable workflow for running the Enablement test for App Signals. -# It is meant to be called from another workflow. -# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview -name: DotNet Lambda Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - -permissions: - id-token: write - contents: read - -jobs: - dotnet-lambda-attempt-1: - uses: ./.github/workflows/dotnet-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - dotnet-lambda-attempt-2: - needs: [ dotnet-lambda-attempt-1 ] - if: ${{ needs.dotnet-lambda-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ dotnet-lambda-attempt-1, dotnet-lambda-attempt-2 ] - if: always() - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.dotnet-lambda-attempt-1.outputs.validation-result || needs.dotnet-lambda-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-lambda-attempt-1, dotnet-lambda-attempt-2, publish-metric-attempt-1 ] - if: ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.dotnet-lambda-attempt-1.outputs.validation-result || needs.dotnet-lambda-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/java-lambda-canary.yml b/.github/workflows/java-lambda-canary.yml deleted file mode 100644 index 1450f1035..000000000 --- a/.github/workflows/java-lambda-canary.yml +++ /dev/null @@ -1,29 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -## This workflow aims to run the Application Signals Java end-to-end tests as a canary to -## test the artifacts for Application Signals enablement on Lambda. -name: Java Lambda Enablement Canary Testing -on: - schedule: - - cron: '20,45 * * * *' # run the workflow at 20th and 45th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - github: - strategy: - fail-fast: false - matrix: - 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', - 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1', - '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', - 'us-east-1','us-east-2', 'us-west-1', 'us-west-2'] - uses: ./.github/workflows/java-lambda-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-java-e2e-lambda-canary-test' diff --git a/.github/workflows/java-lambda-retry.yml b/.github/workflows/java-lambda-retry.yml deleted file mode 100644 index 69438338a..000000000 --- a/.github/workflows/java-lambda-retry.yml +++ /dev/null @@ -1,57 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -# This is a reusable workflow for running the Java Lambda Canary with retries. -# It is meant to be called from another workflow. -# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview -name: Java Lambda Default Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - -permissions: - id-token: write - contents: read - -jobs: - java-lambda-attempt-1: - uses: ./.github/workflows/java-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - java-lambda-attempt-2: - needs: [ java-lambda-attempt-1 ] - if: ${{ needs.java-lambda-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/java-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ java-lambda-attempt-1, java-lambda-attempt-2 ] - if: always() - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.java-lambda-attempt-1.outputs.validation-result || needs.java-lambda-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ java-lambda-attempt-1, java-lambda-attempt-2, publish-metric-attempt-1 ] - if: ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.java-lambda-attempt-1.outputs.validation-result || needs.java-lambda-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/node-lambda-canary.yml b/.github/workflows/node-lambda-canary.yml deleted file mode 100644 index fdda7119e..000000000 --- a/.github/workflows/node-lambda-canary.yml +++ /dev/null @@ -1,29 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -## This workflow aims to run the Application Signals end-to-end tests as a canary to -## test the artifacts for App Signals enablement. -name: Node Lambda Enablement Canary Testing -on: - schedule: - - cron: '14,39 * * * *' # run the workflow at 14th and 39th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - default: - strategy: - fail-fast: false - matrix: - 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', - 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1', - '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', - 'us-east-1','us-east-2', 'us-west-1', 'us-west-2'] - uses: ./.github/workflows/node-lambda-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-node-e2e-lambda-canary-test' diff --git a/.github/workflows/node-lambda-retry.yml b/.github/workflows/node-lambda-retry.yml deleted file mode 100644 index 7d731e1ef..000000000 --- a/.github/workflows/node-lambda-retry.yml +++ /dev/null @@ -1,57 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -# This is a reusable workflow for running the Enablement test for App Signals. -# It is meant to be called from another workflow. -# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview -name: Node Lambda Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - -permissions: - id-token: write - contents: read - -jobs: - node-lambda-attempt-1: - uses: ./.github/workflows/node-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - node-lambda-attempt-2: - needs: [ node-lambda-attempt-1 ] - if: ${{ needs.node-lambda-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/node-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ node-lambda-attempt-1, node-lambda-attempt-2 ] - if: always() - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.node-lambda-attempt-1.outputs.validation-result || needs.node-lambda-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ node-lambda-attempt-1, node-lambda-attempt-2, publish-metric-attempt-1 ] - if: ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.node-lambda-attempt-1.outputs.validation-result || needs.node-lambda-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/python-lambda-canary.yml b/.github/workflows/python-lambda-canary.yml deleted file mode 100644 index 711c8bee0..000000000 --- a/.github/workflows/python-lambda-canary.yml +++ /dev/null @@ -1,32 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -## This workflow aims to run the Application Signals Python end-to-end tests as a canary to -## test the artifacts for Application Signals enablement. -name: Python Lambda Enablement Canary Testing -on: - schedule: - - cron: '20,45 * * * *' # run the workflow at 20th and 45th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - github: - strategy: - fail-fast: false - matrix: - 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', - 'ap-southeast-2','ap-southeast-3','ap-southeast-4','ca-central-1','eu-central-1','eu-central-2','eu-north-1', - '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', - 'us-east-1','us-east-2', 'us-west-1', 'us-west-2'] - uses: ./.github/workflows/python-lambda-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-python-e2e-lambda-canary-test' - python-version: '3.12' - cpu-architecture: 'x86_64' - diff --git a/.github/workflows/python-lambda-retry.yml b/.github/workflows/python-lambda-retry.yml deleted file mode 100644 index 9f81656f8..000000000 --- a/.github/workflows/python-lambda-retry.yml +++ /dev/null @@ -1,80 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -# This is a reusable workflow for running the Enablement test for App Signals. -# It is meant to be called from another workflow. -# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview -name: Python Lambda Default Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - python-version: - required: true - type: string - staging-wheel-name: - required: false - default: 'aws-opentelemetry-distro' - type: string - cpu-architecture: - required: false - type: string - default: "x86_64" - otel-source: - required: false - type: string - default: 'github' - -permissions: - id-token: write - contents: read - -jobs: - python-lambda-attempt-1: - uses: ./.github/workflows/python-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - staging-wheel-name: ${{ inputs.staging-wheel-name }} - otel-source: ${{ inputs.otel-source }} - cpu-architecture: ${{ inputs.cpu-architecture }} - - python-lambda-attempt-2: - needs: [ python-lambda-attempt-1 ] - if: ${{ needs.python-lambda-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/python-lambda-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - staging-wheel-name: ${{ inputs.staging-wheel-name }} - otel-source: ${{ inputs.otel-source }} - cpu-architecture: ${{ inputs.cpu-architecture }} - - publish-metric-attempt-1: - needs: [ python-lambda-attempt-1, python-lambda-attempt-2 ] - if: always() - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.python-lambda-attempt-1.outputs.validation-result || needs.python-lambda-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ python-lambda-attempt-1, python-lambda-attempt-2, publish-metric-attempt-1 ] - if: ${{ always() && needs.publish-metric-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/enablement-test-publish-result.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - validation-result: ${{ needs.python-lambda-attempt-1.outputs.validation-result || needs.python-lambda-attempt-2.outputs.validation-result }} \ No newline at end of file