Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
74edf67
Mod: improved setup_once for supporting when SparkContext is already …
seyoon-lim Aug 7, 2024
4c673d6
Add: tests cases for before ad after SparkContext creation
seyoon-lim Aug 7, 2024
52559be
Add: added add_event_processor method
seyoon-lim Aug 7, 2024
fd48489
Mod: rollback _start_sentry_listener test
seyoon-lim Aug 7, 2024
2f0d7be
Fix: removed useless mocking on test code
seyoon-lim Aug 8, 2024
7d46709
Serialize vars early to avoid living references (#3409)
sl0thentr0py Aug 8, 2024
da0392f
Dramatiq integration from @jacobsvante (#3397)
antonpirker Aug 8, 2024
19c4069
test(sessions): Remove unnecessary line (#3418)
szokeasaurusrex Aug 8, 2024
68aaed6
Mod: fixed sentry_tracing logic
seyoon-lim Aug 9, 2024
a6cb9b1
Add note to generated yaml files (#3423)
sentrivana Aug 9, 2024
6a4e729
ref(sessions): Deprecate `is_auto_session_tracking_enabled` (#3428)
szokeasaurusrex Aug 9, 2024
275c63e
ref(sessions): Deprecate hub-based `sessions.py` logic (#3419)
szokeasaurusrex Aug 9, 2024
6af8cd4
Fix: applied sentry_init_with_reset fixture
seyoon-lim Aug 10, 2024
f762f7b
Mod: removed useless code line
seyoon-lim Aug 10, 2024
4858996
Expose custom_repr function that precedes safe_repr invocation in ser…
sl0thentr0py Aug 12, 2024
17a6cf0
feat: Add ray integration support (#2400) (#2444)
glowskir Aug 13, 2024
4c1ea7a
release: 2.13.0
getsentry-bot Aug 13, 2024
33e22b5
Temp: added set_scope logic
seyoon-lim Aug 13, 2024
570307c
Updated changelog
antonpirker Aug 13, 2024
fc2d250
style: explicitly export symbols instead of ignoring (#3400)
hartungstenio Aug 13, 2024
aee87fb
Merge branch 'release/2.13.0'
Aug 13, 2024
269d96d
feat: Add SENTRY_SPOTLIGHT env variable support (#3443)
BYK Aug 14, 2024
da491d4
Merge branch 'master' into feature/support-exists-context
seyoon-lim Aug 27, 2024
1828149
fixed lint error
seyoon-lim Aug 27, 2024
a1b7ce5
chore(tracing): Refactor `tracing_utils.py` (#3452)
rominf Aug 27, 2024
306c34e
Pin httpx till upstream gets resolved (#3465)
sl0thentr0py Aug 27, 2024
4b361c5
ref(types): Replace custom TYPE_CHECKING with stdlib typing.TYPE_CHEC…
dev-satoshi Aug 27, 2024
a7d2469
feat(integrations): New `SysExitIntegration` (#3401)
szokeasaurusrex Aug 27, 2024
c97ea70
Revert "Pin httpx till upstream gets resolved (#3465)" (#3466)
sl0thentr0py Aug 27, 2024
ad39086
Add separate pii_denylist to EventScrubber and run it always (#3463)
sl0thentr0py Aug 27, 2024
bde87ff
fix: Fix non-UTC timestamps (#3461)
szokeasaurusrex Aug 27, 2024
2e991c7
test(sessions): Add comments to explain test (#3430)
szokeasaurusrex Aug 28, 2024
1541240
Fix data_category for sessions envelope items (#3473)
sl0thentr0py Aug 29, 2024
cd15bff
ref: Remove obsolete object as superclass (#3480)
sentrivana Aug 30, 2024
9df2b21
feat(strawberry): Support Strawberry 0.239.2 (#3491)
szokeasaurusrex Sep 3, 2024
16d05f4
fix(django): SentryWrappingMiddleware.__init__ fails if super() is ob…
cameron-simpson Sep 4, 2024
0fb9606
feat(celery): Add wrapper for `Celery().send_task` to support behavio…
divaltor Sep 4, 2024
e99873d
Better test coverage reports (#3498)
antonpirker Sep 5, 2024
9fc3bd2
Fix AWS Lambda tests (#3495)
antonpirker Sep 5, 2024
0934e04
Fixed config for old coverage versions (#3504)
antonpirker Sep 5, 2024
6814df9
tests: Remove broken bottle tests (#3505)
sentrivana Sep 5, 2024
3d0edfd
release: 2.14.0
getsentry-bot Sep 9, 2024
1e73ce9
Updated changelog
antonpirker Sep 9, 2024
0fb04be
Merge branch 'release/2.14.0'
Sep 9, 2024
22f62b0
fix(breadcrumbs): Fix sorting (#3511)
sentrivana Sep 10, 2024
c635e3e
ref(metrics): Deprecate `sentry_sdk.metrics` (#3512)
szokeasaurusrex Sep 10, 2024
53897ff
Update Codecov config (#3507)
antonpirker Sep 11, 2024
a581542
fix(django): Add `sync_capable` to `SentryWrappingMiddleware` (#3510)
szokeasaurusrex Sep 11, 2024
b1b16b0
Added `name` parameter to `start_span()` and deprecated `description`…
antonpirker Sep 12, 2024
e6ca5a2
Remove usages of deprecated `description` and replace by `name` in `s…
antonpirker Sep 12, 2024
23ef8ca
Removed experimental explain_plan feature. (#3534)
antonpirker Sep 13, 2024
4f6ccc4
fixed message (#3536)
antonpirker Sep 13, 2024
49dd64d
tests: Fix cohere API change (#3549)
BYK Sep 20, 2024
64e2977
ci: update actions/upload-artifact to v4 with merge (#3545)
joshuarli Sep 20, 2024
ed614c0
fix: Don't use deprecated logger.warn (#3552)
sentrivana Sep 20, 2024
0ee7c50
fix(django): Don't let RawPostDataException bubble up (#3553)
sentrivana Sep 23, 2024
25ab10c
fix(aiohttp): Handle invalid responses (#3554)
szokeasaurusrex Sep 23, 2024
26b86a5
fix: Fix breadcrumb timestamp casting and its tests (#3546)
BYK Sep 23, 2024
2a2fab1
test: Make import-related tests stable (#3548)
BYK Sep 23, 2024
8060a64
ref(client): Improve `get_integration` typing (#3550)
szokeasaurusrex Sep 23, 2024
7e4992a
feat(aiohttp): Add `failed_request_status_codes` (#3551)
szokeasaurusrex Sep 23, 2024
5c6c778
test(starlette): Refactor shared test parametrization (#3562)
szokeasaurusrex Sep 24, 2024
ccdbffb
test(starlette): Remove invalid `failed_request_status_code` tests (#…
szokeasaurusrex Sep 24, 2024
09c6f2a
fix(starlette): Fix `failed_request_status_codes=[]` (#3561)
szokeasaurusrex Sep 24, 2024
3995132
ref(aiohttp): Make `DEFUALT_FAILED_REQUEST_STATUS_CODES` private (#3558)
szokeasaurusrex Sep 25, 2024
6489fa0
feat(starlette): Support new `failed_request_status_codes` (#3563)
szokeasaurusrex Sep 25, 2024
dce589c
test(aiohttp): Delete test which depends on AIOHTTP behavior (#3568)
szokeasaurusrex Sep 25, 2024
aa57373
Fix trailing whitespace (#3579)
sentrivana Sep 27, 2024
205591e
Test more integrations on 3.13 (#3578)
sentrivana Sep 27, 2024
aed18d4
build(deps): bump actions/checkout from 4.1.7 to 4.2.0 (#3585)
dependabot[bot] Sep 30, 2024
4636afc
fix(tracing): Fix `add_query_source` with modules outside of project …
rominf Oct 1, 2024
05411ff
allowing ASGI to use drf_request in DjangoRequestExtractor (#3572)
PakawiNz Oct 1, 2024
a3ab1ea
XFail one of the Lambda tests (#3592)
antonpirker Oct 1, 2024
1c64ff7
Configure HTTP methods to capture in WSGI middleware and frameworks (…
antonpirker Oct 1, 2024
7bee75f
release: 2.15.0
getsentry-bot Oct 1, 2024
5de346c
Refactor changelog
sentrivana Oct 1, 2024
97b6d9f
Fix changelog
sentrivana Oct 1, 2024
65909ed
Update CHANGELOG.md
sentrivana Oct 1, 2024
5080c76
Merge branch 'release/2.15.0'
Oct 1, 2024
c36f0db
Fix type of sample_rate in DSC (and add explanatory tests) (#3603)
antonpirker Oct 3, 2024
508490c
Consolidate contributing docs (#3606)
antonpirker Oct 3, 2024
bc87c0d
Simplify tox version spec (#3609)
sentrivana Oct 4, 2024
e2aa6a5
Remove useless makefile targets (#3604)
antonpirker Oct 4, 2024
033e3ad
ref(bottle): Delete never-reached code (#3605)
szokeasaurusrex Oct 4, 2024
55d757a
Add http_methods_to_capture to ASGI Django (#3607)
sentrivana Oct 4, 2024
2bfce50
feat: Add httpcore based HTTP2Transport (#3588)
BYK Oct 4, 2024
00f8140
feat(django): Add SpotlightMiddleware when Spotlight is enabled (#3600)
BYK Oct 4, 2024
be64348
build(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 (#3617)
dependabot[bot] Oct 7, 2024
a31c54f
fix: Open relevant error when SpotlightMiddleware is on (#3614)
BYK Oct 7, 2024
2d2e548
feat: Add `__notes__` support (#3620)
szokeasaurusrex Oct 8, 2024
4f79aec
fix(django): improve getting psycopg3 connection info (#3580)
nijel Oct 8, 2024
d34c99a
feat: Add opportunistic Brotli compression (#3612)
BYK Oct 8, 2024
d0eca65
feat(bottle): Add `failed_request_status_codes` (#3618)
szokeasaurusrex Oct 8, 2024
c110ff3
Add 3.13 to basepython (#3589)
sentrivana Oct 8, 2024
3945fc1
Add 3.13 to setup.py (#3574)
sentrivana Oct 8, 2024
01b4687
Remove flaky test (#3626)
sentrivana Oct 8, 2024
0df20a7
release: 2.16.0
getsentry-bot Oct 8, 2024
b731910
Update CHANGELOG.md
sentrivana Oct 8, 2024
9098601
Fix changelog formatting
sentrivana Oct 8, 2024
1653c11
Merge branch 'release/2.16.0'
Oct 8, 2024
ce604f9
Remove ensure_integration_enabled_async (#3632)
sentrivana Oct 9, 2024
a96973d
feat(falcon): Run test suite with Falcon 4.0.0b3 (#3644)
sentrivana Oct 11, 2024
759d6e9
Test with newer Falcon version (#3653)
sentrivana Oct 14, 2024
cbe0135
Fix Anthropic integration when using tool calls (#3615)
kwnath Oct 14, 2024
8a7e226
Fix mypy (#3657)
sentrivana Oct 15, 2024
846b8b2
fix(langchain): handle case when parent span wasn't traced (#3656)
rbasoalto Oct 15, 2024
302457d
build(deps): bump actions/checkout from 4.2.0 to 4.2.1 (#3651)
dependabot[bot] Oct 15, 2024
deca5f2
build(deps): Remove pin on sphinx (#3650)
dependabot[bot] Oct 15, 2024
e463034
tests: Falcon RC1 (#3662)
sentrivana Oct 16, 2024
f493057
Allow custom transaction names in asgi (#3664)
sl0thentr0py Oct 16, 2024
891afee
fix(spotlight): More defensive Django spotlight middleware injection …
BYK Oct 17, 2024
9ae5820
Add support for async calls in Anthropic and OpenAI integration (#3497)
vetyy Oct 17, 2024
365d9cf
Fix flaky transport test (#3666)
sentrivana Oct 17, 2024
ee30db3
release: 2.17.0
getsentry-bot Oct 17, 2024
e44c9ee
Update CHANGELOG.md
sentrivana Oct 17, 2024
cfe3167
Merge branch 'release/2.17.0'
Oct 17, 2024
8d48961
docs(sdk): Enhance README with improved clarity and developer-friendl…
UTSAVS26 Oct 18, 2024
336b177
fix(strawberry): prepare for upstream extension removal (#3649)
DoctorJohn Oct 22, 2024
4839004
fix(HTTP2Transport): Only enable HTTP2 when DSN is HTTPS (#3678)
BYK Oct 22, 2024
f5e964f
tests: Test with Falcon 4.0 (#3684)
sentrivana Oct 23, 2024
ec88aa9
fix(profiling): Update active thread for asgi (#3669)
Zylphrex Oct 24, 2024
72f4d99
ci(tox): Exclude fakeredis 2.26.0 on py3.6 and 3.7 (#3695)
szokeasaurusrex Oct 28, 2024
483a0bd
build: Remove pytest pin in requirements-devenv.txt (#3696)
szokeasaurusrex Oct 28, 2024
6b8114c
ci: Run CodeQL action on all PRs (#3698)
szokeasaurusrex Oct 28, 2024
1ce7c31
ci: Run license compliance action on all PRs (#3699)
szokeasaurusrex Oct 28, 2024
200be87
ci(tox): Unpin `pytest` for Python 3.8+ `common` tests (#3697)
szokeasaurusrex Oct 28, 2024
7e52235
test(tox): Unpin `pytest` on Python 3.8+ `gevent` tests (#3700)
szokeasaurusrex Oct 28, 2024
b6482f0
test(tox): Unpin `pytest` for `celery` tests (#3701)
szokeasaurusrex Oct 28, 2024
4c1367b
test: Disable broken RQ test in newly-released RQ 2.0 (#3708)
szokeasaurusrex Oct 28, 2024
897333b
test(rq): Remove accidentally-committed print (#3712)
szokeasaurusrex Oct 29, 2024
d48dc46
ci: Clarify that only pinned tests are required (#3713)
szokeasaurusrex Oct 29, 2024
c21962e
test(redis): Install `pytest-asyncio` for `redis` tests (Python 3.12-…
szokeasaurusrex Oct 29, 2024
000c8e6
fix(starlette): Prefer python_multipart import over multipart (#3710)
musicinmybrain Oct 29, 2024
bf40090
test(tornado): Unpin `pytest` for `tornado-latest` tests (#3714)
szokeasaurusrex Oct 29, 2024
02d0934
fix(profiling): Use `type()` instead when extracting frames (#3716)
Zylphrex Oct 29, 2024
ce9986c
fix(http2): Check for h2 existence (#3690)
BYK Oct 31, 2024
5c5d98a
test: Fix UTC assuming test (#3722)
BYK Oct 31, 2024
5e2d2cf
fix(tracing): End http.client span on timeout (#3723)
Zylphrex Oct 31, 2024
d06a189
docs(hub): Correct typo in a comment (#3726)
szokeasaurusrex Nov 4, 2024
dd1117d
Add LaunchDarkly and OpenFeature integration (#3648)
cmanallen Nov 4, 2024
0a8ef92
release: 2.18.0
getsentry-bot Nov 4, 2024
09946cb
Update CHANGELOG.md
sentrivana Nov 4, 2024
5badf77
Merge branch 'release/2.18.0'
Nov 4, 2024
e28dcf6
build(deps): bump actions/checkout from 4.2.1 to 4.2.2 (#3691)
dependabot[bot] Nov 5, 2024
24e5359
feat(spotlight): Add info logs when Sentry is enabled (#3735)
BYK Nov 5, 2024
c2dfbcc
Fix(Arq): fix integration with Worker settings as a dict (#3742)
saber-solooki Nov 6, 2024
200d0cd
Handle parameter `stack_info` for the `LoggingIntegration`
gmcrocetti Nov 7, 2024
d424226
ref(init): Deprecate `sentry_sdk.init` context manager (#3729)
szokeasaurusrex Nov 12, 2024
417be9f
feat(spotlight): Inject Spotlight button on Django (#3751)
BYK Nov 12, 2024
c2361a3
Fix aws lambda tests (by reducing event size) (#3770)
antonpirker Nov 13, 2024
4bec4a4
feat: introduce rust_tracing integration (#3717)
matt-codecov Nov 13, 2024
da0b086
fix: include_tracing_fields arg to control unvetted data in rust_trac…
matt-codecov Nov 15, 2024
a826519
tests: Test with pyspark prerelease (#3760)
sentrivana Nov 18, 2024
ec2d929
Make sentry-sdk[pure-eval] installable with pip==24.0 (#3757)
sentrivana Nov 18, 2024
955108e
feat(spotlight): Auto enable cache_spans for Spotlight on DEBUG (#3791)
BYK Nov 19, 2024
1bd744d
build(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2 (#3792)
dependabot[bot] Nov 19, 2024
d894fc2
Shorten CI workflow names (#3805)
sentrivana Nov 19, 2024
01146bd
fix(openai): Use name instead of description (#3807)
sourceful-rob Nov 19, 2024
3e28853
fix(integrations): Check retries_left before capturing exception (#3803)
malkovro Nov 19, 2024
aa6e8fd
fix(falcon): Don't exhaust request body stream (#3768)
szokeasaurusrex Nov 21, 2024
e9ec6c1
test(gcp): Only run GCP tests when they should (#3721)
szokeasaurusrex Nov 21, 2024
bd50c38
fix(httpx): Prevent Sentry baggage duplication (#3728)
szokeasaurusrex Nov 21, 2024
295dd8d
Auto enable Litestar integration (#3540)
provinzkraut Nov 21, 2024
8fe5bb4
feat: Send PII to Spotlight when no DSN is set (#3804)
BYK Nov 21, 2024
c83e742
release: 2.19.0
getsentry-bot Nov 21, 2024
039c220
Updated changelog
antonpirker Nov 21, 2024
a7c2d70
Merge branch 'release/2.19.0'
Nov 21, 2024
da20623
Fix spans for streaming responses in WSGI based frameworks (#3798)
antonpirker Nov 25, 2024
7022446
Use new clickhouse gh action (#3826)
antonpirker Nov 27, 2024
65b1791
ref(flags): rename launch darkly hook to match JS SDK (#3743)
aliu39 Nov 28, 2024
e7130e8
Fix CI (#3834)
sentrivana Dec 2, 2024
c4274a3
build(deps): bump codecov/codecov-action from 5.0.2 to 5.0.7 (#3821)
dependabot[bot] Dec 2, 2024
6bd7e08
Fix asyncio testing setup (#3832)
sl0thentr0py Dec 2, 2024
3d8445c
Revert "Fix spans for streaming responses in WSGI based frameworks (#…
antonpirker Dec 2, 2024
dfb84cc
Test with celery 5.5.0rc3 (#3842)
sentrivana Dec 3, 2024
3e43a91
Improve ray tests (#3846)
antonpirker Dec 4, 2024
50ad148
fix(grpc): Return proper metadata object instead of list in… (#3205)
fdellekart Dec 5, 2024
cda5127
Add missing stack frames (#3673)
antonpirker Dec 5, 2024
5891717
Script for checking if our instrumented libs are python 3.13 compatib…
antonpirker Dec 5, 2024
31fdcfa
fix(django): Fix errors when instrumenting Django cache (#3855)
BYK Dec 5, 2024
5a09770
fix(spotlight): Don't give up on Spotlight on 3 errors (#3856)
BYK Dec 5, 2024
7a6d460
Copy scope.client reference as well (#3857)
sl0thentr0py Dec 5, 2024
c591b64
release: 2.19.1
getsentry-bot Dec 5, 2024
231a6a1
Update CHANGELOG.md
sentrivana Dec 5, 2024
7ab7fe6
Cleanup chalice test environment (#3858)
antonpirker Dec 5, 2024
fd56608
Merge branch 'release/2.19.1'
Dec 5, 2024
8f9461e
Deepcopy and ensure get_all function always terminates (#3861)
cmanallen Dec 6, 2024
163762f
release: 2.19.2
getsentry-bot Dec 6, 2024
1b327fa
Merge branch 'release/2.19.2'
Dec 6, 2024
26479b2
Use stdlib pathlib in ready-yet script (#3863)
sentrivana Dec 6, 2024
6448c70
Replace release bot with GH app (#3868)
Jeffreyhung Dec 11, 2024
1239499
fix(spotlight): Make Django middleware init even more defensive (#3870)
BYK Dec 13, 2024
81b8063
fix(spotlight): Use the spotlight_url passed into the SDK when loadin…
BYK Dec 14, 2024
2666022
Fix CI (#3878)
sentrivana Dec 17, 2024
4e69cb7
✨ Add Typer integration (#3869)
patrick91 Dec 18, 2024
50222ca
feat(flags): Add integration for custom tracking of flag evaluations …
aliu39 Dec 19, 2024
fe4b88b
Add github workflow to comment on issues when a fix was released (#3866)
antonpirker Dec 19, 2024
d536268
Merge branch 'master' into feature/support-exists-context
seyoon-lim Dec 19, 2024
b4066ed
removed the setting up the isolation_scope to global
seyoon-lim Dec 19, 2024
54aede3
build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 (#3867)
dependabot[bot] Dec 19, 2024
08d46ee
Updated mock to make tests green again
antonpirker Dec 19, 2024
b2b0a92
Merge branch 'master' into feature/support-exists-context
antonpirker Dec 19, 2024
2421099
formatting
antonpirker Dec 19, 2024
7b99ba8
Merge branch 'feature/support-exists-context' of github.com:kakao-hun…
antonpirker Dec 19, 2024
8fddd3c
formatting
antonpirker Dec 19, 2024
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
14 changes: 14 additions & 0 deletions .coveragerc36
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This is the coverage.py config for Python 3.6
# The config for newer Python versions is in pyproject.toml.

[run]
branch = true
omit =
/tmp/*
*/tests/*
*/.venv/*


[report]
exclude_lines =
if TYPE_CHECKING:
35 changes: 27 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -39,7 +39,7 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -54,7 +54,7 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -70,19 +70,22 @@ jobs:
# This will also trigger "make dist" that creates the Python packages
make aws-lambda-layer
- name: Upload Python Packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
name: artifact-build_lambda_layer
path: |
dist/*
if-no-files-found: 'error'
# since this artifact will be merged, compression is not necessary
compression-level: '0'

docs:
name: Build SDK API Doc
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: 3.12
Expand All @@ -91,7 +94,23 @@ jobs:
make apidocs
cd docs/_build && zip -r gh-pages ./

- uses: actions/[email protected]
- uses: actions/upload-artifact@v4
with:
name: artifact-docs
path: |
docs/_build/gh-pages.zip
if-no-files-found: 'error'
# since this artifact will be merged, compression is not necessary
compression-level: '0'

merge:
name: Create Release Artifact
runs-on: ubuntu-latest
needs: [build_lambda_layer, docs]
steps:
- uses: actions/upload-artifact/merge@v4
with:
# Craft expects release assets from github to be a single artifact named after the sha.
name: ${{ github.sha }}
path: docs/_build/gh-pages.zip
pattern: artifact-*
delete-merged: true
12 changes: 7 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ on:
- master
- sentry-sdk-2.0
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- sentry-sdk-2.0
schedule:
- cron: '18 18 * * 3'

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -46,7 +48,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ on:
- release/*
- sentry-sdk-2.0
pull_request:
branches:
- master
- main
- sentry-sdk-2.0

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

jobs:
enforce-license-compliance:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release-comment-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Automation: Notify issues for release"
on:
release:
types:
- published
workflow_dispatch:
inputs:
version:
description: Which version to notify issues for
required: false

# This workflow is triggered when a release is published
jobs:
release-comment-issues:
runs-on: ubuntu-20.04
name: Notify issues
steps:
- name: Get version
id: get_version
run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT

- name: Comment on linked issues that are mentioned in release
if: |
steps.get_version.outputs.version != ''
&& !contains(steps.get_version.outputs.version, 'a')
&& !contains(steps.get_version.outputs.version, 'b')
&& !contains(steps.get_version.outputs.version, 'rc')
uses: getsentry/release-comment-issues-gh-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.get_version.outputs.version }}
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- uses: actions/[email protected]
- name: Get auth token
id: token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
token: ${{ secrets.GH_RELEASE_PAT }}
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/[email protected]
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
Expand Down
48 changes: 35 additions & 13 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Do not edit this file. This file is generated automatically by executing
# python scripts/split-tox-gh-actions/split-tox-gh-actions.py
name: Test AI
on:
push:
Expand Down Expand Up @@ -25,14 +27,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.9","3.11","3.12"]
python-version: ["3.7","3.9","3.11","3.12","3.13"]
# 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
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -63,38 +65,48 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
run: |
coverage combine .coverage*
coverage xml -i
coverage combine .coverage-sentry-*
coverage xml
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
# make sure no plugins alter our coverage reports
plugin: noop
verbose: true
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
verbose: true
test-ai-pinned:
name: AI (pinned)
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.9","3.11","3.12"]
python-version: ["3.8","3.9","3.11","3.12","3.13"]
# 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
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -125,25 +137,35 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() }}
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
run: |
coverage combine .coverage*
coverage xml -i
coverage combine .coverage-sentry-*
coverage xml
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
# make sure no plugins alter our coverage reports
plugin: noop
verbose: true
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
verbose: true
check_required_tests:
name: All AI tests passed
name: All pinned AI tests passed
needs: test-ai-pinned
# Always run this, even if a dependent job failed
if: always()
Expand Down
Loading
Loading