Repository navigation
release-rust: Look for Rust code in libobs-with-rust, not the shipped C libobs - #1253
Merged
Merged
Conversation
… C libobs Since #1086 (#1065) the package ships the C libobs and the Rust ports are linked into its never-installed twin. The beta still required Rust in the packaged obs.dll / libobs.framework, so the 2026-10-17 daily beta (run 39034168041) failed on Windows and macOS: 'no Rust code in ...'. Check the twin the build made instead. Refs #926
6 of 7 tasks
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 18, 2026
…run (Refs obs-rust#1305) (obs-rust#1405) * test: Recording evidence runs must prove a hardware renderer and the mapped libobs (Refs obs-rust#1305) RED: the check is a stub, 19/19 tests fail. The tests reject llvmpipe, softpipe and WARP renderers, the wrong libobs backend, two or zero libobs, a missing graphics module, a graphics module from outside the install prefix and a deleted mapping, and accept the hardware setup. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: Check the renderer and the mapped libobs of a recording evidence run (Refs obs-rust#1305) GREEN: 19/19. recording_evidence_check.py reads the OBS log and a copy of /proc/<pid>/maps (or vmmap/lsof output on macOS). It fails when the log shows a software renderer (llvmpipe, softpipe, swrast, lavapipe, WARP, Apple Software Renderer) or more than one renderer, when the mapped libobs is not the expected backend (Rust twin told apart by its /rustc/ paths, as in release-rust.yaml since obs-rust#1253), when not exactly one libobs and one graphics module are mapped, when a mapping was deleted, or when a library comes from outside --prefix (a stock libobs-opengl from the system lib dir next to our libobs). On success it prints the run identity (renderer, paths, SHA-256) as JSON for the evidence report. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 18, 2026
obs-rust#1305) (obs-rust#1410) * test: Recording evidence runs must prove a hardware renderer and the mapped libobs (Refs obs-rust#1305) RED: the check is a stub, 19/19 tests fail. The tests reject llvmpipe, softpipe and WARP renderers, the wrong libobs backend, two or zero libobs, a missing graphics module, a graphics module from outside the install prefix and a deleted mapping, and accept the hardware setup. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: Check the renderer and the mapped libobs of a recording evidence run (Refs obs-rust#1305) GREEN: 19/19. recording_evidence_check.py reads the OBS log and a copy of /proc/<pid>/maps (or vmmap/lsof output on macOS). It fails when the log shows a software renderer (llvmpipe, softpipe, swrast, lavapipe, WARP, Apple Software Renderer) or more than one renderer, when the mapped libobs is not the expected backend (Rust twin told apart by its /rustc/ paths, as in release-rust.yaml since obs-rust#1253), when not exactly one libobs and one graphics module are mapped, when a mapping was deleted, or when a library comes from outside --prefix (a stock libobs-opengl from the system lib dir next to our libobs). On success it prints the run identity (renderer, paths, SHA-256) as JSON for the evidence report. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: Recording evidence runs report medians, ranges and the 5% gate (Refs obs-rust#1305) RED: recording.py is a stub, 17/17 tests fail. The tests cover per-run metrics from GetStats/GetOutputStatus samples (frame counts, render and encoder skip rates, median frame render time and CPU; a counter that goes back, too few samples, no frames or an inactive recorder fail), the C/Rust report (medians and ranges per backend, Rust/C ratio, the 5% frame-time and dropped-frame gates, at least 5 runs per backend, refusal of mixed conditions, renderers, encoders or two builds of one backend), its Markdown table and the encoder evidence from the OBS log. Co-Authored-By: Claude Opus 5.5 <[email protected]> * benchmarks: Record full-app recording runs and report the 5% gate (Refs obs-rust#1305) GREEN: 18/18 (+19/19 for the evidence check). `recording.py run` records from a running OBS after ci/recording_evidence_check.py passes: it starts the recording, waits for warm-up, samples GetStats every second, reads the recording output's counters at the start and the end, stops, checks that the expected encoder logged its settings for this recording and writes one JSON file (host, identity, video/profile/scene/source conditions, encoder log lines, file, metrics, raw samples). It can delete the file afterwards, also when a check fails. `recording.py report` compares at least 5 runs per backend with the same conditions and gives medians, ranges, the Rust/C ratio and the frame-time and dropped-frame gates; exit 2 when the gate fails. OBS logs the encoder settings before the "Recording Start" marker and the frame summary after it; the encoder check reads both. Smoke run on Debian 13 / RTX 3060 / fork 9f573a9, Rust libobs, NVENC H.264, 4K25 with an NDI output active: 30 s, 750 frames, 0 render / encoder skips, 3.16 ms median frame render time. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: Describe the full-app recording evidence runs (Refs obs-rust#1305) Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: Load recording.py by path in its ci test (Refs obs-rust#1305) ci/ tests import only the standard library and ci/ modules (test_ci_tests_stdlib_only.py, obs-rust#1196). recording.py needs websockets only for a live run, so loading it by path keeps the test on a plain Python. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
RED: daily beta run 39034168041 (2026-10-17) failed on Build windows x64/arm64 and macOS:
no Rust code in build_x64/install/bin/64bit/obs.dll/libobs.framework. #1086 (#1065) made the package ship the C libobs; the Rust ports go into the never-installed twinlibobs-with-rust(built in this run:build_x64/libobs-with-rust/RelWithDebInfo/obs.dll). The check now looks there and fails if the twin was not built.GREEN: verify-only release-rust dispatch on this branch (linked below).
Refs #926, #1065.