Skip to content

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

Widen snowplow-micro poll budget to de-flake event assertions (#77383)

github-automation-metabase18a6ad127c1e
diff --git a/e2e/support/helpers/e2e-snowplow-helpers.js b/e2e/support/helpers/e2e-snowplow-helpers.js
index a4939f1cfe1..3ef09279315 100644
--- a/e2e/support/helpers/e2e-snowplow-helpers.js
+++ b/e2e/support/helpers/e2e-snowplow-helpers.js
@@ -2,7 +2,11 @@ import { updateSetting } from "e2e/support/helpers";
const SNOWPLOW_URL = "http://localhost:9090";
const SNOWPLOW_INTERVAL = 100;
-const SNOWPLOW_TIMEOUT = 1000;
+// Snowplow events are POSTed asynchronously and then ingested by snowplow-micro, so a
+// matching event can take a moment to become queryable via `micro/good` — especially on
+// loaded CI runners or with network throttling. A short budget flakes the poll before the
+// event lands; this only affects how long a *failing* assertion waits (matches return early).
+const SNOWPLOW_TIMEOUT = 5000;
export const enableTracking = () => {
updateSetting("anon-tracking-enabled", true);