From 313c990a08978c46cd9321ce0b0189d1eecaf0e9 Mon Sep 17 00:00:00 2001 From: Mihir Rawool Date: Mon, 31 Aug 2026 18:16:28 +0530 Subject: [PATCH] Add lts flag to per-event product_map so TH derives origin correctly Build-create's product_map already carries lts=true (see getProductMapForBuildStartCall at ~line 1014); the per-event TestRun / HookRun send at line 529-532 did not. Without lts=true on the per-event product_map, TestHub's getOriginFromSource returns UnknownGrid, the error event lands with error_cluster_id=NULL, and the Load Testing Unique Errors panel renders empty even when the test actually failed. Mirrors the equivalent Python SDK fix pattern (PR #1194). --- src/testObservability.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/testObservability.js b/src/testObservability.js index f2f70dc..582d37e 100644 --- a/src/testObservability.js +++ b/src/testObservability.js @@ -528,7 +528,8 @@ class TestObservability { }, product_map: { observability: helper.isTestObservabilitySession(), - accessibility: helper.isAccessibilitySession() && accessibilityAutomation.shouldScanTestForAccessibility(test) && process.env.VALID_ALLY_PLATFORM + accessibility: helper.isAccessibilitySession() && accessibilityAutomation.shouldScanTestForAccessibility(test) && process.env.VALID_ALLY_PLATFORM, + lts: helper.isLoadTestingSession() } };