Skip to content

obs-source: Port filter relationship getters (#3882) - #3884

Merged
zackees merged 8 commits into
masterfrom
port/source-filter-relationship-getters
Nov 7, 2026
Merged

zackees merged 8 commits into
masterfrom
port/source-filter-relationship-getters

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Ports obs_filter_get_parent and obs_filter_get_target from libobs/obs-source.c.h into the existing obs-source crate. Both return the original borrowed pointer, preserve NULL defaults and exact debug diagnostics, and perform no type check, lock or reference acquisition. A private field-pointer seam avoids mirroring obs_source.

Fixes #3882 (native child of #444).

Commit sequence: actual-library characterization ba45ae9f0, verbatim extraction e11be6b63, Tier 1 RED 09ba1d5f2, Rust GREEN e728a0b63, portable validation repair 0005054a1. The original RED command exited 101 with three tests panicking at todo!("#3882"); the original characterization and extraction stages each passed three repeats against both actual libraries. The rebase preserves all four original commits' patches (git range-diff: identical).

Validation on the repaired head:

  • Seven focused Rust tests pass in the existing Core state binary: Tier 1 assertions, real-header view layout, exhaustive/random pointer and complete-fixture immutability parity, and isolated exact NULL diagnostics. Command: SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core source::filter_relationship_getters. Artifact: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-KdpsfF.log.
  • Focused Tier 2 through docker_task_command and this slot's warm volume: all 28 targets pass three repeats against each actual library, including the unchanged new characterization and 27 affected standalone source-step targets. ldd confirms the reference/hybrid library paths; all 1,767 dynamic exports match. Artifact: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-ysY39D.log.
  • Unpatched oracle fails Clang -Wformat-nonliteral -Werror; the repaired oracle compiles under Clang and GCC with strict format warnings. A guarded printf(2,0) callback annotation preserves format checking. Removed the stack-only characterization's runtime-directory requirement. Aborting private-seam/log support is restricted to unrelated Rust-staticlib tests; the real getter characterization receives no stand-ins. Shared log support and source deduplication compose with obs-source: Port deinterlace mode and field-order getters (#3861) #3862/obs-source: Port async flag getters (#3872) #3873.
  • Read all six failed job logs from the previous head (job API fallback because gh run view --log-failed refuses an in-progress overall run), plus the downloaded ASan build artifact. ASan and Windows undefined symbols are exactly blog and obs_source_filter_relationship_fields; macOS Rust/Apple Cross fail the callback format check; macOS Tier 2 fails the runtime-directory requirement; Linux Tier 2 fails linking the same standalone targets. No additional change-specific failure was found.
  • SOLDR_PORCELAIN=0 ./lint passes formatters, CI self-tests and workspace/feature Clippy, then exits 1 solely at the documented soldr refusal to build the Dylint driver under clud. Final three artifact lines inspected; no toolchain workaround. Hosted Fast Gate must supply Dylint. Artifact: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-GdquWq.log.
  • Graph sorting (uv run ci/test_test_graph_sorted.py --fix), native inventory, port metadata and sorted shared-list checks pass. README record remains inside the port table; inventory reflects current master plus this characterization.

Prior worker evidence retained: mutation detected by the differential test, restored source regression 1,105 passed / five ignored, and characterization before extraction, after extraction and after swap. Full sanitizer runtime and native macOS/Windows runtime suites were not run locally; hosted PR CI remains the required merge gate. No local-gate attestation.

Test cost: 25 reduced debug runs of the new module, longest 0.051 s, peak child RSS 16,960 KiB; no own threads (NULL logging re-executes the same category binary).

No intentional behavior differences. Tier 4 does not apply to these field readers, and this behavior-preserving port needs no feature-ledger line. Existing C tests, public C headers, workflows and plugins/obs-websocket are unchanged.

Follow-up CI repair

The six native registration tests still expected one C source and the old dependencies after the link-support sources were added. RED reproduced locally: six failed, one passed (exit 101; artifact local-test-RnE4Tp.log). Updated exact source order, header lists, library suffix and counts without weakening the original selection/linkage assertions or changing scene-only contracts.

RED commit 2e0acb8e7 adds the Windows dependency regression: all 23 graph targets plus the legacy helper lack conditional OBS::w32-pthreads. GREEN dae5926ba adds that dependency for the filter-relationship link support, whose private obs-internal.h include needs pthread.h. Sibling #3862 remains open; no sibling branch was changed. Original five commits are identical in range-diff; current master was already an ancestor. README remains in its port table row and current inventory passes.

Validation for this repair:

  • Seven native registration tests pass: SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none soldr cargo test -p obs-studio-rust --test obs-tests-app native_build::canonical_rust_static_ (artifact local-test-ZCJOUn.log).
  • Seven focused getter tests pass: SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core filter_relationship_getters (artifact local-test-cVRkmb.log).
  • Four portability checks, two graph sorting checks and five port metadata checks pass. git diff --check clean. Single clud-review primary reviewer: no findings.
  • Incremental Rust test cost: no new test cases/binaries/threads; assertions only. Registration batch completes in about 0.08 s. Original getter test-cost measurement above remains applicable.
  • No native macOS/Windows build or full Tier 2 rerun for this repair; hosted CI/chaperone retains that validation. No C tests, public headers, workflows or websocket changes.

Original failing-job log limitation: attempted the requested gh run view --job ... --log-failed for jobs 128398125033, 128398125123 and 128398125112; GitHub reports workflow 42369969019 still in progress and withholds logs. The job-log API also refused terminal escape sequences; no guard bypass attempted. Consequently this repair does not independently establish that those jobs contain no additional failures; pool chaperone must inspect the completed/new hosted results. The supplied sibling evidence and local reproductions establish the two repaired contracts.

Final lint: SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none ./lint exits 1 solely at the documented soldr refusal to build the Dylint driver under clud; final three artifact lines inspected (local-test-9ydMhP.log). Formatting, CI self-tests and workspace/feature Clippy completed first. Earlier CMake formatting was fixed. An earlier lint attempt failed the unrelated source probe with an active scratch build lock (local-test-gb8HaV.log); its isolated rerun passed in 30.359 s (local-test-La1md3.log), and the final lint rerun passed it. No driver/toolchain workaround; hosted Fast Gate must provide Dylint. No local-gate attestation claimed.

@zackees
zackees force-pushed the port/source-filter-relationship-getters branch from 75a26c3 to 0005054 Compare November 7, 2026 11:51
@zackees
zackees marked this pull request as ready for review November 7, 2026 11:52
@zackees
zackees enabled auto-merge November 7, 2026 11:52
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator. Ready with auto-merge confirmed for 0005054; replaced 75a26c3 using a pinned force-with-lease after an identical four-commit range-diff and a current-master rebase. All 28 focused Tier 2 targets pass three repeats against each actual library, exports match (1,767), seven focused Rust tests pass, and strict Clang/GCC oracle format checks pass. Full lint stops only at the documented soldr Dylint-driver refusal under clud; evidence and hosted-validation limits are in the finalized body. Claim re-read without refusal. Per pool instructions, retiring without waiting on hosted CI.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Handed off to the pool chaperone. Verified head dae5926 is pushed; re-armed auto-merge with that exact match-head-commit. Cause: six native registration contracts still demanded one source and old dependencies after link-support additions; the private obs-internal.h include also requires conditional OBS::w32-pthreads for Windows. RED reproduced six registration failures and missing dependencies on 23 targets plus legacy support. GREEN preserves exact source order/header/library counts and suffix, and adds the conditional dependency only for this PR's support targets. Seven registration tests, seven focused getters, four portability checks, graph sorting and metadata pass. Final lint passes formatters, CI self-tests and Clippy, stopping only at the documented Dylint-driver refusal under clud (local-test-9ydMhP.log; final three lines inspected). Review clean. Original five commits unchanged in range-diff; replaced 0005054 using its explicit force-with-lease. No sibling PR changed.

Original failing logs could not be read: gh run view --log-failed says workflow 42369969019 is still in progress; job-log API refused terminal escapes and no guard was bypassed. Therefore no claim that there are no further native failures. Chaperone must inspect hosted completion/new results. Final body records evidence and limits; retiring without waiting on hosted CI per pool instructions.

@zackees
zackees force-pushed the port/source-filter-relationship-getters branch from dae5926 to 25532ea Compare November 7, 2026 13:28
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master 58d2c11; replaced dae5926 with 25532ea using the explicit lease. Kept master’s inventory-based portability checks in place of superseded fixed counts; retained all getter modules, registration assertions, graph entries and README table record. Range-diff reviewed; port implementation patches unchanged. Seven native registrations and seven focused filter relationship getter tests pass; graph sorting, README and portability checks pass. Remote head verified and auto-merge remains enabled. Full Tier 2/native platform suites and hosted CI were not repeated or awaited.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 7, 2026
@zackees
zackees force-pushed the port/source-filter-relationship-getters branch from 25532ea to 80c2041 Compare November 7, 2026 15:12
@zackees
zackees enabled auto-merge November 7, 2026 15:12
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased after the 14:43 UTC merges onto origin/master 5de5b53, replacing 25532ea with 80c2041. Retained both oracle extraction blocks and both portability groups. Shared exact-list helper now combines source relationship support with master’s ordered scene logging-stub entries and recognizes scene test sources after their stub for library counts. No semantic overlap. Passed whole native_build:: (113), portability (7), sorted graph (2), README (1), full CI self-tests, obs-c-oracle build and seven reduced relationship getter Rust/layout/parity tests. Formatting and diff checks pass; range-diff reviewed. Explicit-lease push verified; auto-merge re-armed and confirmed after manager dequeue. Handed off to the pool manager for hosted checks and queue observation.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 7, 2026
@zackees
zackees force-pushed the port/source-filter-relationship-getters branch from 80c2041 to 1a41746 Compare November 7, 2026 16:33
@zackees
zackees enabled auto-merge November 7, 2026 16:33
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased after #3879: kept both independent encoder metadata and source filter relationship oracle extraction blocks; all master and PR declarations, README rows, graph and exact registrations are retained. Replaced 80c2041 with 1a41746 using an exact lease. Range-diff preserves all seven patches except extraction context. Passed fmt, whole native_build module, native portability, graph sorting, README policy, oracle build, and focused filter getter Rust/parity tests (seven including isolated child). Head-pinned auto-merge re-armed.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Cause: #3879’s unchanged encoder_metadata.o references five obs-output getters from its log probe; COFF can pull that member into obs-util, which does not link obs-output. Focused master fix: #3919 passes getter callbacks while preserving every C/Rust log assertion. Its standalone regression reproduces the exact five-symbol Windows link RED and passes GREEN. No feature-code change needed here; merge/rebase with the shared fix when it lands.

@zackees
zackees force-pushed the port/source-filter-relationship-getters branch from 1a41746 to a6e725b Compare November 7, 2026 18:45
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master after #3916/#3920/#3919. Dropped the manual build.rs adapter block (discovery preserves source_filter_relationship_fields.inc); moved all 23 exact support expectations into the per-port registration JSON; passed getter callbacks into the oracle log probe to remove production getter references. Passed discovery/registration guards, workspace fmt, complete native_build:: (129 tests), oracle build, obs-util, all seven focused getter/parity tests, portability, graph sorting, README and local-gate self-test. Lease-pinned push verified at a6e725b; auto-merge remains enabled. Hosted/native platform results remain with the pool coordinator.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit b72dfe0 Nov 7, 2026
44 checks passed
@zackees
zackees deleted the port/source-filter-relationship-getters branch November 7, 2026 20:01
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port obs-source filter relationship getters to obs-source

1 participant