Title: SDK-8048: run accessibility on Cypress 16.1.0-16.2.0 with forceHttp1 (stacked on #1206) by AakashHotchandani · Pull Request #1222 · browserstack/browserstack-cypress-cli · GitHub
Open Graph Title: SDK-8048: run accessibility on Cypress 16.1.0-16.2.0 with forceHttp1 (stacked on #1206) by AakashHotchandani · Pull Request #1222 · browserstack/browserstack-cypress-cli
X Title: SDK-8048: run accessibility on Cypress 16.1.0-16.2.0 with forceHttp1 (stacked on #1206) by AakashHotchandani · Pull Request #1222 · browserstack/browserstack-cypress-cli
Description: Stacked on #1206 (APS-22894-cypress-16-expose). Lets accessibility run on Cypress 16.2.0 instead of refusing it, by turning on forceHttp1 for the Cypress versions that have the bug (16.1.0 to 16.2.0). Why From Cypress 16.1.0 to 16.2.0 the a11y extension's service worker never starts. It's a regression from cypress-io/cypress#34762 (16.1.0), reported as #35127 on 16.2.0, and fixed by #34958 in 16.2.1 (released 28 Oct). Every scan waits out the 25s timeout and the build still passes, so customers lose a11y results without any error. forceHttp1 avoids the bug. Same-day A/B on preprod (Ventura, Chrome 148, same account and CLI build), 20 Nov: Build Cypress forceHttp1 extension marker click scan step 388951c4 16.2.0 no 55.7s 25.58s (scan timeout) d09f0ba9 16.2.0 yes, set by hand 8.36s 4.21s 352f0b15 16.2.0 yes, added by this PR 8.23s 5.11s cd7ca3fc 15.21.1 n/a 8.84s 5.03s 352f0b15 had no config in browserstack.json. The CLI added forceHttp1 by itself (that run used the first commit, faff373, whose log line said "Cypress 16"; 0cafced narrows it to 16.1.0-16.2.0 and the message now says so). Review follow-up: #1223 keys forceHttp1 on Cypress major 16 instead of the range below, because Rails runs 16.2.0 for every 16.x request today. What changes Accessibility on affected Cypress versions: when accessibility is on and cypress_version is 16.1.0, 16.1.1 or 16.2.0 (range [16.1.0, 16.2.1) in ACCESSIBILITY_FORCE_HTTP1_CYPRESS_RANGE), forceHttp1=true is appended to run_settings.config. Other config keys are kept. If the user already set forceHttp1 (true or false), it's left alone. 16 and 16.latest: these name no minor version and Rails resolves them. They get forceHttp1 while 16.2.0 is the only Cypress 16 Rails offers. Once Rails offers 16.2.1+, that branch should be removed. 16.0.x and 16.2.1+: no forceHttp1. Limit: MAX_CYPRESS_MAJOR_FOR_ACCESSIBILITY 15 → 16. Cypress 16 is allowed and 17+ is still refused. No version given: accessibility builds still ask for 15 (new DEFAULT_CYPRESS_MAJOR_FOR_ACCESSIBILITY), which is this CLI's choice (Rails defaults expose-capable CLIs to its newest Cypress): unpinned accessibility builds stay off the Cypress 16 forceHttp1 path. This PR doesn't move anyone to 16 who didn't ask for it. Messages: the refusal message says "up to version 16", and there's a new info message when forceHttp1 is added. Not covered cypress_version: "latest": the CLI can't tell which major Rails will resolve it to, so forceHttp1 isn't added. If Rails resolves latest to 16 for a11y builds, this needs a backend/terminal fallback. Terminals already set forceHttp1 for Cypress 16 with network logs or Local (terminalDeploy #8868), and extending that condition to accessibility would cover it. CLIs without this change get no forceHttp1. Trade-off: forceHttp1 sends traffic through Cypress's HTTP/1.1 proxy (no HTTP/2, some cy.intercept differences) and Cypress prints a deprecation warning. It only applies to the affected versions, so customers on 16.2.1+ get the normal network mode. Tests test/unit/bin/helpers/capabilityHelper.js: forceHttp1 added for 16 / 16.latest / 16.1.0 / 16.1.1 / 16.2.0; other keys kept; a user-set forceHttp1=false respected; not added for 16.0.0, 16.2.1, 16.3.0, 15, no version (pinned to 15), a11y off, or latest. Refusal now covers 17+; 16 is accepted. capabilityHelper.js: 99 passing. The 5 utils.js failures are the same on the base branch without this change. E2E: preprod build 352f0b15 (above), installed from a test drop branch, SDK-8048-cypress16-preprod-drop. Ticket: SDK-8048 · Release: APS-22894 🤖 Generated with Claude Code
Open Graph Description: Stacked on #1206 (APS-22894-cypress-16-expose). Lets accessibility run on Cypress 16.2.0 instead of refusing it, by turning on forceHttp1 for the Cypress versions that have the bug (16.1.0 to 16.2....
X Description: Stacked on #1206 (APS-22894-cypress-16-expose). Lets accessibility run on Cypress 16.2.0 instead of refusing it, by turning on forceHttp1 for the Cypress versions that have the bug (16.1.0 to 16.2....
Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/pull/1222
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a801cb2c-983e-74f9-5ea5-e60ccc336f51 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 96C4:1C9304:1D8AB:2773A:6B044870 |
| html-safe-nonce | 5c319673e9cfc1055ac7a2e0c590b7a35fe88eea9c150bb83830d0ff8f92ebfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkM0OjFDOTMwNDoxRDhBQjoyNzczQTo2QjA0NDg3MCIsInZpc2l0b3JfaWQiOiI0ODE4MzI4MDg1MjIzMTk2Nzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ac92cdbc572343694fb6c43e480629d3e76ae346bd30ed9b39d1cf2c0f03a396 |
| hovercard-subject-tag | pull_request:5413466732 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/browserstack/browserstack-cypress-cli/pull/1222/files |
| twitter:image | https://avatars.githubusercontent.com/u/187596484?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/187596484?s=400&v=4 |
| og:image:alt | Stacked on #1206 (APS-22894-cypress-16-expose). Lets accessibility run on Cypress 16.2.0 instead of refusing it, by turning on forceHttp1 for the Cypress versions that have the bug (16.1.0 to 16.2.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 242935045 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-cypress-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 242935045 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-cypress-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width