From 8b32a4f3058f81439150a572b541a8de96a97cd4 Mon Sep 17 00:00:00 2001 From: Jan Kadlec Date: Fri, 31 Oct 2025 11:42:33 +0100 Subject: [PATCH] chore: fix perf degradation in tests There was a perf degradation in tests for Python 3.12 with coverage. Setting to COVERAGE_CORE=sysmon helped. --- packages/gooddata-dbt/tox.ini | 2 ++ packages/gooddata-fdw/tox.ini | 2 ++ packages/gooddata-flexconnect/tox.ini | 1 + packages/gooddata-flight-server/tox.ini | 2 ++ packages/gooddata-pandas/tox.ini | 2 ++ packages/gooddata-pipelines/tox.ini | 2 ++ packages/gooddata-sdk/tox.ini | 2 ++ 7 files changed, 13 insertions(+) diff --git a/packages/gooddata-dbt/tox.ini b/packages/gooddata-dbt/tox.ini index 7de9cc947..676ac59f9 100644 --- a/packages/gooddata-dbt/tox.ini +++ b/packages/gooddata-dbt/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_dbt --cov-report=xml tests {posargs} diff --git a/packages/gooddata-fdw/tox.ini b/packages/gooddata-fdw/tox.ini index 1918d1cf6..601805532 100644 --- a/packages/gooddata-fdw/tox.ini +++ b/packages/gooddata-fdw/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_fdw --cov-report=xml tests {posargs} diff --git a/packages/gooddata-flexconnect/tox.ini b/packages/gooddata-flexconnect/tox.ini index abe58ea5b..6ac5593bf 100644 --- a/packages/gooddata-flexconnect/tox.ini +++ b/packages/gooddata-flexconnect/tox.ini @@ -12,6 +12,7 @@ deps = -e../tests-support setenv= PYTHONDONTWRITEBYTECODE=1 + COVERAGE_CORE=sysmon commands = uv pip install --group test pytest -v --cov=src/gooddata_flexconnect --cov-report=xml tests {posargs} diff --git a/packages/gooddata-flight-server/tox.ini b/packages/gooddata-flight-server/tox.ini index 4badbcaf5..d94d69ba7 100644 --- a/packages/gooddata-flight-server/tox.ini +++ b/packages/gooddata-flight-server/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_flight_server --cov-report=xml tests {posargs} diff --git a/packages/gooddata-pandas/tox.ini b/packages/gooddata-pandas/tox.ini index 4c146449a..0d6f4ae01 100644 --- a/packages/gooddata-pandas/tox.ini +++ b/packages/gooddata-pandas/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_pandas --cov-report=xml tests {posargs} diff --git a/packages/gooddata-pipelines/tox.ini b/packages/gooddata-pipelines/tox.ini index 700c35bae..374151bc7 100644 --- a/packages/gooddata-pipelines/tox.ini +++ b/packages/gooddata-pipelines/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_pipelines --cov-report=xml tests {posargs} diff --git a/packages/gooddata-sdk/tox.ini b/packages/gooddata-sdk/tox.ini index dad2bc245..558682deb 100644 --- a/packages/gooddata-sdk/tox.ini +++ b/packages/gooddata-sdk/tox.ini @@ -8,6 +8,8 @@ package = wheel wheel_build_env = .pkg dependency_groups = test +setenv = + COVERAGE_CORE=sysmon commands = pytest -v --cov=src/gooddata_sdk --cov-report=xml tests {posargs}