Repository navigation
test: obs-websocket v5 Tier 4 black-box suite - #104
Merged
Merged
Conversation
Language-independent obs-websocket v5 black-box test client under test/websocket-tier4/ (Python + websockets). Runs headless OBS with obs-websocket enabled and asserts wire-level behavior only: - Hello/Identify handshake with and without auth (challenge, wrong password, request-before-Identify, double-Identify, rpcVersion) - All 147 documented v5 request types across every category - Event subscription delivery and SUB_NONE isolation - Request batches (serial, haltOnFailure, no-halt, parallel) - Error codes for malformed/unknown requests and connection close codes Passes 178/178 checks against the current C++ server (obs-websocket 5.5.2). Run command documented in test/websocket-tier4/README.md. Refs #45 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…h readiness Deinterlace requests now target the async media input and expect 100 (the pinned obs-websocket 5.7.5 implements them; a sync color source answers 604, asserted separately). Drop WAYLAND_DISPLAY and force QT_QPA_PLATFORM=xcb so OBS stays on the Xvfb display (on Wayland it opened on the user's session and crashed in GetOutputList / projector teardown). Retry the authed GetVersion while the server answers 207 NotReady. Pin websockets==13.1. Co-Authored-By: Claude Opus 5.5 <[email protected]> Local-Gate: v1 tree=4c36bc665ce64d20c8b245f182405c8584ee44f9 secs=80 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791649727,"gate":"rust/all/fmt","host":"linux-x86_64","key":"1ffd2637ad2ae4be6579f5976688338bb939a0266c59ef358bde5a380deffc9b","lane":"lint","parents":["29c4fe9dfe721f8a71d090632243dd06316c7e07"],"secs":32,"stamp":"7cb83970c1afe89585d6bbbcdf86556e","tree":"4c36bc665ce64d20c8b245f182405c8584ee44f9","v":1,"via":"run"} Ci-Attestation: {"at":1791649727,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"1ffd2637ad2ae4be6579f5976688338bb939a0266c59ef358bde5a380deffc9b","lane":"lint","parents":["29c4fe9dfe721f8a71d090632243dd06316c7e07"],"secs":32,"stamp":"2711dcfd237cdd70fc0cd6bedb5682f2","tree":"4c36bc665ce64d20c8b245f182405c8584ee44f9","v":1,"via":"run"} Ci-Attestation: {"at":1791649727,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"694b1f06e997b5934c217c971e5bca2a46931dae2db59436e00f145660f2fa26","lane":"rust-test","parents":["29c4fe9dfe721f8a71d090632243dd06316c7e07"],"secs":13,"stamp":"d6c0fff441b1f8c663875d6d00088d50","tree":"4c36bc665ce64d20c8b245f182405c8584ee44f9","v":1,"via":"run"} Ci-Attestation: {"at":1791649727,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"4a5f6e7f0a5ff5f9e370d9110ae84cc969f22b445ab22e89078493321b131242","lane":"tier2-linux","parents":["29c4fe9dfe721f8a71d090632243dd06316c7e07"],"secs":35,"stamp":"562ad1ec00bcba406d3011f4fe36b2be","tree":"4c36bc665ce64d20c8b245f182405c8584ee44f9","v":1,"via":"run"}
zackees
marked this pull request as ready for review
October 10, 2026 16:28
zackees
force-pushed
the
tier4/obs-websocket
branch
from
October 10, 2026 16:28
675fd80 to
eb15e7e
Compare
Member
|
Rebased on master and fixed what broke when the suite ran against a real server.
Results (OBS 32.1.2 on Xvfb): before the fix, 4 Deinterlace checks failed and OBS crashed. After the fix, 179/179 checks pass and all 147 documented request types run. Local gate passed and stamped. |
This was referenced Oct 10, 2026
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.
Black-box protocol test suite for the obs-websocket v5 server (testing-policy Tier 4; Phase 5 item 3). It launches a real headless OBS, talks to the server over the wire only, and asserts on op/d envelopes, requestStatus codes, event deliveries and close codes — no implementation hooks. The same client runs unchanged against the current C++ server today and the future Rust server.
Coverage
Status against the C++ server (obs-websocket 5.5.2): 178/178 checks pass, 147/147 request types exercised.
Run command documented in test/websocket-tier4/README.md (xvfb + packaged OBS >= 30 or in-repo build + Python websockets).
Refs #45