Repository navigation
obs-output: Port service weak acquisition accessors (#3837) - #3842
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 7, 2026 07:50
zackees
enabled auto-merge
November 7, 2026 07:50
Member
Author
|
Handed off to the coordinator / pool chaperone. GREEN head b9dbe55 is pushed and verified; auto-merge is enabled with that head pinned. Local service tests 40/40, new tests 6/6 after mutation restoration, unchanged Tier 2 lifecycle 8/8 in each mode and 1767 identical exports. Full lint passed earlier lanes but hit the documented soldr Dylint-driver refusal under clud; hosted Fast Gate remains required. The broad local Tier 2 timed out after a cache-daemon failure; focused retry passed through the same warm Docker harness. Commands, exit codes and retained logs are in the final PR body. Follow-ups #3838–#3840. Retiring the worker per pool instructions without waiting on hosted CI. |
This was referenced Nov 7, 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 #3837
Ports
obs_weak_service_weak_get_refandobs_weak_service_targetfromlibobs/obs-service.c.htoobs-output. The lifecycle now acquires weak controls through Rust, preserving biased reference counts, platform C-long width, SeqCst ordering, and the unchanged private C layout. Release/free, module lookup, and context/state/handlers remain follow-ups #3838, #3839, and #3840.The C functions were extracted verbatim in feeea0b (body/signature byte comparison against master passed), then switched into their own ported unity group. The C reference and Tier 3 oracle keep compiling those original bodies; no duplicate C copy or legacy relocation is needed. The old lifecycle-oracle acquisition doubles are removed, while its traced release/free operations remain intact. The two Rust shims are hidden in their own manifest;
rust-exports.d, public headers, existing C tests, private struct layouts, andplugins/obs-websocketare unchanged.RED → GREEN
soldr cargo test -p obs-data --test obs-tests-core output::service_weak_acquireexited 101, 0 passed / 3 failed, eachnot yet implemented: #3837. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-CNkqJx.log. The hosted Windows RED run also failed exactly those three stubs (4256 passed, 3 failed, 5 ignored): https://github.com/obs-rust/obs-studio/actions/runs/42351798652/job/128341628888 . The RED format run caught the extraction include order; the GREEN swap removes that include, and the build-group check passes.SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core output::serviceexited 0, 40 passed. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-UTD9K0.log.obs-internal.h; fixed boundaries and proptest compare returns, target pointers, and both counters. No intended differences on defined C inputs. NULL controls are invalid in C; acquisition atLONG_MAXis excluded because C signed addition overflows. These exclusions are recorded in the parity header andrust/README.md.owners >= 0toowners > 0exited 101, failing both the Tier 1 acquisition assertion and the Tier 3 boundary comparison (4 passed, 2 failed). Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-rnmi7a.log. Restored the exact GREEN source and reran the six new tests: exit 0, 6 passed. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-ZbtuWJ.log.Tier 2 and exports
Exit 0, unchanged
test_service_lifecycle: 8/8 against C reference and 8/8 against hybrid, no skips; loader paths verified withldd. 1,767 dynamic exports, identical.The standard
uv run rust/tools/linux-validate/run.py --repeat 1 --tests test_service_lifecyclefirst encountered a zccache daemon failure, retried through the harness recovery, and reached its 1200-second command deadline (report exit 124). Full-suite completion is not claimed. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-YlGeYt.log.The focused retry used the same repository
docker_task_command, image, checkout-scoped warm build volume, and source mount, withZCCACHE_DISABLE=1. It rancmake --build /build/tree --target libobs libobs-c-reference test_service_lifecycle -- -k 0, comparednm -D --defined-onlysymbols, verified each loaded library, and ranxvfb-run -a ctest --test-dir /build/tree -R '^test_service_lifecycle$' --output-on-failure -Vfor both OFF and ON. Reproducer:uv run --no-project /tmp/run-service-tier2.py. Complete focused log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-5eO0en.log.Gates and test cost
uv run ci/test_build_groups.py: 10 passed. Full./lint: exit 1 only at the documented soldr refusal to build the Dylint driver under clud (v6.2.0 lacks the pinned nightly driver). All earlier formatter, Python, and Clippy lanes passed. No toolchain workaround; hosted Fast Gate must run Dylint. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-z27GC4.log. The first lint run started before the new group was staged and failed its source inventory; the staged rerun fixes that inventory failure.clud-review: one reviewer, clean; no actionable findings.obs-tests-corebinary only. Each new module passed 25 debug runs at reduced parity: Tier 1 longest 0.02 s, peak 11,136 KiB RSS; Tier 3 longest 0.02 s, peak 15,428 KiB RSS. No threads of their own. Reproducer:uv run --no-project /tmp/measure-service-weak.py.