Skip to content

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

Bump schema-change test post-run waits on Redshift (#77945)

Ngoc Khuat3e9ff6e0405f
diff --git a/enterprise/backend/test/metabase_enterprise/transforms_python/transforms_api_test.clj b/enterprise/backend/test/metabase_enterprise/transforms_python/transforms_api_test.clj
index ffa2048616c..42661068fa0 100644
--- a/enterprise/backend/test/metabase_enterprise/transforms_python/transforms_api_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/transforms_python/transforms_api_test.clj
@@ -537,11 +537,13 @@
(is (some? update-response) "Transform update should succeed"))
;; Run updated transform and validate schema change
(transforms.tu/test-run transform-id)
- (transforms.tu/wait-for-transform-completion transform-id 10000)
+ ;; test-run returns immediately for a rerun (:table is already set), so this wait
+ ;; covers the whole second execution. 10s was flaky on Redshift (GDGT-2818).
+ (transforms.tu/wait-for-transform-completion transform-id 30000)
;; Sync runs after succeed-started-run! and activates new fields
;; before retiring old ones (non-transactional). Waiting for "age"
;; to be deactivated guarantees "friend" is already active too.
- (transforms.tu/wait-for-field-inactive table-name "age" 10000)
+ (transforms.tu/wait-for-field-inactive table-name "age" 30000)
(let [updated-rows (transforms.tu/table-rows table-name)]
(is (= [["Alice" "Bob"] ["Bob" "Alice"]] updated-rows)
"Updated data should show Alice/Bob with friends instead of ages"))))))))))