Skip to content

Commit dea5828

Browse files
committed
test
1 parent f3c6635 commit dea5828

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

.github/workflows/python-ec2-genai-test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
## SPDX-License-Identifier: Apache-2.0
33

4-
name: Python EC2 LangChain Service Deployment
4+
name: Python EC2 Gen AI Use Case
55
on:
66
workflow_call:
77
inputs:
@@ -24,15 +24,13 @@ permissions:
2424

2525
env:
2626
E2E_TEST_AWS_REGION: 'us-west-2'
27-
# E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
28-
# E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
29-
E2E_TEST_ACCOUNT_ID: 571600841604
27+
E2E_TEST_ACCOUNT_ID: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}
28+
E2E_TEST_ROLE_NAME: ${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
3029
ADOT_WHEEL_NAME: ${{ inputs.staging-wheel-name }}
31-
E2E_TEST_ROLE_NAME: github
3230
METRIC_NAMESPACE: genesis
3331
LOG_GROUP_NAME: test/genesis
3432
TEST_RESOURCES_FOLDER: ${GITHUB_WORKSPACE}
35-
SAMPLE_APP_ZIP: s3://sigv4perfresults/langchain-service.zip
33+
SAMPLE_APP_ZIP: s3://aws-appsignals-sample-app-prod-us-east-1/python-genai-sample-app.zip
3634

3735
jobs:
3836
python-ec2-adot-genai:
@@ -41,8 +39,8 @@ jobs:
4139
steps:
4240
- uses: actions/checkout@v4
4341

44-
# - name: Set Get ADOT Wheel command environment variable
45-
# run: |
42+
- name: Set Get ADOT Wheel command environment variable
43+
run: echo GET_ADOT_WHEEL_COMMAND="aws s3 cp s3://adot-main-build-staging-jar/${{ env.ADOT_WHEEL_NAME }} ./${{ env.ADOT_WHEEL_NAME }} && sudo python${{ env.PYTHON_VERSION }} -m pip install ${{ env.ADOT_WHEEL_NAME }}" >> $GITHUB_ENV
4644
# if [ "${{ github.event.repository.name }}" = "aws-otel-python-instrumentation" ]; then
4745
# # Reusing the adot-main-build-staging-jar bucket to store the python wheel file
4846
# echo GET_ADOT_WHEEL_COMMAND="aws s3 cp s3://adot-main-build-staging-jar/${{ env.ADOT_WHEEL_NAME }} ./${{ env.ADOT_WHEEL_NAME }} && sudo python${{ env.PYTHON_VERSION }} -m pip install ${{ env.ADOT_WHEEL_NAME }}" >> $GITHUB_ENV

.github/workflows/python-sample-app-s3-deploy.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@ jobs:
4646
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ secrets.E2E_TEST_ROLE_ARN }}
4747
aws-region: ${{ matrix.aws-region }}
4848

49-
# - name: Build Sample App Zip
50-
# working-directory: sample-apps/python
51-
# run: zip -r python-sample-app.zip .
49+
- name: Build Sample App Zip
50+
working-directory: sample-apps/python
51+
run: zip -r python-sample-app.zip .
5252

53-
# - name: Upload to S3
54-
# working-directory: sample-apps/python
55-
# run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip
53+
- name: Upload to S3
54+
working-directory: sample-apps/python
55+
run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip
5656

57-
# - name: Build Lambda Sample App
58-
# uses: actions/checkout@v4
59-
# with:
60-
# repository: 'aws-observability/aws-otel-python-instrumentation'
61-
# - name: Build sample lambda function
62-
# shell: bash
63-
# run: ./package-lambda-function.sh
64-
# working-directory: lambda-layer/sample-apps
57+
- name: Build Lambda Sample App
58+
uses: actions/checkout@v4
59+
with:
60+
repository: 'aws-observability/aws-otel-python-instrumentation'
61+
- name: Build sample lambda function
62+
shell: bash
63+
run: ./package-lambda-function.sh
64+
working-directory: lambda-layer/sample-apps
6565

66-
# - name: Upload to Lambda Sample App to S3
67-
# working-directory: lambda-layer/sample-apps
68-
# run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./build/function.zip --key pyfunction.zip
66+
- name: Upload to Lambda Sample App to S3
67+
working-directory: lambda-layer/sample-apps
68+
run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./build/function.zip --key pyfunction.zip
6969

7070
- name: Build GenAI Sample App Zip
7171
working-directory: sample-apps/python/genai_service

0 commit comments

Comments
 (0)