From 8d98cb5ee41a3866a5f869c4a5600c4e49fb1ad1 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 4 Oct 2024 11:05:14 +0900 Subject: [PATCH] GH-44300: [Integration][Archery] Don't import unused testers Some testers such as `JavaTester` may raise an exception on import when the target implementation isn't built. It stops integration test unexpectedly. --- dev/archery/archery/integration/runner.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dev/archery/archery/integration/runner.py b/dev/archery/archery/integration/runner.py index e72baaf878532..e276738846371 100644 --- a/dev/archery/archery/integration/runner.py +++ b/dev/archery/archery/integration/runner.py @@ -31,13 +31,6 @@ from . import cdata from .scenario import Scenario from .tester import Tester, CDataExporter, CDataImporter -from .tester_cpp import CppTester -from .tester_go import GoTester -from .tester_rust import RustTester -from .tester_java import JavaTester -from .tester_js import JSTester -from .tester_csharp import CSharpTester -from .tester_nanoarrow import NanoarrowTester from .util import guid, printer from .util import SKIP_C_ARRAY, SKIP_C_SCHEMA, SKIP_FLIGHT, SKIP_IPC from ..utils.logger import group as group_raw @@ -603,24 +596,31 @@ def append_tester(implementation, tester): other_testers.append(tester) if with_cpp: + from .tester_cpp import CppTester append_tester("cpp", CppTester(**kwargs)) if with_java: + from .tester_java import JavaTester append_tester("java", JavaTester(**kwargs)) if with_js: + from .tester_js import JSTester append_tester("js", JSTester(**kwargs)) if with_csharp: + from .tester_csharp import CSharpTester append_tester("csharp", CSharpTester(**kwargs)) if with_go: + from .tester_go import GoTester append_tester("go", GoTester(**kwargs)) if with_nanoarrow: + from .tester_nanoarrow import NanoarrowTester append_tester("nanoarrow", NanoarrowTester(**kwargs)) if with_rust: + from .tester_rust import RustTester append_tester("rust", RustTester(**kwargs)) static_json_files = get_static_json_files()