diff --git a/.github/workflows/python-ec2-canary.yml b/.github/workflows/python-ec2-canary.yml deleted file mode 100644 index e79628def..000000000 --- a/.github/workflows/python-ec2-canary.yml +++ /dev/null @@ -1,43 +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. It will deploy a sample app and remote -## service on two EC2 instances, call the APIs, and validate the generated telemetry, -## including logs, metrics, and traces. -name: Python EC2 Enablement Canary Testing -on: - schedule: - - cron: '16,41 * * * *' # run the workflow at 16th and 41th 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-ec2-default-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-python-e2e-ec2-canary-test' - python-version: '3.9' - cpu-architecture: 'x86_64' - - pypi: - uses: ./.github/workflows/python-ec2-default-retry.yml - secrets: inherit - with: - aws-region: 'us-east-1' - caller-workflow-name: 'appsignals-python-e2e-ec2-pypi-canary-test' - python-version: '3.9' - otel-source: 'pypi' - cpu-architecture: 'x86_64' diff --git a/.github/workflows/python-ec2-default-retry.yml b/.github/workflows/python-ec2-default-retry.yml deleted file mode 100644 index 92ad1d61b..000000000 --- a/.github/workflows/python-ec2-default-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 EC2 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-ec2-default-attempt-1: - uses: ./.github/workflows/python-ec2-default-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-ec2-default-attempt-2: - needs: [ python-ec2-default-attempt-1 ] - if: ${{ needs.python-ec2-default-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/python-ec2-default-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-ec2-default-attempt-1, python-ec2-default-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-ec2-default-attempt-1.outputs.validation-result || needs.python-ec2-default-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ python-ec2-default-attempt-1, python-ec2-default-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-ec2-default-attempt-1.outputs.validation-result || needs.python-ec2-default-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/python-ecs-canary.yml b/.github/workflows/python-ecs-canary.yml deleted file mode 100644 index 9dcc4d8b5..000000000 --- a/.github/workflows/python-ecs-canary.yml +++ /dev/null @@ -1,28 +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. It will deploy a sample app onto an ECS cluster, -## call the APIs, and validate the generated telemetry, including logs, metrics, and traces. -name: Python ECS Enablement Canary Testing -on: - schedule: - - cron: '0,25 * * * *' # run the workflow at 0th and 25th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - ecs: - strategy: - fail-fast: false - matrix: - aws-region: ['us-east-1'] - uses: ./.github/workflows/python-ecs-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-e2e-python-ecs-canary-test' - python-version: '3.10' \ No newline at end of file diff --git a/.github/workflows/python-ecs-retry.yml b/.github/workflows/python-ecs-retry.yml deleted file mode 100644 index 5d3be66ec..000000000 --- a/.github/workflows/python-ecs-retry.yml +++ /dev/null @@ -1,62 +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 ECS Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - python-version: - required: true - type: string - -permissions: - id-token: write - contents: read - -jobs: - python-ecs-attempt-1: - uses: ./.github/workflows/python-ecs-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - python-ecs-attempt-2: - needs: [ python-ecs-attempt-1 ] - if: ${{ needs.python-ecs-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/python-ecs-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - publish-metric-attempt-1: - needs: [ python-ecs-attempt-1, python-ecs-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-ecs-attempt-1.outputs.validation-result || needs.python-ecs-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ python-ecs-attempt-1, python-ecs-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-ecs-attempt-1.outputs.validation-result || needs.python-ecs-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/python-eks-canary.yml b/.github/workflows/python-eks-canary.yml deleted file mode 100644 index 203844e6e..000000000 --- a/.github/workflows/python-eks-canary.yml +++ /dev/null @@ -1,34 +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. It will deploy a sample app and remote -## service onto an EKS cluster, call the APIs, and validate the generated telemetry, -## including logs, metrics, and traces. -name: Python EKS Enablement Canary Testing -on: - schedule: - - cron: '18,43 * * * *' # run the workflow at 18th and 43th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - - -jobs: - eks: - 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-eks-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - test-cluster-name: 'e2e-python-canary-test' - caller-workflow-name: 'appsignals-python-e2e-eks-canary-test' - python-version: '3.10' diff --git a/.github/workflows/python-eks-retry.yml b/.github/workflows/python-eks-retry.yml deleted file mode 100644 index de2dee909..000000000 --- a/.github/workflows/python-eks-retry.yml +++ /dev/null @@ -1,71 +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 EKS Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - test-cluster-name: - required: true - type: string - caller-workflow-name: - required: true - type: string - python-version: - required: true - type: string - -concurrency: - group: 'python-eks-${{ inputs.aws-region }}-${{ inputs.test-cluster-name }}' - cancel-in-progress: false - -permissions: - id-token: write - contents: read - -jobs: - python-eks-attempt-1: - uses: ./.github/workflows/python-eks-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - test-cluster-name: ${{ inputs.test-cluster-name }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - python-eks-attempt-2: - needs: [ python-eks-attempt-1 ] - if: ${{ needs.python-eks-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/python-eks-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - test-cluster-name: ${{ inputs.test-cluster-name }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - publish-metric-attempt-1: - needs: [ python-eks-attempt-1, python-eks-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-eks-attempt-1.outputs.validation-result || needs.python-eks-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ python-eks-attempt-1, python-eks-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-eks-attempt-1.outputs.validation-result || needs.python-eks-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/python-k8s-canary.yml b/.github/workflows/python-k8s-canary.yml deleted file mode 100644 index 5d5395b69..000000000 --- a/.github/workflows/python-k8s-canary.yml +++ /dev/null @@ -1,25 +0,0 @@ -## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -## SPDX-License-Identifier: Apache-2.0 - -## Operator and our sample app and remote service onto a native K8s cluster, call the -## APIs, and validate the generated telemetry, including logs, metrics, and traces. -## It will then clean up the cluster and EC2 instance it runs on for the next test run. -name: Python K8s Enablement Canary Testing -on: - schedule: - - cron: '0,25 * * * *' # run the workflow at 0th and 25th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -permissions: - id-token: write - contents: read - -jobs: - k8s: - uses: ./.github/workflows/python-k8s-retry.yml - secrets: inherit - with: - # To run in more regions, a cluster must be provisioned manually on EC2 instances in that region - aws-region: 'us-east-1' - caller-workflow-name: 'appsignals-e2e-python-k8s-canary-test' - python-version: '3.10' \ No newline at end of file diff --git a/.github/workflows/python-k8s-retry.yml b/.github/workflows/python-k8s-retry.yml deleted file mode 100644 index 02db43d36..000000000 --- a/.github/workflows/python-k8s-retry.yml +++ /dev/null @@ -1,66 +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 K8s Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - python-version: - required: true - type: string - -concurrency: - group: 'python-k8s-${{ inputs.aws-region }}-${{ github.ref_name }}' - cancel-in-progress: false - -permissions: - id-token: write - contents: read - -jobs: - python-k8s-attempt-1: - uses: ./.github/workflows/python-k8s-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - python-k8s-attempt-2: - needs: [ python-k8s-attempt-1 ] - if: ${{ needs.python-k8s-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/python-k8s-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - python-version: ${{ inputs.python-version }} - - publish-metric-attempt-1: - needs: [ python-k8s-attempt-1, python-k8s-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-k8s-attempt-1.outputs.validation-result || needs.python-k8s-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ python-k8s-attempt-1, python-k8s-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-k8s-attempt-1.outputs.validation-result || needs.python-k8s-attempt-2.outputs.validation-result }} \ No newline at end of file