From a53c008e5ad171758d3c31a630df67f7616ae766 Mon Sep 17 00:00:00 2001 From: Mahad Janjua Date: Fri, 21 Mar 2025 11:01:27 -0700 Subject: [PATCH] [.NET] Remove EKS/K8s/EC2 canaries --- .github/workflows/dotnet-ec2-canary.yml | 43 ------------ .../workflows/dotnet-ec2-default-retry.yml | 62 ----------------- .github/workflows/dotnet-ec2-nuget-retry.yml | 57 ---------------- .../workflows/dotnet-ec2-windows-retry.yml | 57 ---------------- .github/workflows/dotnet-eks-canary.yml | 37 ----------- .github/workflows/dotnet-eks-retry.yml | 66 ------------------- .github/workflows/dotnet-k8s-canary.yml | 26 -------- .github/workflows/dotnet-k8s-retry.yml | 61 ----------------- 8 files changed, 409 deletions(-) delete mode 100644 .github/workflows/dotnet-ec2-canary.yml delete mode 100644 .github/workflows/dotnet-ec2-default-retry.yml delete mode 100644 .github/workflows/dotnet-ec2-nuget-retry.yml delete mode 100644 .github/workflows/dotnet-ec2-windows-retry.yml delete mode 100644 .github/workflows/dotnet-eks-canary.yml delete mode 100644 .github/workflows/dotnet-eks-retry.yml delete mode 100644 .github/workflows/dotnet-k8s-canary.yml delete mode 100644 .github/workflows/dotnet-k8s-retry.yml diff --git a/.github/workflows/dotnet-ec2-canary.yml b/.github/workflows/dotnet-ec2-canary.yml deleted file mode 100644 index 5349c06ab..000000000 --- a/.github/workflows/dotnet-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 DotNet 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: Dotnet EC2 Enablement Canary Testing -on: - workflow_dispatch: # be able to run the workflow on demand - schedule: - - cron: '2,27 * * * *' # run the workflow at 2nd and 27th minute of every hour - -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-ec2-default-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-dotnet-e2e-ec2-canary-test' - dotnet-version: '8.0' - - nuget: - strategy: - fail-fast: false - matrix: - aws-region: [ 'us-east-1'] - uses: ./.github/workflows/dotnet-ec2-nuget-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - caller-workflow-name: 'appsignals-dotnet-e2e-ec2-nuget-canary-test' \ No newline at end of file diff --git a/.github/workflows/dotnet-ec2-default-retry.yml b/.github/workflows/dotnet-ec2-default-retry.yml deleted file mode 100644 index 604e3e142..000000000 --- a/.github/workflows/dotnet-ec2-default-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: Dotnet EC2 default Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - dotnet-version: - required: true - type: string - -permissions: - id-token: write - contents: read - -jobs: - dotnet-ec2-default-attempt-1: - uses: ./.github/workflows/dotnet-ec2-default-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - dotnet-version: ${{ inputs.dotnet-version }} - - dotnet-ec2-default-attempt-2: - needs: [ dotnet-ec2-default-attempt-1 ] - if: ${{ needs.dotnet-ec2-default-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-ec2-default-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - dotnet-version: ${{ inputs.dotnet-version }} - - publish-metric-attempt-1: - needs: [ dotnet-ec2-default-attempt-1, dotnet-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.dotnet-ec2-default-attempt-1.outputs.validation-result || needs.dotnet-ec2-default-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-ec2-default-attempt-1, dotnet-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.dotnet-ec2-default-attempt-1.outputs.validation-result || needs.dotnet-ec2-default-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/dotnet-ec2-nuget-retry.yml b/.github/workflows/dotnet-ec2-nuget-retry.yml deleted file mode 100644 index 3db5e8b91..000000000 --- a/.github/workflows/dotnet-ec2-nuget-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 EC2 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: - dotnet-ec2-nuget-attempt-1: - uses: ./.github/workflows/dotnet-ec2-nuget-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - dotnet-ec2-nuget-attempt-2: - needs: [ dotnet-ec2-nuget-attempt-1 ] - if: ${{ needs.dotnet-ec2-nuget-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-ec2-nuget-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ dotnet-ec2-nuget-attempt-1, dotnet-ec2-nuget-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-ec2-nuget-attempt-1.outputs.validation-result || needs.dotnet-ec2-nuget-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-ec2-nuget-attempt-1, dotnet-ec2-nuget-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-ec2-nuget-attempt-1.outputs.validation-result || needs.dotnet-ec2-nuget-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/dotnet-ec2-windows-retry.yml b/.github/workflows/dotnet-ec2-windows-retry.yml deleted file mode 100644 index d2097b517..000000000 --- a/.github/workflows/dotnet-ec2-windows-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 EC2 Windows 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-ec2-windows-attempt-1: - uses: ./.github/workflows/dotnet-ec2-windows-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - dotnet-ec2-windows-attempt-2: - needs: [ dotnet-ec2-windows-attempt-1 ] - if: ${{ needs.dotnet-ec2-windows-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-ec2-windows-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ dotnet-ec2-windows-attempt-1, dotnet-ec2-windows-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-ec2-windows-attempt-1.outputs.validation-result || needs.dotnet-ec2-windows-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-ec2-windows-attempt-1, dotnet-ec2-windows-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-ec2-windows-attempt-1.outputs.validation-result || needs.dotnet-ec2-windows-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/dotnet-eks-canary.yml b/.github/workflows/dotnet-eks-canary.yml deleted file mode 100644 index dc005799c..000000000 --- a/.github/workflows/dotnet-eks-canary.yml +++ /dev/null @@ -1,37 +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 DotNet 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: Dotnet EKS Enablement Canary Testing -on: - schedule: - - cron: '4,29 * * * *' # run the workflow at 4th and 29th minute of every hour - workflow_dispatch: # be able to run the workflow on demand - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false - -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/dotnet-eks-retry.yml - secrets: inherit - with: - aws-region: ${{ matrix.aws-region }} - test-cluster-name: 'e2e-dotnet-canary-test' - caller-workflow-name: 'appsignals-dotnet-e2e-eks-canary-test' \ No newline at end of file diff --git a/.github/workflows/dotnet-eks-retry.yml b/.github/workflows/dotnet-eks-retry.yml deleted file mode 100644 index 5f19cbc61..000000000 --- a/.github/workflows/dotnet-eks-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: Dotnet 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 - -concurrency: - group: 'dotnet-eks-${{ inputs.aws-region }}-${{ inputs.test-cluster-name }}' - cancel-in-progress: false - -permissions: - id-token: write - contents: read - -jobs: - dotnet-eks-attempt-1: - uses: ./.github/workflows/dotnet-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 }} - - dotnet-eks-attempt-2: - needs: [ dotnet-eks-attempt-1 ] - if: ${{ needs.dotnet-eks-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-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 }} - - publish-metric-attempt-1: - needs: [ dotnet-eks-attempt-1, dotnet-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.dotnet-eks-attempt-1.outputs.validation-result || needs.dotnet-eks-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-eks-attempt-1, dotnet-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.dotnet-eks-attempt-1.outputs.validation-result || needs.dotnet-eks-attempt-2.outputs.validation-result }} \ No newline at end of file diff --git a/.github/workflows/dotnet-k8s-canary.yml b/.github/workflows/dotnet-k8s-canary.yml deleted file mode 100644 index 0bcc39344..000000000 --- a/.github/workflows/dotnet-k8s-canary.yml +++ /dev/null @@ -1,26 +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. It will deploy the CloudWatch Agent -## 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: Dotnet 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/dotnet-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-dotnet-k8s-canary-test' \ No newline at end of file diff --git a/.github/workflows/dotnet-k8s-retry.yml b/.github/workflows/dotnet-k8s-retry.yml deleted file mode 100644 index c81b2efd2..000000000 --- a/.github/workflows/dotnet-k8s-retry.yml +++ /dev/null @@ -1,61 +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 K8s Retry -on: - workflow_call: - inputs: - aws-region: - required: true - type: string - caller-workflow-name: - required: true - type: string - -concurrency: - group: 'dotnet-k8s-${{ inputs.aws-region }}-${{ github.ref_name }}' - cancel-in-progress: false - -permissions: - id-token: write - contents: read - -jobs: - dotnet-k8s-attempt-1: - uses: ./.github/workflows/dotnet-k8s-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - dotnet-k8s-attempt-2: - needs: [ dotnet-k8s-attempt-1 ] - if: ${{ needs.dotnet-k8s-attempt-1.outputs.job-started != 'true' }} - uses: ./.github/workflows/dotnet-k8s-test.yml - secrets: inherit - with: - aws-region: ${{ inputs.aws-region }} - caller-workflow-name: ${{ inputs.caller-workflow-name }} - - publish-metric-attempt-1: - needs: [ dotnet-k8s-attempt-1, dotnet-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.dotnet-k8s-attempt-1.outputs.validation-result || needs.dotnet-k8s-attempt-2.outputs.validation-result }} - - publish-metric-attempt-2: - needs: [ dotnet-k8s-attempt-1, dotnet-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.dotnet-k8s-attempt-1.outputs.validation-result || needs.dotnet-k8s-attempt-2.outputs.validation-result }} \ No newline at end of file