Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e74800c
add nightly build with scripts
ezhang6811 Sep 23, 2025
7252cb3
add otlp exporter dependency
ezhang6811 Sep 23, 2025
e56456b
create PR earlier
ezhang6811 Sep 23, 2025
c2d895d
add test branch
ezhang6811 Sep 23, 2025
6cc475d
remove dependencies label
ezhang6811 Sep 23, 2025
e9c78dd
only push to one branch
ezhang6811 Sep 23, 2025
7349738
add BRANCH_NAME var
ezhang6811 Sep 23, 2025
ca80bbb
update dependency update script
ezhang6811 Sep 23, 2025
cdbfea2
fix checkout
ezhang6811 Sep 23, 2025
feb2005
exit workflow early
ezhang6811 Sep 23, 2025
d9d2dfe
update independent dependency versions
ezhang6811 Sep 23, 2025
e2a6c4c
update comments
ezhang6811 Sep 23, 2025
b074e69
call main build directly from nightly build
ezhang6811 Sep 23, 2025
3fb046f
comment fix
ezhang6811 Sep 23, 2025
351813e
lint fixes
ezhang6811 Sep 23, 2025
9d57171
use SHAs instead of versions for actions
ezhang6811 Sep 23, 2025
9f0ebbb
lint
ezhang6811 Sep 23, 2025
60b627a
lint fixes
ezhang6811 Sep 23, 2025
1544468
more lint
ezhang6811 Sep 23, 2025
a6d58c1
more lint
ezhang6811 Sep 23, 2025
e84deb6
add headers to python scripts
ezhang6811 Sep 23, 2025
51a9ee0
remove push trigger
ezhang6811 Sep 23, 2025
957024b
call main build on nightly build branch
ezhang6811 Sep 23, 2025
076e529
add test branch to push to
ezhang6811 Sep 23, 2025
30d7d0a
Revert "add test branch to push to"
ezhang6811 Sep 23, 2025
f3b7a09
remove extra dependency
ezhang6811 Sep 24, 2025
5182877
always checkout branch and update
ezhang6811 Sep 24, 2025
9efd150
Revert "call main build on nightly build branch"
ezhang6811 Sep 25, 2025
5ebbe34
add links to breaking changes in PR
ezhang6811 Sep 25, 2025
1b56b75
add push trigger for testing
ezhang6811 Sep 25, 2025
2f26b9c
check breaking changes before updating
ezhang6811 Sep 25, 2025
0329b09
update PR for existing branch
ezhang6811 Sep 25, 2025
4db8d3e
update PR correctly if new breaking changes are found
ezhang6811 Sep 25, 2025
84706be
fix PR formatting
ezhang6811 Sep 25, 2025
d9d3a9a
search for open PR in branch
ezhang6811 Sep 25, 2025
1357fc8
PR format fix
ezhang6811 Sep 25, 2025
74c6fb4
publish metric for nightly build failures
ezhang6811 Sep 25, 2025
f5ba036
add permission to configure AWS credentials
ezhang6811 Sep 25, 2025
8b05265
add write and pr permissions
ezhang6811 Sep 25, 2025
dda3ac0
Revert "add test branch to push to"
ezhang6811 Sep 25, 2025
63b72f3
lint fixes for breaking changes script
ezhang6811 Sep 25, 2025
1c7bdf3
lint fix
ezhang6811 Sep 27, 2025
bb66be4
check for breaking changes as headers
ezhang6811 Sep 27, 2025
692abde
test trigger
ezhang6811 Sep 27, 2025
12cc0e5
Revert "check for breaking changes as headers"
ezhang6811 Sep 27, 2025
959702b
chore: update OpenTelemetry dependencies to 1.37.0/0.58b0
actions-user Sep 27, 2025
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
10 changes: 9 additions & 1 deletion .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
- "release/v*"
- ci-workflow
workflow_dispatch: # be able to run the workflow on demand
workflow_call:
inputs:
ref:
description: 'Git ref to checkout'
required: false
type: string
env:
AWS_DEFAULT_REGION: us-east-1
STAGING_ECR_REGISTRY: 637423224110.dkr.ecr.us-east-1.amazonaws.com
Expand Down Expand Up @@ -34,6 +40,8 @@ jobs:
steps:
- name: Checkout Repo @ SHA - ${{ github.sha }}
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
with:
ref: ${{ inputs.ref || github.sha }}

