René's URL Explorer Experiment


Title: fix(a11y): stop TestHub build for accessibility-only runs [SDK-7793] by kamal-kaur04 · Pull Request #1202 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: fix(a11y): stop TestHub build for accessibility-only runs [SDK-7793] by kamal-kaur04 · Pull Request #1202 · browserstack/browserstack-cypress-cli

X Title: fix(a11y): stop TestHub build for accessibility-only runs [SDK-7793] by kamal-kaur04 · Pull Request #1202 · browserstack/browserstack-cypress-cli

Description: What is this about? With testObservability: false and accessibility on, the Accessibility build stays in processing forever, even though the Automate sessions pass (SDK-7793, 7 of 7 customer builds on 1.36.20). The CLI starts the TestHub build when observability or accessibility is on, but only stops it when observability is on. Start: bin/commands/runs.js launches the TestHub build whenever shouldProcessEventForTesthub() is true, i.e. O11y || A11y (bin/testhub/utils.js). Stop: printBuildLink() returns early unless it is an observability session, and it is the only caller of stopBuildUpstream(). stopBuildUpstream() also reads only the observability env vars (BS_TESTOPS_BUILD_COMPLETED / BS_TESTOPS_JWT / BS_TESTOPS_BUILD_HASHED_ID). An accessibility-only launch sets only BROWSERSTACK_TESTHUB_UUID / BROWSERSTACK_TESTHUB_JWT. So an accessibility-only build is created at TestHub and never stopped, and TestHub never finalises it for Accessibility. Wire capture on unpatched 1.37.1 (same config): POST /api/v2/builds → 200 with product_map {"observability":false,"accessibility":true}, then no PUT /api/v1/builds//stop for the rest of the run. The A11y build was still running 30+ min after the CLI exited. Related Jira task/s SDK-7793 A11Y-13549 (the PUT /api/test_runs/stop → 401 in the ticket comes from the BrowserStack-side runner, not the CLI; the CLI has no v2 A11y start path left) Dependent PRs / release order Dependent PRs: None. CLI-only, no paired change in railsApp / realMobile / binary. No cross-repo deploy order applies. Automation cases to add Cypress case with testObservability: false + accessibility: true asserting the A11y build reaches completed after the run. Code changes to check Spread operator is not used. Syntax supported by older Node: no ?. / ??. The change bin/testObservability/helper/helper.js New isTestHubBuildLaunched(): true when BROWSERSTACK_TESTHUB_UUID and BROWSERSTACK_TESTHUB_JWT are both set to real values (not empty / "null" / "undefined"). printBuildLink() runs when it is an observability session or a TestHub build was launched. stopBuildUpstream() stops the build when observability launched it or any TestHub build was launched. It uses the observability JWT/build id when observability launched the build and the TestHub ones otherwise. The observability path is unchanged. test/unit/bin/testObservability/buildStop.js: 4 cases covering A11y-only stop, O11y stop, and no-build no-op. Verification Run CLI O11y stop request result repro unpatched 1.37.1 off none sent A11y build u9snesxmqpfhdozauk7ygqdoljpt8gvc265dhjag stuck running fix this branch off PUT /api/v1/builds/whb8sz77rbcv2vyyghumlo7utfgakwiburvk1jn4/stop → 200 A11y build completed (1 session, 37 issues) fix, final rerun this branch off stop → 200 iaoyzxszgnsoqqegztjqs9dzdkmvcjqpdnx3rhr9 terminal O11y regression this branch on exactly one stop, as before TRA build cwvfokbl55id6w5g0epf9qbuk4u33m0n8vihoyai passed, 1 passed / 0 failed Unit: the new buildStop.js passes 4/4 on this branch and fails 2/4 on master. Full suite: 727 passing, 16 failing; the same 16 fail on master. Not covered: async (non---sync) mode; 1.36.20 wire capture (TestHub launch returned 403 on our account; its source has the same gate). 🤖 Generated with Claude Code Summary by CodeRabbit Bug Fixes Build links and stop requests now work for valid TestHub builds, including accessibility-only builds. Stop requests use the correct build credentials and are sent only once. Stop requests are skipped when the required build details are missing or invalid.

Open Graph Description: What is this about? With testObservability: false and accessibility on, the Accessibility build stays in processing forever, even though the Automate sessions pass (SDK-7793, 7 of 7 customer builds...

X Description: What is this about? With testObservability: false and accessibility on, the Accessibility build stays in processing forever, even though the Automate sessions pass (SDK-7793, 7 of 7 customer builds...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:ff713af9-1903-6a68-56b2-5c8a1401e07c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9BC:241F93:D3E8B8:12950FC:6B043F65
html-safe-nonce7916d254132ffe9f7169f0a7855691deede052798332e1c6d1b5dd70c1cf71aa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJDOjI0MUY5MzpEM0U4Qjg6MTI5NTBGQzo2QjA0M0Y2NSIsInZpc2l0b3JfaWQiOiIxOTAzNjg2MzI5NTIzNTE5MzMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4150eb08887a7ef36523356d0d15d99495d71fc23b28e97263d49e8f03bf900a
hovercard-subject-tagpull_request:4689189002
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/1202/files
twitter:imagehttps://avatars.githubusercontent.com/u/38219887?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/38219887?s=400&v=4
og:image:altWhat is this about? With testObservability: false and accessibility on, the Accessibility build stays in processing forever, even though the Automate sessions pass (SDK-7793, 7 of 7 customer builds...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1202%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%2F1202%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/1202/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/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
kamal-kaur04https://github.com/kamal-kaur04
masterhttps://github.com/browserstack/browserstack-cypress-cli/tree/master
fix/SDK-7793-a11y-testhub-build-stophttps://github.com/browserstack/browserstack-cypress-cli/tree/fix/SDK-7793-a11y-testhub-build-stop
Conversation 3 https://github.com/browserstack/browserstack-cypress-cli/pull/1202
Commits 1 https://github.com/browserstack/browserstack-cypress-cli/pull/1202/commits
Checks 5 https://github.com/browserstack/browserstack-cypress-cli/pull/1202/checks
Files changed https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
fix(a11y): stop TestHub build for accessibility-only runs [SDK-7793] https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
d986604 SDK-7793: stop TestHub build for accessibility-only runs kamal-kaur04 Sep 30, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1202/commits/d986604b01517fcbe7b316a1fc054be21b71e51e
Clear filters https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
helper.js https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
buildStop.js https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-1ed41300a6389df8343f5a28a24ea36d8d1454112c140eb56d013102dbbeaa3a
https://github.com/browserstack/browserstack-cypress-cli/blob/master/CODEOWNERS#L10
bin/testObservability/helper/helper.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
View file https://github.com/browserstack/browserstack-cypress-cli/blob/d986604b01517fcbe7b316a1fc054be21b71e51e/bin/testObservability/helper/helper.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-88327a4e0e4fd30fc5e51b0e5f91faaeacd56d8f1b8b86fbdab294b9a8d5c9a2
test/unit/bin/testObservability/buildStop.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#diff-1ed41300a6389df8343f5a28a24ea36d8d1454112c140eb56d013102dbbeaa3a
View file https://github.com/browserstack/browserstack-cypress-cli/blob/d986604b01517fcbe7b316a1fc054be21b71e51e/test/unit/bin/testObservability/buildStop.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1202/{{ revealButtonHref }}
coderabbitaihttps://github.com/apps/coderabbitai
Sep 30, 2026https://github.com/browserstack/browserstack-cypress-cli/pull/1202/files#r4143556051
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1202/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.