Skip to content

Commit eceba03

Browse files
committed
Add missing fixes for several test envs
1 parent 9781266 commit eceba03

File tree

3 files changed

+55
-61
lines changed

3 files changed

+55
-61
lines changed

.github/workflows/instrumentations_0.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- "logging"
5858
- "mysql"
5959
- "mysqlclient"
60-
- "pika"
60+
- "sio-pika"
6161
- "psycopg2"
6262
- "pymemcache"
6363
- "pymongo"

.github/workflows/instrumentations_1.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
python-version: [py37, py38, py39, py310, py311, pypy3]
2727
package:
2828
- "urllib"
29-
- "urllib3"
29+
- "urllib3v"
3030
- "wsgi"
3131
- "distro"
3232
- "richconsole"

tox.ini

+53-59
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ envlist =
2222
py3{7,8,9,10,11}-test-opentelemetry-instrumentation
2323
pypy3-test-opentelemetry-instrumentation
2424

25-
py3{7,8,9,10,11}-test-instrumentation-aio-pika
26-
pypy3-test-instrumentation-aio-pika
27-
2825
; opentelemetry-instrumentation-aiohttp-client
2926
py3{7,8,9,10,11}-test-instrumentation-aiohttp-client
3027
pypy3-test-instrumentation-aiohttp-client
@@ -54,10 +51,10 @@ envlist =
5451
; Only officially supported Python versions are tested for each Django
5552
; major release. Updated list can be found at:
5653
; https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
57-
py3{7}-test-instrumentation-django1
58-
py3{7,8,9}-test-instrumentation-django2
59-
py3{7,8,9,10,11}-test-instrumentation-django3
60-
py3{8,9,10,11}-test-instrumentation-django4
54+
py3{7}-test-instrumentation-django-1
55+
py3{7,8,9}-test-instrumentation-django-2
56+
py3{7,8,9,10,11}-test-instrumentation-django-3
57+
py3{8,9,10,11}-test-instrumentation-django-4
6158
pypy3-test-instrumentation-django-{1,2,3}
6259

6360
; opentelemetry-instrumentation-dbapi
@@ -72,14 +69,12 @@ envlist =
7269
; opentelemetry-instrumentation-elasticsearch
7370
py3{7,8,9,10,11}-test-instrumentation-elasticsearch-{2,6}
7471
pypy3-test-instrumentation-elasticsearch-{2,6}
75-
76-
; opentelemetry-instrumentation-elasticsearch5
77-
py3{7,8,9}-test-instrumentation-elasticsearch5
78-
pypy3-test-instrumentation-elasticsearch5
72+
py3{7,8,9}-test-instrumentation-elasticsearch-5
73+
pypy3-test-instrumentation-elasticsearch-5
7974

8075
; opentelemetry-instrumentation-falcon
8176
; py310 does not work with falcon 1
82-
py3{7,8,9}-test-instrumentation-falcon1
77+
py3{7,8,9}-test-instrumentation-falcon-1
8378
py3{7,8,9,10,11}-test-instrumentation-falcon-{2,3}
8479
pypy3-test-instrumentation-falcon-{1,2,3}
8580

@@ -104,7 +99,7 @@ envlist =
10499
py3{7,8,9,10,11}-test-instrumentation-requests
105100
;pypy3-test-instrumentation-requests
106101

107-
; opentelemetry-instrumentation-starlette.
102+
; opentelemetry-instrumentation-starlette
108103
py3{7,8,9,10,11}-test-instrumentation-starlette
109104
pypy3-test-instrumentation-starlette
110105

@@ -221,9 +216,9 @@ envlist =
221216
py3{7,8,9,10,11}-test-propagator-ot-trace
222217
pypy3-test-propagator-ot-trace
223218

224-
; opentelemetry-instrumentation-pika
225-
py3{7,8,9,10,11}-test-instrumentation-pika-{0,1}
226-
pypy3-test-instrumentation-pika-{0,1}
219+
; opentelemetry-instrumentation-sio-pika
220+
py3{7,8,9,10,11}-test-instrumentation-sio-pika-{0,1}
221+
pypy3-test-instrumentation-sio-pika-{0,1}
227222

