Skip to content

Commit 8ee97d9

Browse files
committed
Merge remote-tracking branch 'origin/master' into potel-base
2 parents 8f87ada + b6482f0 commit 8ee97d9

File tree

5 files changed

+28
-13
lines changed

5 files changed

+28
-13
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ on:
1717
- master
1818
- sentry-sdk-2.0
1919
pull_request:
20-
# The branches below must be a subset of the branches above
21-
branches:
22-
- master
23-
- sentry-sdk-2.0
2420
schedule:
2521
- cron: '18 18 * * 3'
2622

23+
# Cancel in progress workflows on pull_requests.
24+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2729
permissions:
2830
contents: read
2931

.github/workflows/enforce-license-compliance.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ on:
88
- release/*
99
- sentry-sdk-2.0
1010
pull_request:
11-
branches:
12-
- master
13-
- main
14-
- sentry-sdk-2.0
11+
12+
# Cancel in progress workflows on pull_requests.
13+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1516

1617
jobs:
1718
enforce-license-compliance:

requirements-devenv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-r requirements-linting.txt
22
-r requirements-testing.txt
33
mockupdb # required by `pymongo` tests that are enabled by `pymongo` from linter requirements
4-
pytest<7.0.0 # https://github.com/pytest-dev/pytest/issues/9621; see tox.ini
4+
pytest
55
pytest-asyncio

tests/integrations/celery/test_celery.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,3 +831,11 @@ def test_send_task_wrapped(
831831
assert span["description"] == "very_creative_task_name"
832832
assert span["op"] == "queue.submit.celery"
833833
assert span["trace_id"] == kwargs["headers"]["sentry-trace"].split("-")[0]
834+
835+
836+
@pytest.mark.skip(reason="placeholder so that forked test does not come last")
837+
def test_placeholder():
838+
"""Forked tests must not come last in the module.
839+
See https://github.com/pytest-dev/pytest-forked/issues/67#issuecomment-1964718720.
840+
"""
841+
pass

tox.ini

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,17 @@ deps =
292292
# See https://github.com/pytest-dev/pytest/issues/9621
293293
# and https://github.com/pytest-dev/pytest-forked/issues/67
294294
# for justification of the upper bound on pytest
295-
{py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest<7.0.0
296-
py3.13-common: pytest
295+
py3.7-common: pytest<7.0.0
296+
{py3.8,py3.9,py3.10,py3.11,py3.12,py3.13}-common: pytest
297297

298298
# === Gevent ===
299299
{py3.7,py3.8,py3.9,py3.10,py3.11}-gevent: gevent>=22.10.0, <22.11.0
300300
{py3.12}-gevent: gevent
301301
# See https://github.com/pytest-dev/pytest/issues/9621
302302
# and https://github.com/pytest-dev/pytest-forked/issues/67
303303
# for justification of the upper bound on pytest
304-
{py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-gevent: pytest<7.0.0
304+
py3.7-gevent: pytest<7.0.0
305+
{py3.8,py3.9,py3.10,py3.11,py3.12}-gevent: pytest
305306

306307
# === Integrations ===
307308

@@ -364,7 +365,6 @@ deps =
364365
# Celery
365366
celery: redis
366367
celery: newrelic
367-
celery: pytest<7
368368
celery-v4: Celery~=4.0
369369
celery-v5.0: Celery~=5.0.0
370370
celery-v5.1: Celery~=5.1.0
@@ -581,6 +581,7 @@ deps =
581581
# Redis
582582
redis: fakeredis!=1.7.4
583583
redis: pytest<8.0.0
584+
py3.7-redis: fakeredis!=2.26.0 # https://github.com/cunla/fakeredis-py/issues/341
584585
{py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio
585586
redis-v3: redis~=3.0
586587
redis-v4: redis~=4.0
@@ -597,7 +598,10 @@ deps =
597598
# RQ (Redis Queue)
598599
rq-v{0.13,1.0,1.5,1.10}: fakeredis>=1.0,<1.7.4
599600
rq-v{1.15,1.16}: fakeredis
601+
py3.7-rq-v{1.15,1.16}: fakeredis!=2.26.0 # https://github.com/cunla/fakeredis-py/issues/341
602+
py3.7-rq-latest: fakeredis!=2.26.0 # https://github.com/cunla/fakeredis-py/issues/341
600603
rq-latest: fakeredis
604+
rq-v0.6: rq~=0.6.0
601605
rq-v0.13: rq~=0.13.0
602606
rq-v1.0: rq~=1.0.0
603607
rq-v1.5: rq~=1.5.0

0 commit comments

Comments
 (0)