René's URL Explorer Experiment


Title: bug: BrowserStack\Local does not pass along binary_path to BrowserStack\LocalBinary by mparker17 · Pull Request #27 · browserstack/browserstack-local-php · GitHub

Open Graph Title: bug: BrowserStack\Local does not pass along binary_path to BrowserStack\LocalBinary by mparker17 · Pull Request #27 · browserstack/browserstack-local-php

X Title: bug: BrowserStack\Local does not pass along binary_path to BrowserStack\LocalBinary by mparker17 · Pull Request #27 · browserstack/browserstack-local-php

Description: One of the arguments accepted by BrowserStack\Local is binaryPath. You're supposed to be able to pass the path to an already-downloaded BrowserStackLocal binary. However, currently, when you call BrowserStack\Local::start(...).... it creates an instance of BrowserStack\LocalBinary. The BrowserStack\LocalBinary constructor creates its own list of places to look for the local binary. When it subsequently calls BrowserStack\LocalBinary::binary_path(), that searches the list of possible binary locations (which currently does not include the binaryPath you passed to BrowserStack\Local), and if it fails to find one in those locations, it downloads one. This patch changes BrowserStack\Local::start(...) so that, if binaryPath has been set, it adds binaryPath to the top of BrowserStack\LocalBinary list of possible binary locations before it calls BrowserStack\LocalBinary::binary_path(). You would run into this problem if you're trying to run a BrowserStackLocal inside a Docker container whose image is based on Alpine Linux... which you might do if you're running automated BrowserStack tests in GitHub Actions or GitLab CI/CD. Basically, Alpine Linux uses the musl library, instead of glibc, so binaries (e.g.: BrowserStackLocal) linked against glibc on "traditional" Linux systems usually don't run on Alpine; and vice-versa. Since BrowserStackLocal v8.1, BrowserStackLocal is available for 64-bit Alpine/musl systems, but it's (rightly) not the default download. Trying to run a BrowserStackLocal binary linked against glibc when there's only musl available results in a silent failure... Linux can run the ELF binary but it does nothing (except abort with an exit-code indicating failure) because the symbols it was linked against do not exist. This brings some user stories for this ticket... As a DevOps being charged pipeline minutes by my CI/CD provider I want to be able to prepare my own Docker image with the BrowserStackLocal binary already downloaded So that I don't have to spend pipeline minutes having BrowserStack\BrowserStackLocal download another copy to a different location ... and ... As a DevOps working on an Alpine/musl-based Linux I want to be able to pass the path to a musl-linked BrowserStackLocal to BrowserStack\Local So that my pipeline doesn't silently fail when BrowserStack\BrowserStackLocal downloads the glibc-linked BrowserStackLocal instead

Open Graph Description: One of the arguments accepted by BrowserStack\Local is binaryPath. You're supposed to be able to pass the path to an already-downloaded BrowserStackLocal binary. However, currently, when you ca...

X Description: One of the arguments accepted by BrowserStack\Local is binaryPath. You're supposed to be able to pass the path to an already-downloaded BrowserStackLocal binary. However, currently, when yo...

Opengraph URL: https://github.com/browserstack/browserstack-local-php/pull/27

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

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:77a88fc8-017a-2928-4217-dc270616e7aa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCD0:3FAE88:BCEAC:103E19:6B04B028
html-safe-noncefd7708ba711397056523aa040b7d2ad52305a64550b6cbe41b87236bd68abed8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0QwOjNGQUU4ODpCQ0VBQzoxMDNFMTk6NkIwNEIwMjgiLCJ2aXNpdG9yX2lkIjoiODA4NDUyMzk0Njg1MDgzNjg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac233b088c3ea618d7e47e024598ce47be3008a7427c26ccc77f57c8b605fa62a9
hovercard-subject-tagpull_request:910903706
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-local-php/pull/27/files
twitter:imagehttps://avatars.githubusercontent.com/u/219351?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/219351?s=400&v=4
og:image:altOne of the arguments accepted by BrowserStack\Local is binaryPath. You're supposed to be able to pass the path to an already-downloaded BrowserStackLocal binary. However, currently, when you ca...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-local-php git https://github.com/browserstack/browserstack-local-php.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id51923086
octolytics-dimension-repository_nwobrowserstack/browserstack-local-php
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51923086
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-local-php
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-local-php/pull/27/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-local-php%2Fpull%2F27%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-local-php%2Fpull%2F27%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-local-php
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/27/files
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/27/files
Reloadhttps://github.com/browserstack/browserstack-local-php/pull/27/files
browserstackhttps://github.com/browserstack
browserstack-local-phphttps://github.com/browserstack/browserstack-local-php
Codehttps://github.com/browserstack/browserstack-local-php
Issues3 (3)https://github.com/browserstack/browserstack-local-php/issues
Pull requests10 (10)https://github.com/browserstack/browserstack-local-php/pulls
Actionshttps://github.com/browserstack/browserstack-local-php/actions
Projectshttps://github.com/browserstack/browserstack-local-php/projects
Security and qualityhttps://github.com/browserstack/browserstack-local-php/security
Insightshttps://github.com/browserstack/browserstack-local-php/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-local-php%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-local-php%2Fissues%2Fnew%2Fchoose
mparker17https://github.com/mparker17
browserstack:masterhttps://github.com/browserstack/browserstack-local-php/tree/master
mparker17:custom-binary-pathhttps://github.com/mparker17/browserstack-local-php/tree/custom-binary-path
Conversation 0 https://github.com/browserstack/browserstack-local-php/pull/27
Commits 1 https://github.com/browserstack/browserstack-local-php/pull/27/commits
Checks 0 https://github.com/browserstack/browserstack-local-php/pull/27/checks
Files changed https://github.com/browserstack/browserstack-local-php/pull/27/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/27/files
bug: BrowserStack\Local does not pass along binary_path to BrowserStack\LocalBinary https://github.com/browserstack/browserstack-local-php/pull/27/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-local-php/pull/27/files
060a37a bug: BrowserStack\Local does not pass along binary_path to BrowserSta… mparker17 Apr 15, 2022 https://github.com/browserstack/browserstack-local-php/pull/27/commits/060a37aab1880d02774a725f3d7655e53c624b24
Clear filters https://github.com/browserstack/browserstack-local-php/pull/27/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/27/files
Please reload this pagehttps://github.com/browserstack/browserstack-local-php/pull/27/files
https://github.com/browserstack/browserstack-local-php/blob/master/CODEOWNERS#L1
lib/Local.phphttps://github.com/browserstack/browserstack-local-php/pull/27/files#diff-0c1059e05dd846d4ec96ae85d98c9e7595668f916bac8a8e9ede53fb768deacd
View file https://github.com/browserstack/browserstack-local-php/blob/060a37aab1880d02774a725f3d7655e53c624b24/lib/Local.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-local-php/pull/27/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-local-php/pull/27/files#diff-0c1059e05dd846d4ec96ae85d98c9e7595668f916bac8a8e9ede53fb768deacd
https://github.com/browserstack/browserstack-local-php/pull/27/files#diff-0c1059e05dd846d4ec96ae85d98c9e7595668f916bac8a8e9ede53fb768deacd
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.