Repository navigation
obs-output: port service weak-control release primitives (#3838) - #3883
Merged
Merged
Conversation
zackees
force-pushed
the
port/service-weak-release
branch
from
November 7, 2026 11:14
4c19533 to
185d6ab
Compare
zackees
marked this pull request as ready for review
November 7, 2026 11:15
zackees
enabled auto-merge
November 7, 2026 11:15
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Nov 7, 2026
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 #3838
Ports
obs_weak_service_strong_release,obs_weak_service_weak_addref,obs_weak_service_weak_releaseandobs_weak_service_freefromlibobs/obs-service.c.htoobs-output. The biased platform C-long counts keep SeqCst ordering and atomic wraparound; control destruction returns memory tobfree. The private layout, public headers, existing C tests, public export manifests and WebSocket plugin are unchanged. Tier 4 and the features ledger are inapplicable: no protocol or user-visible behavior change.Extraction is separate in 9beaeb7 (originally 5b4dd51), with all four original signatures/bodies verified byte-identical against its parent. The original bodies remain compiled into the C reference and privately renamed Tier 3 oracle; hybrid links the thin Rust shims. The port is recorded in the
libobs/obs-service.c.hrow of therust/README.mdport table.The lifecycle oracle explicitly changes weak-control ownership from
calloc/freetobzalloc/bfree. Its C lifecycle keeps private traced wrappers delegating to the original primitives; Rust lifecycle uses production. The existing C free-reachability assertion remains, while lifecycle trace comparison excludes only these four now independently differential-tested primitive events. Every remaining lifecycle/plugin event is still compared exactly.RED → GREEN
SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core output::service_weak_releaseexited 101, 0 passed / 3 failed at the intended#3838stubs. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-MVn7Wx.log.output::servicerun exited 0, 59 passed, including seven new cases. Final log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-OyZwoi.log.== 0to== 1exited 101, 3 passed / 4 failed, including Tier 3 boundary parity. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-6LVlf5.log. Restored GREEN and reran the service cases (59 after rebase) successfully.Tier 2 / ABI
The unchanged
test_service_lifecyclepassed 8/8 against C reference and 8/8 against hybrid, without skips, both immediately after extraction and after the Rust swap. Each loaded library was verified withldd. Dynamic export sets are identical: 1,767 symbols.The focused replay uses the repository's
docker_task_command, Docker image, read-only checkout mount and checkout-scoped warm build volume, withZCCACHE_DISABLE=1:cmake --build /build/tree --target libobs libobs-c-reference test_service_lifecycle -- -k 0, then export comparison andxvfb-run -a ctest --test-dir /build/tree -R '^test_service_lifecycle$' --output-on-failure -Vin both OFF and ON modes. Reproducer:uv run --no-project /tmp/run-service-tier2.py. Extraction log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-ahgbf9.log; final GREEN log (exit 0):/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-cTprjr.log. Full Tier 2 suite not claimed.Gates / test cost
-Qunused-arguments).uv run ci/test_build_groups.py: 10 passed;uv run ci/test_native_b2_portability.py: 3 passed;uv run ci/test_test_graph_sorted.py --fixand its check: 2 passed. No native C tests were added, so native inventory counts and graph entries are unchanged.SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint --fix: exit 1 only at the documented soldr refusal to build the Dylint driver under clud (Dylint v6.2.0 lacks the pinned nightly-2026-05-28 driver). Every earlier formatter, self-test and Clippy feature lane passed. No toolchain workaround; hosted Fast Gate must run Dylint. Log:/home/niteris/.clud/tmp/tool-output/local-test-private/local-test-YALyem.log.clud-review: one reviewer, clean, no actionable findings.obs-tests-coreexecutable. Over 25 debug runs at reduced parity, Tier 1 longest 0.01 s, peak 10,928 KiB RSS; Tier 3 longest 0.09 s, peak 18,360 KiB RSS. No threads of their own. Reproducer:uv run --no-project /tmp/measure-3838c.py.origin/masterbefore final push; obs-output: Port service module lookup accessors (#3839) #3844 merged and both ports are preserved; obs-output: Port encoder counter accessors (#3856) #3858 remains open.git range-diffconfirms the three rebased commits retain their patches (only neighboring module-registration context changed).git merge-tree --write-tree --name-only origin/master HEADexits 0, with no conflicts. No local-gate attestation claimed; hosted PR CI remains the merge gate.Claim accepted: the fresh claim #3838 (comment) now has 🚀 and the issue is assigned to zackees. Latest comments rechecked: Ready, no refusal or competing claim. Marking ready and requesting auto-merge pinned to GREEN head; hosted CI remains the merge gate.