@@ -10,10 +10,6 @@ envlist =
1010 pypy3-test-opentelemetry-api
1111 lint-opentelemetry-api
1212
13- ; The numbers at the end of the environment names
14- ; below mean these dependencies are being used:
15- ; 0: protobuf==3.20.3
16- ; 1: protobuf==4.25.3
1713 py3{8,9,10,11,12}-test-opentelemetry-proto-protobuf5
1814 pypy3-test-opentelemetry-proto-protobuf5
1915 lint-opentelemetry-proto-protobuf5
@@ -42,10 +38,6 @@ envlist =
4238 ; exporter-opencensus intentionally excluded from pypy3
4339 lint-opentelemetry-exporter-opencensus
4440
45- ; The numbers at the end of the environment names
46- ; below mean these dependencies are being used:
47- ; 0: protobuf==3.20.3
48- ; 1: protobuf==4.25.3
4941 py3{8,9,10,11,12}-test-opentelemetry-exporter-otlp-proto-common
5042 pypy3-test-opentelemetry-exporter-otlp-proto-common
5143 lint-opentelemetry-exporter-otlp-proto-common
@@ -55,19 +47,11 @@ envlist =
5547 ; intentionally excluded from pypy3
5648 lint-opentelemetry-exporter-otlp-combined
5749
58- ; The numbers at the end of the environment names
59- ; below mean these dependencies are being used:
60- ; 0: protobuf==3.20.3
61- ; 1: protobuf==4.25.3
6250 py3{8,9,10,11,12}-test-opentelemetry-exporter-otlp-proto-grpc
6351 ; intentionally excluded from pypy3
6452 lint-opentelemetry-exporter-otlp-proto-grpc
6553 benchmark-opentelemetry-exporter-otlp-proto-grpc
6654
67- ; The numbers at the end of the environment names
68- ; below mean these dependencies are being used:
69- ; 0: protobuf==3.20.3
70- ; 1: protobuf==4.25.3
7155 py3{8,9,10,11,12}-test-opentelemetry-exporter-otlp-proto-http
7256 pypy3-test-opentelemetry-exporter-otlp-proto-http
7357 lint-opentelemetry-exporter-otlp-proto-http
@@ -107,7 +91,7 @@ envlist =
10791 mypy,mypyinstalled
10892 pyright
10993 docs
110- docker-tests-proto
94+ docker-tests-{otlpexporter,opencensus}
11195 public-symbols-check
11296 shellcheck
11397 generate-workflows
@@ -117,10 +101,6 @@ deps =
117101 lint: -r dev-requirements.txt
118102 coverage: pytest
119103 coverage: pytest-cov
120- ; proto 3 and 4 tests install the respective version of protobuf
121- ; proto3: protobuf~=3.19.0
122- ; proto4: protobuf~=4.0
123- ; proto5: protobuf~=5.26.0
124104
125105allowlist_externals = sh
126106
@@ -381,7 +361,7 @@ commands_pre =
381361commands =
382362 {toxinidir}/scripts/tracecontext-integration-test.sh
383363
384- [testenv:docker-tests-proto ]
364+ [testenv:docker-tests-{otlpexporter,opencensus} ]
385365deps =
386366 pytest ==7.1.3
387367 # Pinning PyYAML for issue: https://github.com/yaml/pyyaml/issues/724
@@ -391,9 +371,6 @@ deps =
391371 docker-compose ==1.29.2
392372 requests ==2.28.2
393373
394- ; proto 3 and 4 tests install the respective version of protobuf
395- proto: protobuf~=5.26.0
396-
397374changedir =
398375 tests/opentelemetry-docker-tests/tests
399376
@@ -402,17 +379,20 @@ commands_pre =
402379 pip install -e {toxinidir}/opentelemetry-api \
403380 -e {toxinidir}/opentelemetry-semantic-conventions \
404381 -e {toxinidir}/opentelemetry-sdk \
405- -e {toxinidir}/tests/opentelemetry-test-utils \
406- ; opencensus exporter does not work with protobuf 4+
407- proto: -e {toxinidir}/opentelemetry-proto \
408- -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common \
409- -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc \
410- -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http \
411- -e {toxinidir}/exporter/opentelemetry-exporter-otlp
382+ -e {toxinidir}/tests/opentelemetry-test-utils
383+
384+ otlpexporter: pip install -e {toxinidir}/opentelemetry-proto
385+ otlpexporter: pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common
386+ otlpexporter: pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc
387+ otlpexporter: pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http
388+ otlpexporter: pip install -e {toxinidir}/exporter/opentelemetry-exporter-otlp
389+
390+ opencensus: pip install -e {toxinidir}/exporter/opentelemetry-exporter-opencensus
391+
412392 docker-compose up -d
413393commands =
414- ; opencensus exporter does not work with protobuf 4+
415- proto : pytest --ignore opencensus {posargs}
394+ otlpexporter: pytest otlpexporter {posargs}
395+ opencensus : pytest opencensus {posargs}
416396
417397commands_post =
418398 docker-compose down -v
0 commit comments