- name: Get Python Distro Output
id: python_output
Expand Down Expand Up @@ -114,7 +122,7 @@ jobs:
name: "Publish Main Build Status"
needs: [ build, application-signals-e2e-test ]
runs-on: ubuntu-latest
if: always()
if: always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
steps:
- name: Configure AWS Credentials for emitting metrics
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0
Expand Down
150 changes: 150 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
name: Nightly Upstream Snapshot Build

on:
schedule:
- cron: "21 3 * * *"
workflow_dispatch:
push:
branches:
- zhaez/nightly-build

env:
AWS_DEFAULT_REGION: us-east-1
BRANCH_NAME: nightly-dependency-updates

permissions:
id-token: write
contents: write
pull-requests: write

jobs:
update-and-create-pr:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.check_changes.outputs.has_changes }}
otel_python_version: ${{ steps.get_versions.outputs.otel_python_version }}
otel_contrib_version: ${{ steps.get_versions.outputs.otel_contrib_version }}

steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v6.0.0
with:
python-version: '3.11'

- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install toml requests packaging

- name: Get latest upstream versions
id: get_versions
run: python scripts/get_upstream_versions.py

- name: Check for breaking changes
id: breaking_changes
env:
OTEL_PYTHON_VERSION: ${{ steps.get_versions.outputs.otel_python_version }}
OTEL_CONTRIB_VERSION: ${{ steps.get_versions.outputs.otel_contrib_version }}
run: python scripts/find_breaking_changes.py

- name: Configure git and create branch
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"

- name: Check out dependency update branch
run: |
if git ls-remote --exit-code --heads origin "$BRANCH_NAME"; then
echo "Branch $BRANCH_NAME already exists, checking out..."
git checkout "$BRANCH_NAME"
else
echo "Branch $BRANCH_NAME does not exist, creating new branch..."
git checkout -b "$BRANCH_NAME"
fi

- name: Update dependencies
env:
OTEL_PYTHON_VERSION: ${{ steps.get_versions.outputs.otel_python_version }}
OTEL_CONTRIB_VERSION: ${{ steps.get_versions.outputs.otel_contrib_version }}
run: python scripts/update_dependencies.py

- name: Check for changes and commit
id: check_changes
run: |
if git diff --quiet; then
echo "No dependency updates needed"
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "Dependencies were updated"
echo "has_changes=true" >> $GITHUB_OUTPUT

git add aws-opentelemetry-distro/pyproject.toml
git commit -m "chore: update OpenTelemetry dependencies to ${{ steps.get_versions.outputs.otel_python_version }}/${{ steps.get_versions.outputs.otel_contrib_version }}"
git push origin "$BRANCH_NAME"
fi

- name: Create or update PR
run: |
PR_BODY="Automated update of OpenTelemetry dependencies.

**Updated versions:**
- OpenTelemetry Python: ${{ steps.get_versions.outputs.otel_python_version }}
- OpenTelemetry Contrib: ${{ steps.get_versions.outputs.otel_contrib_version }}

**Upstream releases with breaking changes:**
${{ steps.breaking_changes.outputs.breaking_changes_info }}"

if gh pr view "$BRANCH_NAME" --json state --jq '.state' 2>/dev/null | grep -q "OPEN"; then
echo "Open PR already exists, updating description..."
gh pr edit "$BRANCH_NAME" --body "$PR_BODY"
else
echo "Creating new PR..."
gh pr create \
--title "Nightly dependency update: OpenTelemetry ${{ steps.get_versions.outputs.otel_python_version }}/${{ steps.get_versions.outputs.otel_contrib_version }}" \
--body "$PR_BODY" \
--base main \
--head "$BRANCH_NAME"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-and-test:
needs: update-and-create-pr
if: needs.update-and-create-pr.outputs.has_changes == 'true'
uses: ./.github/workflows/main-build.yml
secrets: inherit
permissions:
id-token: write
contents: read
with:
ref: nightly-dependency-updates

