Repository navigation
obs-websocket: SetSceneItemTransform accepts 0 bounds with OBS_BOUNDS_NONE - #589
Merged
Merged
Conversation
…Transform returns (RED) Builds the obs-websocket scene item requests against real libobs and calls SetSceneItemTransform on a real scene item. Failing: the get-modify-set case and 0 bounds with OBS_BOUNDS_NONE both get 402 (boundsWidth below 1). The two guard cases (0 bounds with SCALE_INNER refused, 100x80 applied) pass. Refs #540
…REEN) Points plugins/obs-websocket at obs-rust/obs-websocket master a4040cb (obs-rust/obs-websocket#9). test_ws_transform_bounds passes, 4 of 4. Fixes #540
Local-Gate: v1 tree=6a7b1c31324335dbaea957fee6d0f4816b69cdb6 secs=347 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791903660,"gate":"rust/all/fmt","host":"linux-x86_64","key":"703c5f60d347ee8deeb075241d6c2d7e074e7f37b8232e0047cb9d9e529e25c8","lane":"lint","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":19,"stamp":"f53a7acb9071d67d04980d12ac826ba7","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"703c5f60d347ee8deeb075241d6c2d7e074e7f37b8232e0047cb9d9e529e25c8","lane":"lint","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":19,"stamp":"e754c75bc6699e2ac5d1030405c480c6","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4056e224f23455277062cb5b34ea11cadee3fb870e2eace93ccdc0f584d87cb8","lane":"rust-test","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"1af837a59e5a0f326da7116230d3b789","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"5f25443e311b3418400cf82cc03851c3","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"2f2e280d1942b7a127d3166a7da1a444","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"63f3490e4eb9cbcd44955bf0d0a8980a","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"d34734563f417ca588cb91b436f2654f","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"63a7219181038d13b3ae798dc1cf5504","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"460cd7c51bbcf0b128831053fc25700cfbef22780ddefe2ed2c993045b740bcc","lane":"cross","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":100,"stamp":"e736e6bf9601dbd2e60207cadfc3572d","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
Ci-Attestation: {"at":1791903660,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"9b4d86c07f90d4cffa116f31c3283ddae54823557a60cded2c5ed8e5e920c93a","lane":"tier2-linux","parents":["34dce6f5a87146c547b6889bc05403ca2ea6b50d"],"secs":127,"stamp":"39419a12dd13e28894a161b4000e8c12","tree":"6a7b1c31324335dbaea957fee6d0f4816b69cdb6","v":1,"via":"run"}
This was referenced Oct 13, 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.
Fixes #540
Fix is in the fork: obs-rust/obs-websocket#9 (merged, a4040cb). This PR adds the test and moves the submodule pointer.
RED (6b2c7c8): test_ws_transform_bounds compiles the plugin's RequestHandler_SceneItems.cpp, Request.cpp and the Utils helpers against real libobs and calls SetSceneItemTransform on a real scene item (runs under xvfb-run; skips without a display). 2 of 4 fail with 402 boundsWidth below 1: the GetSceneItemTransform output with a new position, and 0 bounds with explicit OBS_BOUNDS_NONE. Guards pass: 0 bounds with SCALE_INNER refused (402), 100x80 with SCALE_INNER applied.
GREEN (34dce6f): submodule at a4040cb. 4 of 4 pass, 174/174 cmocka in Tier 2 OFF and ON. ci/test_websocket_submodule.py passes. Local gate stamped.
Seam: RequestHandler.cpp is not linked (it pulls every request); the test defines the trivial constructor, reaches the private method via an explicit-instantiation member pointer, and stubs a few frontend/Qt symbols that other requests reference.