Repository navigation
PTAAA-881: gate the selfHeal warning on isBrowserstackInfra - #325
Hitesh-IDK wants to merge 2 commits into
Conversation
The warning added in #315 fires when shouldAddServiceVersion() returns false, but that has two independent causes: not being on BrowserStack infra, and using the chromedriver service with testObservability left on. A genuine BrowserStack session in the second case is told it is not running on BrowserStack infrastructure. Gate on isBrowserstackInfra() instead — the condition the message actually describes. It is already imported here for the same purpose a few lines above. shouldAddServiceVersion stays for its other callers. Found while porting #315 to v8 (#322), which has the corrected gate. Typecheck unchanged at 9 pre-existing errors; tests unchanged at 931 passing / 29 pre-existing failures. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
✅ SDK PR Review — approve. Correct one-line fix; no changes requested. The fix is right
if ((config.services && config.services.toString().includes('chromedriver') && testObservability !== false) || !isBrowserstackInfra(config, caps)) {
return false
}Gating on Verified
The added cast ( Cross-branchThis converges Not verified on my sideThe PR body reports Note on gate state
|
|
🟢 SDK PR Review gate is green — the SDK PR Review Agent has run on the current head commit (verdict: This gate confirms a review ran on the latest commit. The verdict itself is advisory — read the findings and use your judgement; it does not block merge. A native GitHub reviewer approval is still separately required by branch protection before this PR can merge. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
What is this about?
One-line follow-up to #315. The off-infra
selfHealwarning it added can fire for a session that is on BrowserStack.shouldAddServiceVersion()returnsfalsefor two independent reasons (util.ts):The warning only means to cover the second. In the first — the chromedriver service with
testObservabilityleft on, which is the default — a genuine BrowserStack session is told "selfHeal has no effect for sessions not running on BrowserStack infrastructure." Wrong root cause, pointed at the user.This gates on
isBrowserstackInfra()instead, which is the condition the message describes. It is already imported inlauncher.tsand used for the same purpose a few lines above, so this is a one-line change.shouldAddServiceVersionstays for its other callers.Found while porting #315 to v8 in #322, which carries the corrected gate — so
v8is currently more correct thanmainon this line.Related Jira task/s
https://browserstack.atlassian.net/browse/PTAAA-881
Release (mandatory for every PR — required for the
ready-for-reviewlabel)Version bump: (required — tick exactly one)
Release notes type: (optional)
Release notes (customer-facing): (optional but encouraged)
Release notes (internal): (required — engineer-facing; what actually changed / why)
selfHealoff-infra warning from PTAAA-881: remove extension-based self-healing and the ai-sdk-node dependency #315 gated onshouldAddServiceVersion(), which is also false for a chromedriver service with observability enabled. That misreported a genuine BrowserStack session as off-infra. Now gated onisBrowserstackInfra(), the condition the message actually describes.Checklist
Verification:
tsc --noEmit— 9 errors, unchanged from baseline, none inlauncher.ts.vitest --run— 931 passing / 29 failing, identical to baseline (all pre-existing).eslint src/launcher.tsclean.PR Validations
Run Tests: Comment RUN_TESTS to trigger sanity tests.
🤖 Generated with Claude Code