Skip to content

Commit 7e54edf

Browse files
committed
reduce main build
1 parent 38bfe35 commit 7e54edf

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

.github/workflows/main-build.yml

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -62,70 +62,70 @@ jobs:
6262
package_name: aws-opentelemetry-distro
6363
os: ubuntu-latest
6464

65-
# workaround: prefixing the short-sha with a 0 to create a valid
66-
# wheel file name as per https://peps.python.org/pep-0427/#file-name-convention
67-
- name: Output Wheel File Name
68-
id: staging_wheel_output
69-
run: |
70-
staging_wheel="aws_opentelemetry_distro-${{ steps.python_output.outputs.ADOT_PYTHON_VERSION}}-0${{ env.SHORT_SHA }}-py3-none-any.whl"
71-
echo "STAGING_WHEEL=$staging_wheel" >> $GITHUB_OUTPUT
72-
cd ./dist
73-
cp aws_opentelemetry_distro-${{ steps.python_output.outputs.ADOT_PYTHON_VERSION}}-py3-none-any.whl $staging_wheel
65+
# # workaround: prefixing the short-sha with a 0 to create a valid
66+
# # wheel file name as per https://peps.python.org/pep-0427/#file-name-convention
67+
# - name: Output Wheel File Name
68+
# id: staging_wheel_output
69+
# run: |
70+
# staging_wheel="aws_opentelemetry_distro-${{ steps.python_output.outputs.ADOT_PYTHON_VERSION}}-0${{ env.SHORT_SHA }}-py3-none-any.whl"
71+
# echo "STAGING_WHEEL=$staging_wheel" >> $GITHUB_OUTPUT
72+
# cd ./dist
73+
# cp aws_opentelemetry_distro-${{ steps.python_output.outputs.ADOT_PYTHON_VERSION}}-py3-none-any.whl $staging_wheel
7474

75-
- name: Build and Publish Lambda Staging Layer
76-
uses: ./.github/actions/lambda_artifacts_build
77-
with:
78-
aws-region: ${{ env.AWS_DEFAULT_REGION }}
79-
snapshot-ecr-role: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
80-
python_version: "3.12"
81-
layer_directory: lambda-layer
82-
staging_s3_bucket: ${{ env.STAGING_S3_BUCKET }}
83-
os: ubuntu-latest
75+
# - name: Build and Publish Lambda Staging Layer
76+
# uses: ./.github/actions/lambda_artifacts_build
77+
# with:
78+
# aws-region: ${{ env.AWS_DEFAULT_REGION }}
79+
# snapshot-ecr-role: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
80+
# python_version: "3.12"
81+
# layer_directory: lambda-layer
82+
# staging_s3_bucket: ${{ env.STAGING_S3_BUCKET }}
83+
# os: ubuntu-latest
8484

85-
- name: Upload wheel to S3
86-
run: |
87-
aws s3 cp dist/${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}} s3://${{ env.STAGING_S3_BUCKET }}
85+
# - name: Upload wheel to S3
86+
# run: |
87+
# aws s3 cp dist/${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}} s3://${{ env.STAGING_S3_BUCKET }}
8888

89-
- name: Upload Wheel to GitHub Actions
90-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
91-
with:
92-
name: ${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}}
93-
path: dist/${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}}
89+
# - name: Upload Wheel to GitHub Actions
90+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
91+
# with:
92+
# name: ${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}}
93+
# path: dist/${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}}
9494

95-
- name: Set up and run contract tests with pytest
96-
run: |
97-
bash scripts/set-up-contract-tests.sh
98-
pip install pytest
99-
pytest contract-tests/tests
95+
# - name: Set up and run contract tests with pytest
96+
# run: |
97+
# bash scripts/set-up-contract-tests.sh
98+
# pip install pytest
99+
# pytest contract-tests/tests
100100

101-
application-signals-e2e-test:
102-
name: "Application Signals E2E Test"
103-
needs: [ build ]
104-
uses: ./.github/workflows/application-signals-e2e-test.yml
105-
secrets: inherit
106-
permissions:
107-
id-token: write
108-
contents: read
109-
with:
110-
staging-wheel-name: ${{ needs.build.outputs.staging_wheel_file }}
111-
adot-image-name: ${{ needs.build.outputs.staging_registry }}/aws-observability/adot-autoinstrumentation-python-staging:${{ needs.build.outputs.python_image_tag }}
101+
# application-signals-e2e-test:
102+
# name: "Application Signals E2E Test"
103+
# needs: [ build ]
104+
# uses: ./.github/workflows/application-signals-e2e-test.yml
105+
# secrets: inherit
106+
# permissions:
107+
# id-token: write
108+
# contents: read
109+
# with:
110+
# staging-wheel-name: ${{ needs.build.outputs.staging_wheel_file }}
111+
# adot-image-name: ${{ needs.build.outputs.staging_registry }}/aws-observability/adot-autoinstrumentation-python-staging:${{ needs.build.outputs.python_image_tag }}
112112

113-
publish-main-build-status:
114-
name: "Publish Main Build Status"
115-
needs: [ build, application-signals-e2e-test ]
116-
runs-on: ubuntu-latest
117-
if: always()
118-
steps:
119-
- name: Configure AWS Credentials for emitting metrics
120-
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0
121-
with:
122-
role-to-assume: ${{ secrets.MONITORING_ROLE_ARN }}
123-
aws-region: ${{ env.AWS_DEFAULT_REGION }}
113+
# publish-main-build-status:
114+
# name: "Publish Main Build Status"
115+
# needs: [ build, application-signals-e2e-test ]
116+
# runs-on: ubuntu-latest
117+
# if: always()
118+
# steps:
119+
# - name: Configure AWS Credentials for emitting metrics
120+
# uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0
121+
# with:
122+
# role-to-assume: ${{ secrets.MONITORING_ROLE_ARN }}
123+
# aws-region: ${{ env.AWS_DEFAULT_REGION }}
124124

125-
- name: Publish main build status
126-
run: |
127-
value="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' && '0.0' || '1.0'}}"
128-
aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
129-
--metric-name Failure \
130-
--dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=main_build \
131-
--value $value
125+
# - name: Publish main build status
126+
# run: |
127+
# value="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' && '0.0' || '1.0'}}"
128+
# aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
129+
# --metric-name Failure \
130+
# --dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=main_build \
131+
# --value $value

0 commit comments

Comments
 (0)