Repository navigation
test(e2e): make the local QSS fixture port configurable (QUIET_QSS_PORT) - #3715
Open
holmesworcester wants to merge 2 commits into
Open
holmesworcester wants to merge 2 commits into
holmesworcester wants to merge 2 commits into
Conversation
…S_PORT Sessions that share a host each need their own QSS fixture, but the Appium and community harness, the Android adb reverse route and the QSS-only backend all hardcoded port 3003. QUIET_QSS_PORT (default 3003, 1024-65535) now selects the loopback port; the QSS-only backend accepts ws://localhost:<port> for any such port. Adds a unit test that runs with a non-default port and wires it into the workflows that already run the sibling harness tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sessions that share a host each need their own local QSS fixture, but the Appium harness, its community helpers, the Android
adb reverseroute and the QSS-only backend all hardcoded port 3003.Changes
packages/mobile/e2e/utils/qssPort.cjs:QUIET_QSS_PORT(default 3003, valid range 1024-65535) and the matchingws://localhost:<port>endpoint.qssCommunity.cjs(endpoint, fixture manifest check, health URL),androidProcesses.cjsandappium/mobile.mjs(adb reverse tcp:<port> tcp:<port>) use it.ci-android.sh/ci-ios.shpass it tofixture.py --port.backend/e2e/qss-only/mode.cjsacceptsws://localhost:<1024-65535>plus the staging endpoint. Other hosts,127.0.0.1,wss://localhostand privileged ports are still refused.fixture.pyalready took--port; the qss-e2e README now documents running on another port (the clients bake the endpoint in, so builds use env-file copies with the port changed).Tests
packages/mobile/scripts/qss-port.test.cjs: default and validation, the Android route and the community harness with a non-default port (3166, run in a child process), and the QSS-only endpoint allow/deny list. It is run by the iOS e2e and Android notification workflows next to the existing harness tests.qss-community-harness,android-qss-harness,notification-android-workflow,e2e-ios-workflowandqss-only.test.mjsstill pass.test:onboardinglane (Android emulator, desktop peer, local QSS) passes with the fixture on 3066.🤖 Generated with Claude Code