René's URL Explorer Experiment


Title: fix(ci-info): detect GitHub Actions before presence-only CI providers [SDK-7081] by osho-20 · Pull Request #1154 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: fix(ci-info): detect GitHub Actions before presence-only CI providers [SDK-7081] by osho-20 · Pull Request #1154 · browserstack/browserstack-cypress-cli

X Title: fix(ci-info): detect GitHub Actions before presence-only CI providers [SDK-7081] by osho-20 · Pull Request #1154 · browserstack/browserstack-cypress-cli

Description: Problem SDK-7081 — TRA's Re-run control is missing on some of a customer's Cypress builds. obs-api computes the reRun flag per build and force-disables it when the build has no CI build_url; the TRA frontend greys the control off that flag. In getCiInfo() (bin/helpers/helper.js) the Jenkins check runs first and matches on the mere presence of JENKINS_URL/JENKINS_HOME. On a self-hosted GitHub Actions runner with leftover Jenkins env vars (the customer runs runs-on: [self-hosted, ...]), the build is classified as Jenkins: {"name": "Jenkins"} build_url/job_name/build_number are all undefined (Jenkins vars like BUILD_URL aren't set), so the serialized ci_info reaches TestHub without a build_url → re-run permanently greyed for that build — even on the latest CLI. Note: the customer's currently-affected workflows also pin pre-1.36.5 CLI versions (no GHA detection at all → ci_info: null, same gate). That part is resolved by upgrading the pins to ≥ 1.36.10; this PR closes the remaining variant that can hit current versions. Fix Move the GitHub Actions branch — keyed on the explicit GITHUB_ACTIONS === "true" marker — ahead of the presence-only providers. Explicit CI markers now win over incidental env leftovers. Also: getGitMetaData() now returns after resolve({}) when no git directory is found, instead of falling through and attempting a second resolve. Scope Detection order only — every provider's returned fields are unchanged. Pure-Jenkins environments (no GITHUB_ACTIONS/GITHUB_RUN_ID) still resolve to Jenkins. Complements #1123 (SDK-6279), which fixed build_number in the same branch. Verification getCiInfo() under env-faithful GitHub Actions vars plus a leaked JENKINS_HOME=/var/lib/jenkins: State Result Before {"name":"Jenkins"} — no build_url → re-run greyed After {"name":"GitHub Actions","build_url":".../actions/runs/27412345678","build_number":"27412345678"} New unit tests in test/unit/bin/helpers/helper.js: GHA detection, the Jenkins-shadowing regression, pure Jenkins, no-CI — all pass. Full suite: 693 passing / 16 failing — the 16 failures are pre-existing on master (verified identical with the change stashed). End-to-end repro of the gate on real builds (identical suite + GHA env, only CLI version differs): TRA build xa9qkg059unqm0s76mshuadvsiphhdcfbqdafurc (ci_info: null, CLI 1.36.3) vs jl1fvypsbnpeq01viexykee0fdfnxlcye4kuctk3 (ci_info populated, CLI 1.36.13), confirmed via GET /ext/v1/builds/. Release minor patch Release notes: Fixed CI detection so GitHub Actions builds on self-hosted runners with leftover Jenkins environment variables are correctly reported as GitHub Actions, restoring Test Observability's Re-run option for those builds. 🤖 Generated with Claude Code

Open Graph Description: Problem SDK-7081 — TRA's Re-run control is missing on some of a customer's Cypress builds. obs-api computes the reRun flag per build and force-disables it when the build has no CI build_url...

X Description: Problem SDK-7081 — TRA's Re-run control is missing on some of a customer's Cypress builds. obs-api computes the reRun flag per build and force-disables it when the build has no CI b...

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

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:54d56fd7-3f64-61fc-04e6-8ec1f4869af3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFFC:3FCD63:300017:428583:6B0455AF
html-safe-noncefc07f14952c5a19c437f69379b361470c547a4d12aeafc23deb737ddf66acce9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkZDOjNGQ0Q2MzozMDAwMTc6NDI4NTgzOjZCMDQ1NUFGIiwidmlzaXRvcl9pZCI6IjYwNzM2NjQ4NzYwMDQ1Mjk1ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8c61efee49ec0a7da7ab1be94fa2541896636c5c726e235fa460a0930eae5edd
hovercard-subject-tagpull_request:4142706275
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/1154/files
twitter:imagehttps://avatars.githubusercontent.com/u/76126720?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/76126720?s=400&v=4
og:image:altProblem SDK-7081 — TRA's Re-run control is missing on some of a customer's Cypress builds. obs-api computes the reRun flag per build and force-disables it when the build has no CI build_url...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
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
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1154%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%2F1154%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/1154/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/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
xxshubhamxxhttps://github.com/xxshubhamxx
masterhttps://github.com/browserstack/browserstack-cypress-cli/tree/master
fix/sdk-7081-ci-info-detection-orderhttps://github.com/browserstack/browserstack-cypress-cli/tree/fix/sdk-7081-ci-info-detection-order
Conversation 1 https://github.com/browserstack/browserstack-cypress-cli/pull/1154
Commits 1 https://github.com/browserstack/browserstack-cypress-cli/pull/1154/commits
Checks 5 https://github.com/browserstack/browserstack-cypress-cli/pull/1154/checks
Files changed https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
fix(ci-info): detect GitHub Actions before presence-only CI providers [SDK-7081] https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
0fc92f1 fix(ci-info): detect GitHub Actions before presence-only CI providers… osho-20 Jul 27, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1154/commits/0fc92f16ae74b4cefacc94876f718c77778ee3fa
Clear filters https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files
helper.js https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
helper.js https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-4ee8faa0a29ac337bd7569b210f931c5ac4ac9c139c6556646770119ca75b46b
https://github.com/browserstack/browserstack-cypress-cli/blob/master/CODEOWNERS#L16
bin/helpers/helper.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
View file https://github.com/browserstack/browserstack-cypress-cli/blob/0fc92f16ae74b4cefacc94876f718c77778ee3fa/bin/helpers/helper.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-18b187a85729a3b883797258dfe0e56770438b8167d16959edecec687637a913
test/unit/bin/helpers/helper.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-4ee8faa0a29ac337bd7569b210f931c5ac4ac9c139c6556646770119ca75b46b
View file https://github.com/browserstack/browserstack-cypress-cli/blob/0fc92f16ae74b4cefacc94876f718c77778ee3fa/test/unit/bin/helpers/helper.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1154/files#diff-4ee8faa0a29ac337bd7569b210f931c5ac4ac9c139c6556646770119ca75b46b
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1154/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.