228223
; opentelemetry-instrumentation-aio-pika
229224
py3{7,8,9,10,11}-test-instrumentation-aio-pika-{7,8,9}
@@ -259,46 +254,46 @@ deps =
259254
django2: django~=2.0
260255
django3: django~=3.0
261256
django4: django>=4.0b1,<5.0
262-
elasticsearch2: elasticsearch-dsl>=2.0,<3.0
263-
elasticsearch2: elasticsearch>=2.0,<3.0
264-
elasticsearch5: elasticsearch-dsl>=5.0,<6.0
265-
elasticsearch5: elasticsearch>=5.0,<6.0
266-
elasticsearch6: elasticsearch-dsl>=6.0,<7.0
267-
elasticsearch6: elasticsearch>=6.0,<7.0
257+
elasticsearch-2: elasticsearch-dsl>=2.0,<3.0
258+
elasticsearch-2: elasticsearch>=2.0,<3.0
259+
elasticsearch-5: elasticsearch-dsl>=5.0,<6.0
260+
elasticsearch-5: elasticsearch>=5.0,<6.0
261+
elasticsearch-6: elasticsearch-dsl>=6.0,<7.0
262+
elasticsearch-6: elasticsearch>=6.0,<7.0
268263
; FIXME: Elasticsearch >=7 causes CI workflow tests to hang, see open-telemetry/opentelemetry-python-contrib#620
269-
; elasticsearch7: elasticsearch-dsl>=7.0,<8.0
270-
; elasticsearch7: elasticsearch>=7.0,<8.0
271-
; elasticsearch8: elasticsearch-dsl>=8.0,<9.0
272-
; elasticsearch8: elasticsearch>=8.0,<9.0
273-
falcon1: falcon ==1.4.1
274-
falcon2: falcon >=2.0.0,<3.0.0
275-
falcon3: falcon >=3.0.0,<4.0.0
276-
flask213: Flask ==2.1.3
277-
flask213: Werkzeug <3.0.0
278-
flask220: Flask ==2.2.0
279-
flask220: Werkzeug <3.0.0
280-
flask300: Flask >=3.0.0
281-
flask300: Werkzeug >=3.0.0
264+
; elasticsearch-7: elasticsearch-dsl>=7.0,<8.0
265+
; elasticsearch-7: elasticsearch>=7.0,<8.0
266+
; elasticsearch-8: elasticsearch-dsl>=8.0,<9.0
267+
; elasticsearch-8: elasticsearch>=8.0,<9.0
268+
falcon-1: falcon ==1.4.1
269+
falcon-2: falcon >=2.0.0,<3.0.0
270+
falcon-3: falcon >=3.0.0,<4.0.0
271+
flask-213: Flask ==2.1.3
272+
flask-213: Werkzeug <3.0.0
273+
flask-220: Flask ==2.2.0
274+
flask-220: Werkzeug <3.0.0
275+
flask-300: Flask >=3.0.0
276+
flask-300: Werkzeug >=3.0.0
282277
grpc: pytest-asyncio
283-
sqlalchemy11: sqlalchemy>=1.1,<1.2
284-
sqlalchemy14: aiosqlite
285-
sqlalchemy14: sqlalchemy~=1.4
286-
pika0: pika>=0.12.0,<1.0.0
287-
pika1: pika>=1.0.0
278+
sqlalchemy-11: sqlalchemy>=1.1,<1.2
279+
sqlalchemy-14: aiosqlite
280+
sqlalchemy-14: sqlalchemy~=1.4
281+
sio-pika-0: pika>=0.12.0,<1.0.0
282+
sio-pika-1: pika>=1.0.0
288283
aio-pika-7: aio_pika~=7.2.0
289284
aio-pika-8: aio_pika>=8.0.0,<9.0.0
290285
aio-pika-9: aio_pika>=9.0.0,<10.0.0
291-
pymemcache135: pymemcache ==1.3.5
292-
pymemcache200: pymemcache >2.0.0,<3.0.0
293-
pymemcache300: pymemcache >3.0.0,<3.4.2
294-
pymemcache342: pymemcache ==3.4.2
295-
pymemcache400: pymemcache ==4.0.0
296-
httpx18: httpx>=0.18.0,<0.19.0
297-
httpx18: respx~=0.17.0
298-
httpx21: httpx>=0.19.0
299-
httpx21: respx~=0.20.1
300-
urllib3v1: urllib3 >=1.0.0,<2.0.0
301-
urllib3v2: urllib3 >=2.0.0,<3.0.0
286+
pymemcache-135: pymemcache ==1.3.5
287+
pymemcache-200: pymemcache >2.0.0,<3.0.0
288+
pymemcache-300: pymemcache >3.0.0,<3.4.2
289+
pymemcache-342: pymemcache ==3.4.2
290+
pymemcache-400: pymemcache ==4.0.0
291+
httpx-18: httpx>=0.18.0,<0.19.0
292+
httpx-18: respx~=0.17.0
293+
httpx-21: httpx>=0.19.0
294+
httpx-21: respx~=0.20.1
295+
urllib3v-1: urllib3 >=1.0.0,<2.0.0
296+
urllib3v-2: urllib3 >=2.0.0,<3.0.0
302297

