From ea542bc33735d0d2b454f9853d8cb31273191f38 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Thu, 14 Sep 2023 14:07:04 -0700 Subject: [PATCH] Disable testable imports when testing swift-format Enabling testable imports caused us to re-compile swift-syntax and swift-format for testing, which takes quite a while in release mode. This should reduce CI time by ~5 minutes. --- build-script-helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-script-helper.py b/build-script-helper.py index 5b3f83516..747ea1163 100755 --- a/build-script-helper.py +++ b/build-script-helper.py @@ -189,7 +189,10 @@ def invoke_swift_single_product(package_path, swift_exec, action, product, build args = [swift_exec, action] args += get_swiftpm_options(package_path, build_path, multiroot_data_file, configuration, verbose) if action == 'test': - args += ['--test-product', product] + args += [ + '--test-product', product, + '--disable-testable-imports' + ] else: args += ['--product', product]