Skip to content

Commit e66f7a0

Browse files
committed
Test
1 parent 9005f19 commit e66f7a0

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.github/workflows/actions/execute_and_retry/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
name: Command Retry Logic
33

44
inputs:
5+
# (Optional) Command to run before the retry command. To be used for environment setup, etc
56
pre-command:
67
required: false
78
type: string
9+
# (Optional) Number of retries to perform. Default is 2
810
max_retry:
911
required: false
1012
type: number
1113
default: 2
14+
# (Required) Command to execute with the retry mechanism
1215
command:
1316
required: true
1417
type: string
18+
# (Required) Command to clean up resources before retrying the main command
1519
cleanup:
1620
required: false
1721
type: string
22+
# (Optional) Follow-up command after the main command is finished.
1823
post-command:
1924
required: false
2025
type: string

.github/workflows/appsignals-e2e-ec2-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ jobs:
180180
- name: Build Gradlew
181181
uses: ./.github/workflows/actions/execute_and_retry
182182
with:
183+
max_retry: 4
183184
command: "./gradlew"
184185

185186
# Validation for pulse telemetry data

.github/workflows/appsignals-e2e-eks-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ jobs:
277277
- name: Build Gradlew
278278
uses: ./.github/workflows/actions/execute_and_retry
279279
with:
280+
max_retry: 4
280281
command: "./gradlew"
281282

282283
# Validation for app signals telemetry data

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
3+
4+
## This workflow aims to run the Application Signals end-to-end tests as a canary to
5+
## test the artifacts for App Signals enablement. It will deploy a sample app and remote
6+
## service on two EC2 instances, call the APIs, and validate the generated telemetry,
7+
## including logs, metrics, and traces.
8+
name: Test
9+
on:
10+
push:
11+
12+
permissions:
13+
id-token: write
14+
contents: read
15+
16+
jobs:
17+
e2e-ec2-test:
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
aws-region: ['us-east-1']
22+
uses: ./.github/workflows/appsignals-e2e-ec2-test.yml
23+
secrets: inherit
24+
with:
25+
aws-region: ${{ matrix.aws-region }}
26+
caller-workflow-name: 'test'
27+
28+
e2e-eks-test:
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
aws-region: ['us-east-1']
33+
uses: ./.github/workflows/appsignals-e2e-eks-test.yml
34+
secrets: inherit
35+
with:
36+
aws-region: ${{ matrix.aws-region }}
37+
test-cluster-name: 'e2e-playground'
38+
caller-workflow-name: "test"

0 commit comments

Comments
 (0)