René's URL Explorer Experiment


Title: feat(local): forward connection_settings.binaryPath to browserstack-local [SDK-7284] by anish353 · Pull Request #1176 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: feat(local): forward connection_settings.binaryPath to browserstack-local [SDK-7284] by anish353 · Pull Request #1176 · browserstack/browserstack-cypress-cli

X Title: feat(local): forward connection_settings.binaryPath to browserstack-local [SDK-7284] by anish353 · Pull Request #1176 · browserstack/browserstack-cypress-cli

Description: Summary A customer's network blocks the BrowserStackLocal binary download, so they asked for a way to point the CLI at a binary they had already placed on disk. browserstack-local has supported exactly that for a long time — a binarypath option that short-circuits LocalBinary entirely — but the CLI never forwarded one. setLocalArgs forwards five connection_settings keys today (local_identifier, local_config_file, proxyHost, proxyPort, useCaCertificate). binaryPath appears nowhere in bin/, so setting it in browserstack.json is silently dropped and the download path is always taken. That silent drop is what made this hard to diagnose from the outside: there is no log line saying the key was ignored. Reported and root-caused on SDK-7284. What lands here File Change bin/helpers/utils.js setLocalArgs forwards a configured binary path as binarypath. Both binaryPath and binarypath are accepted in browserstack.json. test/unit/bin/helpers/utils.js Three specs: binaryPath is forwarded as the lowercase key, the lowercase config key is accepted too, and no key is emitted when none is configured. Plus a require-order fix, below. The forwarded key is deliberately all-lowercase. browserstack-local only special-cases binarypath in addArgs; any other casing falls through to its default: branch and is handed to the binary as an unknown CLI flag — while the download still happens: binaryPath -> this.binaryPath = undefined | leaks to the binary as ["--binaryPath",""] binarypath -> this.binaryPath = | leaks: [] BinaryPath -> this.binaryPath = undefined | leaks to the binary as ["--BinaryPath",""] Accepting both spellings in browserstack.json is for the same reason — a user copying binarypath from the browserstack-local README should not land back in the silent-drop case this PR exists to remove. Verification Against the published browserstack-cypress-cli@1.36.18 with its real browserstack-local@1.5.13, using a stub binary that reports {"state":"connected"} so the assertion is which binary got spawned: local_args from setLocalArgs Binary spawned 1.36.18 as published {key, localIdentifier, daemon, enable-logging-for-api, source} — no binarypath downloaded one; the supplied path is ignored this branch {... , binarypath: ""} the supplied binary, zero download attempts On the fixed run browserstack-local prints BINARY PATH IS DEFINED and start returns no error. The argv it hands the binary matches the shape in the customer's error line, including the duplicate --daemon / --source the two layers each add. Test plan Three new specs on setLocalArgs (forwarded key, lowercase alias, absent key). test/unit/bin/helpers/utils.js: 398 passing / 3 failing on this branch vs 393 passing / 5 failing on a clean master. Net +5 passing, zero regressions. The 3 remaining failures are pre-existing getVideoConfig specs, red on master too. End-to-end check against the published tarball plus a stub binary (table above). Why two pre-existing failures go green bin/helpers/usageReporting.js requires ./utils (line 9) and then reassigns module.exports (line 21). Requiring usageReporting before utils therefore leaves utils holding the empty exports object captured mid-cycle, while the test holds the real one — so usageReporting.cli_version_and_path was undefined inside setLocalArgs, nothing stubbed in the test was visible to the code under test, and the existing spec threw. Requiring utils first makes it capture the finished exports. This is a test-harness fix only; no production code depends on the ordering, since the CLI's entry points already load utils first. The stale-reference hazard in usageReporting.js itself is left alone as out of scope for this ticket.

Open Graph Description: Summary A customer's network blocks the BrowserStackLocal binary download, so they asked for a way to point the CLI at a binary they had already placed on disk. browserstack-local has supported...

X Description: Summary A customer's network blocks the BrowserStackLocal binary download, so they asked for a way to point the CLI at a binary they had already placed on disk. browserstack-local has suppo...

Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/pull/1176

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d18c0692-cf8b-16db-83fa-cfe56843406d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D26:3F5E9C:3894A07:4A2D51B:6B04448C
html-safe-nonce9ecf393d697b1506f399f3f5b5f00e535c3bffbc09f3d30dfe2193866dc346cf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDI2OjNGNUU5QzozODk0QTA3OjRBMkQ1MUI6NkIwNDQ0OEMiLCJ2aXNpdG9yX2lkIjoiNTk2NzY2MzQxNTY3MTA0MTQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3557510e8eb651af1973bc6df900d024eff8b4177a3bd6cf1987875458f50d54
hovercard-subject-tagpull_request:4304894953
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
twitter:imagehttps://avatars.githubusercontent.com/u/239086185?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/239086185?s=400&v=4
og:image:altSummary A customer's network blocks the BrowserStackLocal binary download, so they asked for a way to point the CLI at a binary they had already placed on disk. browserstack-local has supported...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id242935045
octolytics-dimension-repository_nwobrowserstack/browserstack-cypress-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id242935045
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-cypress-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1176%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1176%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-cypress-cli
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
browserstackhttps://github.com/browserstack
browserstack-cypress-clihttps://github.com/browserstack/browserstack-cypress-cli
Codehttps://github.com/browserstack/browserstack-cypress-cli
Issues28 (28)https://github.com/browserstack/browserstack-cypress-cli/issues
Pull requests47 (47)https://github.com/browserstack/browserstack-cypress-cli/pulls
Actionshttps://github.com/browserstack/browserstack-cypress-cli/actions
Projectshttps://github.com/browserstack/browserstack-cypress-cli/projects
Security and quality1 (1)https://github.com/browserstack/browserstack-cypress-cli/security
Insightshttps://github.com/browserstack/browserstack-cypress-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
anish353https://github.com/anish353
masterhttps://github.com/browserstack/browserstack-cypress-cli/tree/master
feat/sdk-7284-local-binary-pathhttps://github.com/browserstack/browserstack-cypress-cli/tree/feat/sdk-7284-local-binary-path
Conversation 0 https://github.com/browserstack/browserstack-cypress-cli/pull/1176
Commits 1 https://github.com/browserstack/browserstack-cypress-cli/pull/1176/commits
Checks 5 https://github.com/browserstack/browserstack-cypress-cli/pull/1176/checks
Files changed https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
feat(local): forward connection_settings.binaryPath to browserstack-local [SDK-7284] https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
afd55c4 feat(local): forward connection_settings.binaryPath to browserstack-l… anish353 Aug 18, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1176/commits/afd55c48e5ad7e396dd68e31922afff6c0379050
Clear filters https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
utils.js https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
utils.js https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/blob/master/CODEOWNERS#L18
bin/helpers/utils.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
View file https://github.com/browserstack/browserstack-cypress-cli/blob/afd55c48e5ad7e396dd68e31922afff6c0379050/bin/helpers/utils.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
test/unit/bin/helpers/utils.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
View file https://github.com/browserstack/browserstack-cypress-cli/blob/afd55c48e5ad7e396dd68e31922afff6c0379050/test/unit/bin/helpers/utils.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/pull/1176/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1176/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.