publish-nightly-build-status:
name: "Publish Nightly Build Status"
needs: [ update-and-create-pr, build-and-test ]
runs-on: ubuntu-latest
if: always()
steps:
- name: Configure AWS Credentials for emitting metrics
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0
with:
role-to-assume: ${{ secrets.MONITORING_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}

- name: Publish nightly build status
run: |
if [[ "${{ needs.build-and-test.result }}" == "skipped" ]]; then
echo "Build was skipped (no changes), not publishing metric"
else
value="${{ needs.build-and-test.result == 'success' && '0.0' || '1.0'}}"
aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
--metric-name Failure \
--dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=nightly_build \
--value $value
fi
112 changes: 56 additions & 56 deletions aws-opentelemetry-distro/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,62 +26,62 @@ classifiers = [
]

dependencies = [
"opentelemetry-api == 1.33.1",
"opentelemetry-sdk == 1.33.1",
"opentelemetry-exporter-otlp-proto-grpc == 1.33.1",
"opentelemetry-exporter-otlp-proto-http == 1.33.1",
"opentelemetry-propagator-b3 == 1.33.1",
"opentelemetry-propagator-jaeger == 1.33.1",
"opentelemetry-exporter-otlp-proto-common == 1.33.1",
"opentelemetry-sdk-extension-aws == 2.0.2",
"opentelemetry-propagator-aws-xray == 1.0.1",
"opentelemetry-distro == 0.54b1",
"opentelemetry-processor-baggage == 0.54b1",
"opentelemetry-propagator-ot-trace == 0.54b1",
"opentelemetry-instrumentation == 0.54b1",
"opentelemetry-instrumentation-aws-lambda == 0.54b1",
"opentelemetry-instrumentation-aio-pika == 0.54b1",
"opentelemetry-instrumentation-aiohttp-client == 0.54b1",
"opentelemetry-instrumentation-aiopg == 0.54b1",
"opentelemetry-instrumentation-asgi == 0.54b1",
"opentelemetry-instrumentation-asyncpg == 0.54b1",
"opentelemetry-instrumentation-boto == 0.54b1",
"opentelemetry-instrumentation-boto3sqs == 0.54b1",
"opentelemetry-instrumentation-botocore == 0.54b1",
"opentelemetry-instrumentation-celery == 0.54b1",
"opentelemetry-instrumentation-confluent-kafka == 0.54b1",
"opentelemetry-instrumentation-dbapi == 0.54b1",
"opentelemetry-instrumentation-django == 0.54b1",
"opentelemetry-instrumentation-elasticsearch == 0.54b1",
"opentelemetry-instrumentation-falcon == 0.54b1",
"opentelemetry-instrumentation-fastapi == 0.54b1",
"opentelemetry-instrumentation-flask == 0.54b1",
"opentelemetry-instrumentation-grpc == 0.54b1",
"opentelemetry-instrumentation-httpx == 0.54b1",
"opentelemetry-instrumentation-jinja2 == 0.54b1",
"opentelemetry-instrumentation-kafka-python == 0.54b1",
"opentelemetry-instrumentation-logging == 0.54b1",
"opentelemetry-instrumentation-mysql == 0.54b1",
"opentelemetry-instrumentation-mysqlclient == 0.54b1",
"opentelemetry-instrumentation-pika == 0.54b1",
"opentelemetry-instrumentation-psycopg2 == 0.54b1",
"opentelemetry-instrumentation-pymemcache == 0.54b1",
"opentelemetry-instrumentation-pymongo == 0.54b1",
"opentelemetry-instrumentation-pymysql == 0.54b1",
"opentelemetry-instrumentation-pyramid == 0.54b1",
"opentelemetry-instrumentation-redis == 0.54b1",
"opentelemetry-instrumentation-remoulade == 0.54b1",
"opentelemetry-instrumentation-requests == 0.54b1",
"opentelemetry-instrumentation-sqlalchemy == 0.54b1",
"opentelemetry-instrumentation-sqlite3 == 0.54b1",
"opentelemetry-instrumentation-starlette == 0.54b1",
"opentelemetry-instrumentation-system-metrics == 0.54b1",
"opentelemetry-instrumentation-tornado == 0.54b1",
"opentelemetry-instrumentation-tortoiseorm == 0.54b1",
"opentelemetry-instrumentation-urllib == 0.54b1",
"opentelemetry-instrumentation-urllib3 == 0.54b1",
"opentelemetry-instrumentation-wsgi == 0.54b1",
"opentelemetry-instrumentation-cassandra == 0.54b1",
"opentelemetry-api == 1.37.0",
"opentelemetry-sdk == 1.37.0",
"opentelemetry-exporter-otlp-proto-grpc == 1.37.0",
"opentelemetry-exporter-otlp-proto-http == 1.37.0",
"opentelemetry-propagator-b3 == 1.37.0",
"opentelemetry-propagator-jaeger == 1.37.0",
"opentelemetry-exporter-otlp-proto-common == 1.37.0",
"opentelemetry-sdk-extension-aws == 2.1.0",
"opentelemetry-propagator-aws-xray == 1.0.2",
"opentelemetry-distro == 0.58b0",
"opentelemetry-processor-baggage == 0.58b0",
"opentelemetry-propagator-ot-trace == 0.58b0",
"opentelemetry-instrumentation == 0.58b0",
"opentelemetry-instrumentation-aws-lambda == 0.58b0",
"opentelemetry-instrumentation-aio-pika == 0.58b0",
"opentelemetry-instrumentation-aiohttp-client == 0.58b0",
"opentelemetry-instrumentation-aiopg == 0.58b0",
"opentelemetry-instrumentation-asgi == 0.58b0",
"opentelemetry-instrumentation-asyncpg == 0.58b0",
"opentelemetry-instrumentation-boto == 0.58b0",
"opentelemetry-instrumentation-boto3sqs == 0.58b0",
"opentelemetry-instrumentation-botocore == 0.58b0",
"opentelemetry-instrumentation-celery == 0.58b0",
"opentelemetry-instrumentation-confluent-kafka == 0.58b0",
"opentelemetry-instrumentation-dbapi == 0.58b0",
"opentelemetry-instrumentation-django == 0.58b0",
"opentelemetry-instrumentation-elasticsearch == 0.58b0",
"opentelemetry-instrumentation-falcon == 0.58b0",
"opentelemetry-instrumentation-fastapi == 0.58b0",
"opentelemetry-instrumentation-flask == 0.58b0",
"opentelemetry-instrumentation-grpc == 0.58b0",
"opentelemetry-instrumentation-httpx == 0.58b0",
"opentelemetry-instrumentation-jinja2 == 0.58b0",
"opentelemetry-instrumentation-kafka-python == 0.58b0",
"opentelemetry-instrumentation-logging == 0.58b0",
"opentelemetry-instrumentation-mysql == 0.58b0",
"opentelemetry-instrumentation-mysqlclient == 0.58b0",
"opentelemetry-instrumentation-pika == 0.58b0",
"opentelemetry-instrumentation-psycopg2 == 0.58b0",
"opentelemetry-instrumentation-pymemcache == 0.58b0",
"opentelemetry-instrumentation-pymongo == 0.58b0",
"opentelemetry-instrumentation-pymysql == 0.58b0",
"opentelemetry-instrumentation-pyramid == 0.58b0",
"opentelemetry-instrumentation-redis == 0.58b0",
"opentelemetry-instrumentation-remoulade == 0.58b0",
"opentelemetry-instrumentation-requests == 0.58b0",
"opentelemetry-instrumentation-sqlalchemy == 0.58b0",
"opentelemetry-instrumentation-sqlite3 == 0.58b0",
"opentelemetry-instrumentation-starlette == 0.58b0",
"opentelemetry-instrumentation-system-metrics == 0.58b0",
"opentelemetry-instrumentation-tornado == 0.58b0",
"opentelemetry-instrumentation-tortoiseorm == 0.58b0",
"opentelemetry-instrumentation-urllib == 0.58b0",
"opentelemetry-instrumentation-urllib3 == 0.58b0",
"opentelemetry-instrumentation-wsgi == 0.58b0",
"opentelemetry-instrumentation-cassandra == 0.58b0",
]

[project.optional-dependencies]
Expand Down
Loading