Skip to content

Commit 45000ea

Browse files
committed
ci: Run gevent tests after support
Signed-off-by: Varsha GS <[email protected]>
1 parent d100784 commit 45000ea

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,8 @@ jobs:
219219
- pip-install-tests-deps:
220220
requirements: "tests/requirements-gevent-starlette.txt"
221221
- run-tests-with-coverage-report:
222-
# TODO: uncomment once gevent instrumentation is done
223-
# gevent: "true"
224-
# tests: "tests/frameworks/test_gevent.py tests/frameworks/test_starlette.py"
225-
tests: "tests/frameworks/test_starlette.py"
222+
gevent: "true"
223+
tests: "tests/frameworks/test_gevent.py tests/frameworks/test_starlette.py"
226224
- store-pytest-results
227225
- store-coverage-report
228226

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from instana.util.runtime import is_ppc64, is_s390x
2727

2828
collect_ignore_glob = [
29-
"*test_gevent*",
3029
"*collector/test_gcr*",
3130
"*agent/test_google*",
3231
]

tests/frameworks/test_sanic.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from instana.singletons import tracer, agent
99
from instana.util.ids import hex_id
10-
from tests.helpers import get_first_span_by_filter, get_first_span_by_name, is_test_span
10+
from tests.helpers import get_first_span_by_filter, get_first_span_by_name, filter_test_span
1111
from tests.test_utils import _TraceContextMixin
1212
from tests.apps.sanic_app.server import app
1313

@@ -57,7 +57,7 @@ def test_basic_get(self) -> None:
5757
spans = self.recorder.queued_spans()
5858
assert len(spans) == 3
5959

60-
test_span = get_first_span_by_filter(spans, is_test_span)
60+
test_span = get_first_span_by_filter(spans, filter_test_span)
6161
assert test_span
6262

6363
httpx_span = get_first_span_by_name(spans, "http")
@@ -108,7 +108,7 @@ def test_404(self) -> None:
108108
spans = self.recorder.queued_spans()
109109
assert len(spans) == 3
110110

111-
test_span = get_first_span_by_filter(spans, is_test_span)
111+
test_span = get_first_span_by_filter(spans, filter_test_span)
112112
assert test_span
113113

114114
httpx_span = get_first_span_by_name(spans, "http")
@@ -159,7 +159,7 @@ def test_sanic_exception(self) -> None:
159159
spans = self.recorder.queued_spans()
160160
assert len(spans) == 4
161161

162-
test_span = get_first_span_by_filter(spans, is_test_span)
162+
test_span = get_first_span_by_filter(spans, filter_test_span)
163163
assert test_span
164164

165165
httpx_span = get_first_span_by_name(spans, "http")
@@ -210,7 +210,7 @@ def test_500_instana_exception(self) -> None:
210210
spans = self.recorder.queued_spans()
211211
assert len(spans) == 4
212212

213-
test_span = get_first_span_by_filter(spans, is_test_span)
213+
test_span = get_first_span_by_filter(spans, filter_test_span)
214214
assert test_span
215215

216216
httpx_span = get_first_span_by_name(spans, "http")
@@ -261,7 +261,7 @@ def test_500(self) -> None:
261261
spans = self.recorder.queued_spans()
262262
assert len(spans) == 4
263263

264-
test_span = get_first_span_by_filter(spans, is_test_span)
264+
test_span = get_first_span_by_filter(spans, filter_test_span)
265265
assert test_span
266266

267267
httpx_span = get_first_span_by_name(spans, "http")
@@ -312,7 +312,7 @@ def test_path_templates(self) -> None:
312312
spans = self.recorder.queued_spans()
313313
assert len(spans) == 3
314314

315-
test_span = get_first_span_by_filter(spans, is_test_span)
315+
test_span = get_first_span_by_filter(spans, filter_test_span)
316316
assert test_span
317317

318318
httpx_span = get_first_span_by_name(spans, "http")
@@ -363,7 +363,7 @@ def test_secret_scrubbing(self) -> None:
363363
spans = self.recorder.queued_spans()
364364
assert len(spans) == 3
365365

366-
test_span = get_first_span_by_filter(spans, is_test_span)
366+
test_span = get_first_span_by_filter(spans, filter_test_span)
367367
assert test_span
368368

369369
httpx_span = get_first_span_by_name(spans, "http")
@@ -417,7 +417,7 @@ def test_synthetic_request(self) -> None:
417417
spans = self.recorder.queued_spans()
418418
assert len(spans) == 3
419419

420-
test_span = get_first_span_by_filter(spans, is_test_span)
420+
test_span = get_first_span_by_filter(spans, filter_test_span)
421421
assert test_span
422422

423423
httpx_span = get_first_span_by_name(spans, "http")
@@ -476,7 +476,7 @@ def test_request_header_capture(self) -> None:
476476
spans = self.recorder.queued_spans()
477477
assert len(spans) == 3
478478

479-
test_span = get_first_span_by_filter(spans, is_test_span)
479+
test_span = get_first_span_by_filter(spans, filter_test_span)
480480
assert test_span
481481

482482
httpx_span = get_first_span_by_name(spans, "http")
@@ -523,7 +523,7 @@ def test_response_header_capture(self) -> None:
523523
spans = self.recorder.queued_spans()
524524
assert len(spans) == 3
525525

526-
test_span = get_first_span_by_filter(spans, is_test_span)
526+
test_span = get_first_span_by_filter(spans, filter_test_span)
527527
assert test_span
528528

529529
httpx_span = get_first_span_by_name(spans, "http")

tests/requirements-gevent-starlette.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r requirements-minimal.txt
22
flask>=0.12.2
3-
gevent>=1.4.0
3+
gevent>=23.9.0.post1
44
mock>=2.0.0
55
pyramid>=2.0.1
66
starlette>=0.12.13

tests/requirements-pre314.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Django>=4.2.16
1212
# fastapi>=0.115.0; python_version >= "3.13"
1313
flask>=2.3.2
1414
# gevent is taking more than 20min to build on 3.14
15-
# gevent>=1.4.0
15+
# gevent>=23.9.0.post1
1616
grpcio>=1.14.1
1717
google-cloud-pubsub>=2.0.0
1818
google-cloud-storage>=1.24.0

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Django>=4.2.16
1010
fastapi>=0.92.0; python_version < "3.13"
1111
fastapi>=0.115.0; python_version >= "3.13"
1212
flask>=2.3.2
13-
gevent>=1.4.0
13+
gevent>=23.9.0.post1
1414
grpcio>=1.14.1
1515
google-cloud-pubsub>=2.0.0
1616
google-cloud-storage>=1.24.0

0 commit comments

Comments
 (0)