303298
; FIXME: add coverage testing
304299
; FIXME: add mypy testing
@@ -312,7 +307,6 @@ setenv =
312307
changedir =
313308
test-distro: opentelemetry-distro/tests
314309
test-opentelemetry-instrumentation: opentelemetry-instrumentation/tests
315-
test-instrumentation-aio-pika: instrumentation/opentelemetry-instrumentation-aio-pika/tests
316310
test-instrumentation-aiohttp-client: instrumentation/opentelemetry-instrumentation-aiohttp-client/tests
317311
test-instrumentation-aiohttp-server: instrumentation/opentelemetry-instrumentation-aiohttp-server/tests
318312
test-instrumentation-aiopg: instrumentation/opentelemetry-instrumentation-aiopg/tests
@@ -339,7 +333,7 @@ changedir =
339333
test-instrumentation-logging: instrumentation/opentelemetry-instrumentation-logging/tests
340334
test-instrumentation-mysql: instrumentation/opentelemetry-instrumentation-mysql/tests
341335
test-instrumentation-mysqlclient: instrumentation/opentelemetry-instrumentation-mysqlclient/tests
342-
test-instrumentation-pika-{0,1}: instrumentation/opentelemetry-instrumentation-pika/tests
336+
test-instrumentation-sio-pika-{0,1}: instrumentation/opentelemetry-instrumentation-pika/tests
343337
test-instrumentation-aio-pika-{7,8,9}: instrumentation/opentelemetry-instrumentation-aio-pika/tests
344338
test-instrumentation-psycopg2: instrumentation/opentelemetry-instrumentation-psycopg2/tests
345339
test-instrumentation-pymemcache-{135,200,300,342,400}: instrumentation/opentelemetry-instrumentation-pymemcache/tests
@@ -381,17 +375,17 @@ commands_pre =
381375

382376
celery: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-celery[test]
383377

384-
pika{0,1}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pika[test]
378+
sio-pika-{0,1}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pika[test]
385379

386-
aio-pika{7,8,9}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
380+
aio-pika-{7,8,9}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
387381

388382
kafka-python: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
389383

390384
confluent-kafka: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]
391385

392386
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
393387

394-
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http[test]
388+
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
395389
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
396390
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
397391

@@ -456,7 +450,7 @@ commands_pre =
456450

457451
logging: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-logging[test]
458452

459-
aio-pika: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
453+
aio-pika-{7,8,9}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
460454

461455
aiohttp-client: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client[test]
462456

@@ -480,7 +474,7 @@ commands_pre =
480474

481475
resource-detector-container: pip install {toxinidir}/resource/opentelemetry-resource-detector-container[test]
482476

483-
http: pip install {toxinidir}/util/opentelemetry-util-http[test]
477+
http: pip install {toxinidir}/util/opentelemetry-util-http
484478
; In order to get a health coverage report,
485479
propagator-ot-trace: pip install {toxinidir}/propagator/opentelemetry-propagator-ot-trace[test]
486480

@@ -531,7 +525,7 @@ commands_pre =
531525
python -m pip install "{env:CORE_REPO}#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions"
532526
python -m pip install "{env:CORE_REPO}#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk"
533527
python -m pip install "{env:CORE_REPO}#egg=opentelemetry-test-utils&subdirectory=tests/opentelemetry-test-utils"
534-
python -m pip install -e {toxinidir}/util/opentelemetry-util-http[test]
528+
python -m pip install -e {toxinidir}/util/opentelemetry-util-http
535529
python -m pip install -e {toxinidir}/opentelemetry-instrumentation[test]
536530
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
537531
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi[test]

0 commit comments

Comments
 (0)