Skip to content

Commit d228a93

Browse files
committed
fix (tests): Skipping tests not supported on ppc64.
The following tests are not executed in a ppc64le environment due to lack of support to run them: - grpcio: not installing in ppc64le. - google-cloud-*: depends on grpcio. - pymongo: only the Enterprise edition is supported in ppc64le. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent 03217ac commit d228a93

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

tests/conftest.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,21 @@
2323
from instana.span.span import InstanaSpan
2424
from instana.span_context import SpanContext
2525
from instana.tracer import InstanaTracerProvider
26+
from instana.util.runtime import get_runtime_env_info
2627

2728
collect_ignore_glob = [
2829
"*test_gevent*",
2930
"*collector/test_gcr*",
3031
"*agent/test_google*",
3132
]
3233

34+
# ppc64le has limitations with some supported libraries.
35+
machine, py_version = get_runtime_env_info()
36+
if machine == "ppc64le":
37+
collect_ignore_glob.append("*test_grpcio*")
38+
collect_ignore_glob.append("*test_google-cloud*")
39+
collect_ignore_glob.append("*test_pymongo*")
40+
3341
# # Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
3442
# # be run explicitly. (So always exclude them here)
3543
if not os.environ.get("CASSANDRA_TEST"):
@@ -55,7 +63,7 @@
5563
collect_ignore_glob.append("*test_fastapi*")
5664
# aiohttp-server tests failing due to deprecated methods used
5765
collect_ignore_glob.append("*test_aiohttp_server*")
58-
# Currently Saniic does not support python >= 3.14
66+
# Currently Sanic does not support python >= 3.14
5967
collect_ignore_glob.append("*test_sanic*")
6068

6169

@@ -249,4 +257,4 @@ def _uwsgi_masterpid() -> int:
249257
"enable-threads": True,
250258
}
251259
module.masterpid = _uwsgi_masterpid
252-
sys.modules["uwsgi"] = module
260+
sys.modules["uwsgi"] = module

tests_aws/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
# (c) Copyright Instana Inc. 2020
33

44
import os
5+
import platform
56

67
os.environ["INSTANA_ENDPOINT_URL"] = "https://localhost/notreal"
78
os.environ["INSTANA_AGENT_KEY"] = "Fake_Key"
9+
10+
# ppc64le is not supported by AWS Serverless Services.
11+
collect_ignore_glob = []
12+
if platform.machine() == "ppc64le":
13+
collect_ignore_glob.append("*test_lambda*")
14+
collect_ignore_glob.append("*test_fargate*")
15+
collect_ignore_glob.append("*test_eks*")

0 commit comments

Comments
 (0)