-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ivana/potel/autoinstrumentation
- Loading branch information
Showing
34 changed files
with
499 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,31 +45,39 @@ jobs: | |
- name: Test anthropic latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest" | ||
- name: Test cohere latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest" | ||
- name: Test langchain latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest" | ||
- name: Test openai latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" | ||
- name: Test huggingface_hub latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
test-ai-pinned: | ||
name: AI (pinned) | ||
timeout-minutes: 30 | ||
|
@@ -97,31 +105,39 @@ jobs: | |
- name: Test anthropic pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic" | ||
- name: Test cohere pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere" | ||
- name: Test langchain pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain" | ||
- name: Test openai pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai" | ||
- name: Test huggingface_hub pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
check_required_tests: | ||
name: All AI tests passed | ||
needs: test-ai-pinned | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,15 +80,23 @@ jobs: | |
- name: Test aws_lambda pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
check_required_tests: | ||
name: All AWS Lambda tests passed | ||
needs: test-aws_lambda-pinned | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7","3.10","3.11","3.12"] | ||
python-version: ["3.8","3.11","3.12"] | ||
# python3.6 reached EOL and is no longer being supported on | ||
# new versions of hosted runners on Github Actions | ||
# ubuntu-20.04 is the last version that supported python3.6 | ||
|
@@ -45,27 +45,35 @@ jobs: | |
- name: Test boto3 latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" | ||
- name: Test chalice latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" | ||
- name: Test cloud_resource_context latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" | ||
- name: Test gcp latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
test-cloud_computing-pinned: | ||
name: Cloud Computing (pinned) | ||
timeout-minutes: 30 | ||
|
@@ -93,27 +101,35 @@ jobs: | |
- name: Test boto3 pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" | ||
- name: Test chalice pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" | ||
- name: Test cloud_resource_context pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" | ||
- name: Test gcp pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
check_required_tests: | ||
name: All Cloud Computing tests passed | ||
needs: test-cloud_computing-pinned | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,15 +45,23 @@ jobs: | |
- name: Test common pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
check_required_tests: | ||
name: All Common tests passed | ||
needs: test-common-pinned | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,35 +47,43 @@ jobs: | |
- name: Test arq latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" | ||
- name: Test beam latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" | ||
- name: Test celery latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" | ||
- name: Test huey latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" | ||
- name: Test rq latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" | ||
- name: Test spark latest | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-spark-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh "py${{ matrix.python-version }}-spark-latest" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
test-data_processing-pinned: | ||
name: Data Processing (pinned) | ||
timeout-minutes: 30 | ||
|
@@ -105,35 +113,43 @@ jobs: | |
- name: Test arq pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" | ||
- name: Test beam pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" | ||
- name: Test celery pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" | ||
- name: Test huey pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" | ||
- name: Test rq pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" | ||
- name: Test spark pinned | ||
run: | | ||
set -x # print commands that are executed | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-spark" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-spark" | ||
- name: Generate coverage XML | ||
if: ${{ !cancelled() }} | ||
run: | | ||
coverage combine .coverage* | ||
coverage xml -i | ||
- uses: codecov/codecov-action@v4 | ||
- name: Upload coverage to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
check_required_tests: | ||
name: All Data Processing tests passed | ||
needs: test-data_processing-pinned | ||
|
Oops, something went wrong.