From 3dc7c4d4dca9647bd2de0dbfd39a2cd073f84171 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Tue, 11 Aug 2026 15:59:14 +0200 Subject: [PATCH 1/3] Removed sagemaker test. Signed-off-by: Steffen Pankratz --- .../available-packages-sagemaker-sdk.py | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100755 test_container/tests/test/standard-flavor/7.1/python/available-packages-sagemaker-sdk.py diff --git a/test_container/tests/test/standard-flavor/7.1/python/available-packages-sagemaker-sdk.py b/test_container/tests/test/standard-flavor/7.1/python/available-packages-sagemaker-sdk.py deleted file mode 100755 index f31c02155..000000000 --- a/test_container/tests/test/standard-flavor/7.1/python/available-packages-sagemaker-sdk.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python3 - - -from exasol_python_test_framework import udf -from exasol_python_test_framework.exatest.testcase import useData -from exasol_python_test_framework.udf.available_python_packages_utils import run_python_package_import_test - -AVAILABLE_PACKAGES_SCHEMA = "available_packages" - - -class AvailablePython3Packages(udf.TestCase): - def setUp(self): - self.query(f'create schema {AVAILABLE_PACKAGES_SCHEMA}', ignore_errors=True) - - data = [ - ("sagemaker",), - ] - - @useData(data) - def test_package_import(self, pkg, fail=False, alternative=None): - run_python_package_import_test(self, AVAILABLE_PACKAGES_SCHEMA, "PYTHON3", pkg, fail, alternative) - -if __name__ == '__main__': - udf.main() From 3ae00889a9b9c87fb9636c2e34a420ae7e55dc4e Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Tue, 11 Aug 2026 15:59:38 +0200 Subject: [PATCH 2/3] Updated import tests after package updates. Signed-off-by: Steffen Pankratz --- .../test/standard-flavor/all/python/import_modules.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test_container/tests/test/standard-flavor/all/python/import_modules.py b/test_container/tests/test/standard-flavor/all/python/import_modules.py index 8c79378b0..ff0b69f7b 100644 --- a/test_container/tests/test/standard-flavor/all/python/import_modules.py +++ b/test_container/tests/test/standard-flavor/all/python/import_modules.py @@ -97,7 +97,6 @@ def create_import_for_all_submodules_udf(self): "boto.pyami.copybot", "boto.requestlog", "boto.gs.resumable_upload_handler", - "sagemaker.content_types", "pyarrow.libarrow_python_flight", "pyarrow.libarrow_python", "pyarrow.libarrow_python_parquet_encryption", @@ -133,7 +132,6 @@ def create_import_for_all_submodules_udf(self): "tqdm.dask", "tqdm.contrib.slack", "tqdm.contrib.discord", - "sagemaker.serve.validations.parse_registry_accounts", "pyparsing.diagram", "numba.core.rvsdg_frontend", "msrest.universal_http.aiohttp", @@ -147,14 +145,14 @@ def create_import_for_all_submodules_udf(self): "pydantic.mypy", #Used for pydantic mypy plugin, which is not useful in UDFs "pydevd_plugins.extensions", "pyximport.pyxbuild", #Still uses distutils which was removed in Python 3.12, see https://github.com/cython/cython/blob/master/pyximport/pyxbuild.py - "sagemaker.amtviz", # Visualisation not needed in UDF's - "sagemaker.aws_batch", - "sagemaker.mlflow", - "sagemaker.modules.train.container_drivers.distributed_drivers.mpi_driver", "sklearn.externals.array_api_compat", "starlette", "uvicorn", "google_crc32c.cext", + "bitarray.test_free_threading", # depends on Py_GIL_DISABLED + "redis.asyncio.multidb", # Requires optional circuit-breaker module + "redis.multidb", # Requires optional circuit-breaker module + "scipy.special.libsf_error_state", # dynamic module does not define module export function } excluded_submodules = ( "sphinxext", From ffd2185112ef9b55bc417308972b07bd5b0ed3b5 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Tue, 11 Aug 2026 19:24:42 +0200 Subject: [PATCH 3/3] Added another exclude for the Standard Python 3.12 flavor Signed-off-by: Steffen Pankratz --- .../tests/test/standard-flavor/all/python/import_modules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_container/tests/test/standard-flavor/all/python/import_modules.py b/test_container/tests/test/standard-flavor/all/python/import_modules.py index ff0b69f7b..db860d5a9 100644 --- a/test_container/tests/test/standard-flavor/all/python/import_modules.py +++ b/test_container/tests/test/standard-flavor/all/python/import_modules.py @@ -153,6 +153,7 @@ def create_import_for_all_submodules_udf(self): "redis.asyncio.multidb", # Requires optional circuit-breaker module "redis.multidb", # Requires optional circuit-breaker module "scipy.special.libsf_error_state", # dynamic module does not define module export function + "narwhals.sql", # Requires optional sql module } excluded_submodules = ( "sphinxext",