From 260e6a6e9bfc1c6f34988ddae7870e0b9ac2ee1d Mon Sep 17 00:00:00 2001 From: Ender Date: Mon, 18 May 2026 16:49:46 +0200 Subject: [PATCH] fix(e2e): tag chaos deploy transactions as e2e in bulletin-deploy dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both chaos tests spawn the CLI via execa directly (not the dot() helper) to get a signalable child handle. The dot.ts helper normally computes DEPLOY_TAG from DOT_TAG — without it, bulletin-deploy spans are emitted with no deploy.tag, making chaos transactions appear as real-user traffic in the bulletin-deploy Sentry dashboard. Add DEPLOY_TAG to both env objects, mirroring dot.ts's derivation: e2e-cli-chaos-sigint (SIGINT test) e2e-cli-chaos-rpc (RPC failover test) Respects any explicit DEPLOY_TAG override from the outer environment. --- e2e/cli/chaos.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/cli/chaos.test.ts b/e2e/cli/chaos.test.ts index 4c09333..06249ad 100644 --- a/e2e/cli/chaos.test.ts +++ b/e2e/cli/chaos.test.ts @@ -84,7 +84,7 @@ describe("dot deploy — chaos", () => { ), { cwd: REPO_ROOT, - env: { ...process.env, DOT_TAG: "e2e-chaos-sigint", DOT_TELEMETRY: "1" }, + env: { ...process.env, DOT_TAG: "e2e-chaos-sigint", DEPLOY_TAG: process.env.DEPLOY_TAG ?? "e2e-cli-chaos-sigint", DOT_TELEMETRY: "1" }, reject: false, }, ); @@ -169,6 +169,7 @@ describe("dot deploy — chaos RPC failover", () => { env: { ...process.env, DOT_TAG: "e2e-chaos-rpc", + DEPLOY_TAG: process.env.DEPLOY_TAG ?? "e2e-cli-chaos-rpc", DOT_TELEMETRY: "1", DOT_BULLETIN_RPC: "ws://127.0.0.1:1/", },