generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 23
[Dotnet] Implement EKS Linux E2E Test #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
450fe47
Sperate Linux EKS to base on main, avoid depends on windows merge result
XinRanZhAWS 0b9090e
Sperate Linux EKS to base on main, avoid depends on windows merge result
XinRanZhAWS 77e14d6
to move to seperate folder for linux
XinRanZhAWS 3c86732
to move to seperate folder for linux
XinRanZhAWS 4972607
test
XinRanZhAWS b9b987d
avoid unneeded env var
XinRanZhAWS 48be323
fix aws sdk for linux EKS
XinRanZhAWS 22c0a65
Merge branch 'main' into dotnet-eks-linux
XinRanZhAWS 192c0cb
fix comments
XinRanZhAWS 77dc858
Remove status code
XinRanZhAWS 4991a16
only test run on ICN to avoid breaking change issue, revert me
XinRanZhAWS 936c86d
Fix expect result
XinRanZhAWS ca2046a
Fix healthcheck expect result
XinRanZhAWS be0c025
Revert "only test run on ICN to avoid breaking change issue, revert me"
XinRanZhAWS 00f64d2
Merge Prepare
XinRanZhAWS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| ## 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: '*/15 * * * *' # run the workflow every 15 minutes | ||
| workflow_dispatch: # be able to run the workflow on demand | ||
| push: | ||
| branches: | ||
| - "dotnet-eks-linux" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }} | ||
| cancel-in-progress: false | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
|
|
||
| jobs: | ||
| dotnet-e2e-eks-test: | ||
| 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' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| ## 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 }}-${{ github.ref_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 }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.