fix(TE-4324): read testName from caps with name fallback#512
Merged
sushobhit-lt merged 1 commit intoLambdaTest:stagefrom Apr 30, 2026
Merged
Conversation
LSRS returns the test name under two different keys depending on the resolution path: - SessionInfo (Redis-success): `testName` - LTMS-fallback response: `name` The earlier fix only read `.name`, so the primary Redis-success path silently dropped the value. Read `testName` first with `name` as fallback in both server.ts (3 caps-resolution branches) and processSnapshot.ts (2 sessionCapabilitiesMap lookups). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to merged PR #511. The previous TE-4324 series read `.name` from the LSRS `/sessions/capabilities` response, but LSRS actually returns the test name under two different keys depending on the resolution path:
The earlier fix only worked for the LTMS-fallback path. The primary Redis-success path silently dropped the value, so `snapshot.options.testName` was never set and `processedOptions.testName` was empty downstream. Verified against a customer log showing `fetch caps for sessionId: ... are {...,"testName":"dN6VuGgSQ6"}` while `Snapshot options:` and `Processed options:` had no testName field.
Change
Read `testName` first with `name` as fallback at all 5 caps-read sites:
Resolution pattern: `const testName = caps.testName || caps.name;`
Test plan
🤖 Generated with Claude Code