Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Oct 2, 2024
1 parent df5f376 commit ff9ec5f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 81 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/java-eks-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ jobs:
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
--rollup'

- name: test
run: sleep 500

- name: Refresh AWS Credentials
if: ${{ github.event.repository.name == 'aws-application-signals-test-framework' }}
uses: aws-actions/configure-aws-credentials@v4
Expand Down
77 changes: 3 additions & 74 deletions .github/workflows/java-sample-app-ecr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
name: Sample App Deployment - Java ECR
on:
workflow_dispatch:
push:

permissions:
id-token: write
Expand All @@ -18,83 +19,11 @@ env:
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}

jobs:
java-v11-main:
strategy:
fail-fast: false
matrix:
aws-region: [ 'us-east-1' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.E2E_TEST_ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
aws-region: us-east-1

- name: Retrieve account
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
ACCOUNT_ID, region-account/${{ matrix.aws-region }}
JAVA_MAIN_SAMPLE_APP_IMAGE, e2e-test/java-main-sample-app-image
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
aws-region: ${{ matrix.aws-region }}

- name: Build and Upload Main Service Image
working-directory: sample-apps/java/springboot-main-service
run: |
sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.ACCOUNT_ID }}.dkr.ecr.${{ matrix.aws-region }}.amazonaws.com/${{ env.JAVA_MAIN_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts
gradle jib -P javaVersion=11
java-v11-remote:
strategy:
fail-fast: false
matrix:
aws-region: [ 'us-east-1' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.E2E_TEST_ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
aws-region: us-east-1

- name: Retrieve account
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
ACCOUNT_ID, region-account/${{ matrix.aws-region }}
JAVA_REMOTE_SAMPLE_APP_IMAGE, e2e-test/java-remote-sample-app-image
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
aws-region: ${{ matrix.aws-region }}

- name: Build and Upload Remote Service Image
working-directory: sample-apps/java/springboot-remote-service
run: |
sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.ACCOUNT_ID }}.dkr.ecr.${{ matrix.aws-region }}.amazonaws.com/${{ env.JAVA_REMOTE_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts
gradle jib -P javaVersion=11
java-main:
strategy:
fail-fast: false
matrix:
java-version: [ '8', '17', '21', '22' ]
java-version: [ '8' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -134,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java-version: [ '8', '17', '21', '22' ]
java-version: [ '8' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/python-eks-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ jobs:
--query-string ip=${{ env.REMOTE_SERVICE_POD_IP }}&testingId=${{ env.TESTING_ID }}
--rollup'

- name: test
run: sleep 500

- name: Refresh AWS Credentials
if: ${{ github.event.repository.name == 'aws-application-signals-test-framework' }}
uses: aws-actions/configure-aws-credentials@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
## including logs, metrics, and traces.
name: Java EKS Enablement Canary Testing
on:
push:
# push:
workflow_dispatch:


permissions:
id-token: write
Expand Down
3 changes: 0 additions & 3 deletions sample-apps/java/springboot-main-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ plugins {
id("org.springframework.boot")
id("io.spring.dependency-management") version "1.1.0"
id("com.google.cloud.tools.jib")
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0"
}

group = "com.amazon.sampleapp"
Expand All @@ -47,8 +46,6 @@ dependencies {
implementation("software.amazon.awssdk:sts")
implementation("com.mysql:mysql-connector-j:8.4.0")
implementation ("org.apache.httpcomponents:httpclient:4.5.13")
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.20")
testImplementation("org.jetbrains.kotlin:kotlin-test:2.0.20")
}

jib {
Expand Down

0 comments on commit ff9ec5f

Please sign in to comment.