Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Disable multithreading for tests under snowflake and bigquery. (#75948)

technomancy95f1ed9b8d74
diff --git a/test/metabase/test_runner.clj b/test/metabase/test_runner.clj
index 0e2c4b29726..75daeb49eb9 100644
--- a/test/metabase/test_runner.clj
+++ b/test/metabase/test_runner.clj
@@ -88,10 +88,18 @@
"test_config"
"test_resources"])
+;; snowflake and bigquery tests are very unreliable; let's bypass an additional
+;; potential source of unreliability by running tests without any parallelism.
+(def ^:private non-parallel-drivers #{:snowflake :bigquery-cloud-sdk})
+
(defn- default-options []
{:namespace-pattern #"^(?:(?:metabase.*)|(?:hooks\..*))" ; anything starting with `metabase*` (including `metabase-enterprise`) or `hooks.*`
:exclude-directories excluded-directories
- :test-warn-time 60000})
+ :test-warn-time 60000
+ :multithread? (if (empty? (set/intersection (tx.env/test-drivers)
+ non-parallel-drivers))
+ :vars
+ false)})
(defn module-folders
[modules]