Skip to content
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

Consolidate release testing with framework repo #192

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 53 additions & 33 deletions .github/workflows/application-signals-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,69 @@
# This is a reusable workflow for running the E2E test for App Signals for all language.
# It is meant to be called from another workflow.
name: App Signals Enablement E2E Testing
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: Apache-2.0

# This is a reusable workflow for running the E2E test for Application 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: E2E Testing
on:
workflow_dispatch:
workflow_call:
inputs:
# Ensure two tests do not run on the same cluster at the same time through GitHub Action concurrency
test-java-cluster-name:
required: false
default: 'e2e-cw-agent-operator-test'
type: string
test-python-cluster-name:
required: false
default: 'e2e-cw-agent-operator-python-test'
type: string
tag:
description: 'Staging Artifact Tag'
required: false
default: 'staging'
required: true
type: string

permissions:
id-token: write
contents: read

concurrency:
group: '${{ github.workflow }} @ ${{ inputs.aws-region }}'
cancel-in-progress: false


jobs:
java-e2e-tests:
# Two E2E tests should not run at the same time in the same EKS cluster
concurrency:
group: 'e2e-cw-agent-java-operator-test'
cancel-in-progress: false
java-eks-e2e-test:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-eks-e2e-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-cw-agent-operator-test'
caller-workflow-name: 'main-build'
cw-agent-operator-tag: ${{ inputs.tag }}

java-metric-limiter-e2e-test:
needs: [ java-eks-e2e-test ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-metric-limiter-e2e-test.yml@main
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-cw-agent-operator-test'
caller-workflow-name: 'main-build'
cw-agent-operator-tag: ${{ inputs.tag }}

java-k8s-e2e-test:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/java-k8s-e2e-test.yml@main
secrets: inherit
uses: ./.github/workflows/application-signals-java-e2e-test.yml
with:
test-java-cluster-name: ${{ inputs.test-java-cluster-name }}
tag: ${{ inputs.tag }}

python-e2e-tests:
# Two E2E tests should not run at the same time in the same EKS cluster
concurrency:
group: 'e2e-cw-agent-python-operator-test'
cancel-in-progress: false
aws-region: us-east-1
caller-workflow-name: 'main-build'
cw-agent-operator-tag: ${{ inputs.tag }}

python-eks-e2e-test:
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/python-eks-e2e-test.yml@main
needs: [ java-metric-limiter-e2e-test ]
secrets: inherit
with:
aws-region: us-east-1
test-cluster-name: 'e2e-cw-agent-operator-python-test'
caller-workflow-name: 'main-build'
cw-agent-operator-tag: ${{ inputs.tag }}

python-k8s-e2e-test:
needs: [ java-k8s-e2e-test ]
uses: aws-observability/aws-application-signals-test-framework/.github/workflows/python-k8s-e2e-test.yml@main
secrets: inherit
uses: ./.github/workflows/application-signals-python-e2e-test.yml
with:
test-python-cluster-name: ${{ inputs.test-python-cluster-name }}
tag: ${{ inputs.tag }}
aws-region: us-east-1
caller-workflow-name: 'main-build'
cw-agent-operator-tag: ${{ inputs.tag }}
Loading
Loading