Repository navigation
ci: Check the renderer and the mapped libobs of a recording evidence run (Refs #1305) - #1405
Merged
zackees merged 2 commits intoOct 18, 2026
Merged
Conversation
…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]>
…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]>
This was referenced Oct 18, 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.
Refs #1305
What and why
#1305 requires evidence runs with hardware rendering and the correct libobs. The runs in #1295 used llvmpipe under Xvfb. Also, since #1086 the C libobs and the
libobs-with-rusttwin are installed side by side, so a run can use the wrong one without an error.This PR adds
ci/recording_evidence_check.py. It is the first part of #1305 (the run driver and the report follow in a separate PR). The script reads the OBS log of a run and a copy of/proc/<pid>/maps(on macOS, the output ofvmmap <pid>orlsof -p <pid>). It fails when:--libobs c|rust). The Rust twin is identified by its/rustc/paths, the same test asrelease-rust.yamlsince release-rust: Look for Rust code in libobs-with-rust, not the shipped C libobs #1253.--prefix: a libobs or graphics module comes from outside the install prefix. Example: a stocklibobs-opengl.so.30in/lib/x86_64-linux-gnunext to our libobs. This happened on our test machine: video init failed with "Could not load function 'device_sync_create'".On success it prints the run identity as JSON (renderer, driver version, library paths and SHA-256), for the evidence report. Every check fails closed.
RED → GREEN
ci/test_recording_evidence_check.pyfail.uv run python -m unittest discover -s ci -p "test_*.py"on macOS: no new failures (the 8 failures before this change are Linux-only tests and stay the same).LD_LIBRARY_PATHset tolibobs-with-rust:--libobs rust --prefix /opt/obs-rust: pass. RendererNVIDIA Corporation NVIDIA GeForce RTX 3060/PCIe/SSE2, mapped.../libobs-with-rust/libobs.so.30.--libobs c: fail,expected the c libobs, mapped rust.--prefix /usr/lib: fail,outside the install prefix.libobs.so.30has 0/rustc/matches, the twin has 13.Checklist
masterdocs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): not applicable🤖 Generated with Claude Code