Skip to content

libobs: Guard the level and texture getters - #2569

Merged
rdoupe merged 4 commits into
masterfrom
fix/bug-the-level-getters-and-the-te-195
Oct 27, 2026
Merged

rdoupe merged 4 commits into
masterfrom
fix/bug-the-level-getters-and-the-te-195

Conversation

@rdoupe

@rdoupe rdoupe commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #2566

What and why

With no core (before obs_startup(), or after obs_shutdown()), obs_get_video_info() returns false (#1509), but five other getters still read through the NULL core and crash:

A plugin, script or headless tool that calls one of them outside the core's lifetime crashes. The fix is the #1509 guard: with no core, each gives the answer it already gives with no video or no audio (300, 1000, false with the out-struct untouched, false, false). Nothing changes while the core exists, and obs_get_audio_info2() gets the guard through its call to obs_get_audio_info().

No upstream issue.

RED → GREEN

  • RED commit: 9a8f054 adds test_no_core_getters, which never starts the core and calls each getter in its own case. On master 6 of its 7 cases fail with Test failed with exception: Segmentation fault(11) (obs_get_video_info's case, already guarded, passes).
  • GREEN: test_no_core_getters 7/7 against hybrid libobs, libobs-c-reference and the C-only build; exported symbol sets identical on all three (1766). The local gate passed every lane (lint, rust-test, cross, tier2-linux: the cmocka suite against both libobs-c-reference and hybrid libobs in Docker) and stamped the head. local_gate.py --test-diff origin/master, --lane lint, --lane cross and Windows clippy on --all-targets pass. Runs were on 26fad23.
  • Real app (UI, protocol output or logging changes): not applicable (no UI, protocol or log change; the bug is reached only by a plugin, script or headless tool calling the getters with no core).

Checklist

  • Base is master (or the description starts with a Stacked: note)
  • I claimed the issue, or no one else has an open PR for it
  • Characterization test (if the unit had none), then RED, then GREEN commits (N/A for docs-only; a focused CI fix may push RED and GREEN together)
  • User-visible change: its line in docs/features.md is added or updated (not applicable: no user-visible change)
  • (Optional) Local gate passed and the pushed head is stamped; otherwise PR CI runs the full suite
  • Warning or flag changes (-W..., ratchets): built with scripting ON (PR CI builds no OBS app: run gh workflow run ci.yml --ref <branch> for the full builds) and cross-checked with clang and MSVC
  • Intentional differences from C listed in the parity test header and rust/README.md (ports)

obs_get_video_info() returns false when there is no core (#1509), but
obs_get_video_sdr_white_level(), obs_get_video_hdr_nominal_peak_level(),
obs_get_audio_info() (and obs_get_audio_info2() through it),
obs_nv12_tex_active() and obs_p010_tex_active() read through the NULL
core before obs_startup() or after obs_shutdown().

test_no_core_getters calls each of them without starting the core, one
case each. On master, every case but obs_get_video_info's crashes.

Refs #2566.
With no core (before obs_startup() or after obs_shutdown()), give the
answer each getter already gives with no video or no audio, as
obs_get_video_info() does since #1509:

- obs_get_video_sdr_white_level(): 300;
- obs_get_video_hdr_nominal_peak_level(): 1000;
- obs_get_audio_info(): false, the out-struct untouched, so
  obs_get_audio_info2() returns false too;
- obs_nv12_tex_active() and obs_p010_tex_active(): false.

Nothing changes while the core exists.

Fixes #2566.

Local-Gate: v1 tree=7c46ca3f9f044da99de6a02ef6d71197be09b705 secs=2361 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1793087831,"gate":"rust/all/fmt","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"3cb8a1a86c5e88a21471c14b149c2316","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"2ad58fcba46ec4d8bec7ffeb235b6408","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4e02e5fb00c2bba76a8b54d9804314fd893b4a7651b50d82c224c1c10ff88f20","lane":"rust-test","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":222,"stamp":"d452f5fe974f4411a393fae94b11a5f1","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b6e8a2b6337beac5183d5a395b9b9767","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"2e8568072390af1df4e660265a492d1f","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b9fe35d949f1291f099c0daf6d74873b","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"1db5eb4dda49b2e54fe29965193e784d","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"1107a9b363febecf6deee7b41414302795d6d8b673a5361e6b640814be90eb97","lane":"tier2-linux","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":2021,"stamp":"b20646a7b4538eef9546ff296e492121","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
@rdoupe
rdoupe force-pushed the fix/bug-the-level-getters-and-the-te-195 branch from 71653ac to 26fad23 Compare October 27, 2026 07:57
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Oct 27, 2026

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the current head (refs/pull/2569/head, 2 commits). The fix is right and the shape is right: the five guards mirror the #1509 obs_get_video_info() one, each returns the answer the getter already gives with no video or no audio, nothing changes while the core exists, and obs_get_audio_info2() inherits the guard through obs_get_audio_info(). The RED test is the useful kind — one case per getter, no core started, so it needs no display or graphics module and the crash lands on the specific case rather than in the runner. The ledger line is present. Findings are minor:

  1. docs/features.md — the new line ends *All*, 2026-10-27. while the entry it sits under (#2253) and its neighbours use *All*, pending merge. The ledger dates an entry when it merges; a date on an unmerged entry goes stale silently if the PR slips. Suggest *All*, pending merge. until it lands.

  2. test/cmocka/test_no_core_getters.c, group_setup — returning -1 when obs_initialized() turns the whole file into seven failures rather than one skip. That cannot happen in this process today (nothing calls obs_startup()), so it is not a bug; it is just a confusing failure mode if the file is ever reused in a harness that initialized the core. A skip (fail_msg plus return 1 on a group-level filter, or the cmocka skip filter) reads better than a wrong-looking red.

  3. The file's comment says the getters "read through the NULL core" before obs_startup() or after obs_shutdown(), but only the never-started case is in the test. The after-shutdown path is the same NULL core and the same code, so I would not add the heavier start/shutdown case — just say in the comment that after-shutdown is covered by the same branch, so nobody later reads the header as claiming coverage it does not have.

Nothing else: the #pragma pair for the deprecated getters is correct on MSVC and on gcc/clang, and the test-graph.json entry matches how the neighbouring tests are registered.

I have not marked it ready for you — say when you want it merged and I will watch the queue.

A group setup that refused a started core turned the file into seven
failures. Skip each case instead, and say in the header that only the
never-started case runs: after obs_shutdown() the getters take the same
no-core branch.

Refs #2566.
The ledger dates an entry when it merges.

Refs #2566.
@rdoupe

rdoupe commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. All three are fixed in new commits on top:

  1. Ledger date: the line now ends *All*, pending merge. (e8b2326).
  2. A started core: the group setup is gone. Each case now calls skip() when obs_initialized() is true, so a harness that started a core sees seven skips instead of seven failures. I used skip() rather than fail_msg, which doesn't link in the Windows cmocka builds (68d1baa).
  3. After shutdown: the header now says the test covers only the never-started case, and that after obs_shutdown() the core is NULL again and the getters take the same no-core branch, so that case isn't run separately (68d1baa).

test_no_core_getters still passes 7/7, and ./lint passes. I'll fold these into the RED and GREEN commits once you're happy with them.

@rdoupe
rdoupe marked this pull request as ready for review October 27, 2026 18:53
@rdoupe
rdoupe added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit 3bddf1b Oct 27, 2026
36 checks passed
@rdoupe
rdoupe deleted the fix/bug-the-level-getters-and-the-te-195 branch October 27, 2026 19:05
zackees pushed a commit that referenced this pull request Oct 27, 2026
* test: Check getters with no core

obs_get_video_info() returns false when there is no core (#1509), but
obs_get_video_sdr_white_level(), obs_get_video_hdr_nominal_peak_level(),
obs_get_audio_info() (and obs_get_audio_info2() through it),
obs_nv12_tex_active() and obs_p010_tex_active() read through the NULL
core before obs_startup() or after obs_shutdown().

test_no_core_getters calls each of them without starting the core, one
case each. On master, every case but obs_get_video_info's crashes.

Refs #2566.

* libobs: Guard the level and texture getters

With no core (before obs_startup() or after obs_shutdown()), give the
answer each getter already gives with no video or no audio, as
obs_get_video_info() does since #1509:

- obs_get_video_sdr_white_level(): 300;
- obs_get_video_hdr_nominal_peak_level(): 1000;
- obs_get_audio_info(): false, the out-struct untouched, so
  obs_get_audio_info2() returns false too;
- obs_nv12_tex_active() and obs_p010_tex_active(): false.

Nothing changes while the core exists.

Fixes #2566.

Local-Gate: v1 tree=7c46ca3f9f044da99de6a02ef6d71197be09b705 secs=2361 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1793087831,"gate":"rust/all/fmt","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"3cb8a1a86c5e88a21471c14b149c2316","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"2ad58fcba46ec4d8bec7ffeb235b6408","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4e02e5fb00c2bba76a8b54d9804314fd893b4a7651b50d82c224c1c10ff88f20","lane":"rust-test","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":222,"stamp":"d452f5fe974f4411a393fae94b11a5f1","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b6e8a2b6337beac5183d5a395b9b9767","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"2e8568072390af1df4e660265a492d1f","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b9fe35d949f1291f099c0daf6d74873b","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"1db5eb4dda49b2e54fe29965193e784d","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"1107a9b363febecf6deee7b41414302795d6d8b673a5361e6b640814be90eb97","lane":"tier2-linux","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":2021,"stamp":"b20646a7b4538eef9546ff296e492121","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}

* test: Skip the no-core cases when a core exists

A group setup that refused a started core turned the file into seven
failures. Skip each case instead, and say in the header that only the
never-started case runs: after obs_shutdown() the getters take the same
no-core branch.

Refs #2566.

* docs: Mark the no-core getters line pending

The ledger dates an entry when it merges.

Refs #2566.
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview Oct 27, 2026
MCPVOT pushed a commit to MCPVOT/obs-studio that referenced this pull request Oct 30, 2026
…ypes (obs-rust#2624) (obs-rust#2678)

* build(cmake): RED: enable -Wmissing-prototypes and -Wstrict-prototypes (obs-rust#2624)

Drops the two -Wno-* pins and adds the positive forms to the C-only flag
lists (clang common->C list; the GNU C line). The warnings are not in
-Wall/-Wextra, so the pin cannot simply be removed.

* build(cmake): GREEN: first-party prototypes + vendored-dep exemptions (obs-rust#2624)

Drops the two -Wno-* pins from the C flag lists and satisfies the strict pair
everywhere they now reach:

- first-party: declare each function before its definition (libobs,
  libobs-opengl, plugins/*, shared/*, 46 files), and use (void) for the
  empty-parameter declarations and definitions that -Wstrict-prototypes flags.
- test/cmocka: target-scoped -Wno-missing-prototypes / -Wno-strict-prototypes,
  as the obs-rust#2624 decision asks. No C test is edited.
- vendored: deps/glad and rnnoise publish their include dir as SYSTEM (their
  headers declare with empty parameter lists, so a target-scoped option cannot
  reach the consumers that include them), and librtmp's and rnnoise's own
  sources extend their existing per-file / per-target exemptions next to
  deps/glad and deps/libcaption.

Verified locally. `uv run ci/local_gate.py --lane tier2-linux` reports clean
but cannot see a flag-list change: zccache does not key on the compile flags,
so the C objects are served from cache and never recompiled (no `Building C
object …` lines in the run's tree.build.log). The honest check is a zccache-
bypassed `-fsyntax-only` replay of every C translation unit in the Tier 2 tree
(the tree's own flags, one TU at a time): on this branch it reports **0
findings and 0 compile errors** over 1255 TUs, down from **255 findings across
177 sites** on the same tree before this commit. `./lint` is ok.

Refs obs-rust#2624

* libobs: Guard the level and texture getters (obs-rust#2569)

* test: Check getters with no core

obs_get_video_info() returns false when there is no core (obs-rust#1509), but
obs_get_video_sdr_white_level(), obs_get_video_hdr_nominal_peak_level(),
obs_get_audio_info() (and obs_get_audio_info2() through it),
obs_nv12_tex_active() and obs_p010_tex_active() read through the NULL
core before obs_startup() or after obs_shutdown().

test_no_core_getters calls each of them without starting the core, one
case each. On master, every case but obs_get_video_info's crashes.

Refs obs-rust#2566.

* libobs: Guard the level and texture getters

With no core (before obs_startup() or after obs_shutdown()), give the
answer each getter already gives with no video or no audio, as
obs_get_video_info() does since obs-rust#1509:

- obs_get_video_sdr_white_level(): 300;
- obs_get_video_hdr_nominal_peak_level(): 1000;
- obs_get_audio_info(): false, the out-struct untouched, so
  obs_get_audio_info2() returns false too;
- obs_nv12_tex_active() and obs_p010_tex_active(): false.

Nothing changes while the core exists.

Fixes obs-rust#2566.

Local-Gate: v1 tree=7c46ca3f9f044da99de6a02ef6d71197be09b705 secs=2361 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1793087831,"gate":"rust/all/fmt","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"3cb8a1a86c5e88a21471c14b149c2316","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"2cab03d3eb9db6e60c5e4e4c2fe2abd64f0e96fd82b99c68fc828e1eaf1c10fe","lane":"lint","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":48,"stamp":"2ad58fcba46ec4d8bec7ffeb235b6408","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4e02e5fb00c2bba76a8b54d9804314fd893b4a7651b50d82c224c1c10ff88f20","lane":"rust-test","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":222,"stamp":"d452f5fe974f4411a393fae94b11a5f1","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b6e8a2b6337beac5183d5a395b9b9767","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"2e8568072390af1df4e660265a492d1f","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"b9fe35d949f1291f099c0daf6d74873b","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"4f291d63669d098462de945660e7ed5042ca0d393321fcef77c635813bcca169","lane":"cross","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":71,"stamp":"1db5eb4dda49b2e54fe29965193e784d","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}
Ci-Attestation: {"at":1793087831,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"1107a9b363febecf6deee7b41414302795d6d8b673a5361e6b640814be90eb97","lane":"tier2-linux","parents":["9a8f0540cdfcae093066cba16f9711741c1be603"],"secs":2021,"stamp":"b20646a7b4538eef9546ff296e492121","tree":"7c46ca3f9f044da99de6a02ef6d71197be09b705","v":1,"via":"run"}

* test: Skip the no-core cases when a core exists

A group setup that refused a started core turned the file into seven
failures. Skip each case instead, and say in the header that only the
never-started case runs: after obs_shutdown() the getters take the same
no-core branch.

Refs obs-rust#2566.

* docs: Mark the no-core getters line pending

The ledger dates an entry when it merges.

Refs obs-rust#2566.

* ci: Cook the workspace dev-dependencies for the test lanes (obs-rust#2661) (obs-rust#2675)

* ci: Pin the cook dev-dependency features and the test lanes' --tests (obs-rust#2661)

RED. The cook for the lanes that build tests must include the workspace's
dev-dependencies, and a member's `default-features = true` override is
dropped by the cargo-chef recipe (the obs-rust#2603/obs-rust#2604 defect), so the cook
either fails or serves the wrong feature set.

`test_cook_profiles.py` now pins:
- `--profile dev -- --tests` for `rust-tests-linux` (its non-core branch)
  and `rust-tests`;
- an explicit feature list equal to each crate's own `default` for the
  `proptest`/`base64`/`memchr`/`sha2` member entries, instead of
  `{ workspace = true, default-features = true }`.

Fails on master: 2 profile-flag assertions and 12 manifest assertions.

* ci: Cook the workspace dev-dependencies for the test lanes (obs-rust#2661)

GREEN. The lanes that build tests now cook the workspace's dev-dependencies,
and the member manifests declare the re-enabled defaults as explicit feature
lists so the cargo-chef recipe keeps them.

- `.github/workflows/build-project.yaml`: `rust-tests-linux` (its non-core
  branch) and `rust-tests` pass `--profile dev -- --tests`. The `core`
  branch keeps `--release`, and the cross-lint/cross-compile/container/tier2
  lanes are unchanged.
- ten member manifests: `proptest`, `base64`, `memchr` and `sha2` use the
  obs-rust#2604 pattern (`features = [...]` equal to the crate's own `default`)
  instead of `{ workspace = true, default-features = true }`, which the
  cargo-chef recipe drops for a `[workspace.dependencies]` entry declared
  with `default-features = false` (obs-rust#2603).

Local evidence: `ci/test_cook_profiles.py`, `test_feature_sets.py`,
`test_test_binary_cap.py`, `test_workspace_dependencies.py`,
`test_rust_cache_policy.py`, `test_cook_cache_budget.py` and
`test_ci_toml.py` pass; `soldr cargo metadata --locked` resolves (the
feature names are valid) and reports the same effective feature closure per
crate as `default`. `ruff check` clean.

* ci: Delete the dead upstream sparkle-appcast composite action (obs-rust#2676) (obs-rust#2677)

* test(ci): Pin the dead sparkle-appcast action and its exception as gone (obs-rust#2676)

RED: test_upstream_appcast_jobs_are_gone asserts the unreferenced
.github/actions/sparkle-appcast composite action and its ci-lint GEN-005
exception are gone; it fails on master, where both are still present.

* ci: Delete the dead upstream sparkle-appcast composite action (obs-rust#2676)

Nothing references .github/actions/sparkle-appcast/: the fork removed upstream's
Sparkle appcast jobs from publish.yaml (pinned by
ci/test_no_upstream_updater.py::test_upstream_appcast_jobs_are_gone) and left the
action behind. Delete it and its ci-lint GEN-005 exception.

GREEN: ci-lint precheck 505 -> 497 approved exceptions (GEN-005 265 -> 257),
11 violations / 10 needs_review unchanged; ci/test_no_upstream_updater.py OK.

* ci: Delete the dead run-clang-format and run-gersemi composite actions (obs-rust#2676) (obs-rust#2679)

* test(ci): Pin the dead run-clang-format and run-gersemi actions as gone (obs-rust#2676)

RED: DeadFormatActionsTest asserts both composite actions (and their ci.toml
GEN-005 exceptions) are gone; it fails on master, which still carries both.
obs-rust#984 moved the checks to `ci/local_gate.py --only clang-format|gersemi` and
left the actions behind, unreferenced.

* ci: Delete the dead run-clang-format and run-gersemi composite actions (obs-rust#2676)

obs-rust#984 moved both checks to the local gate's pinned uvx tools
(`uv run --no-project ci/local_gate.py --only clang-format|gersemi`) and left
upstream's composite actions behind. Nothing in .github/workflows references
them: the only `uses: ./.github/actions/run-*` in check-format.yaml is
run-swift-format, which stays. `build-aux/run-clang-format` and
`build-aux/run-gersemi` are different files and stay.

GREEN: ci-lint precheck 497 -> 491 approved exceptions (GEN-005 257 -> 251),
11 violations / 10 needs_review unchanged; ci/test_format_jobs.py OK.

* build(cmake): Give frontend-tools.c.h strict prototypes (obs-rust#2624)

The Qt Frontend Linux lane now compiles C with -Wstrict-prototypes, and
this first-party header declared its four module functions with empty
parameter lists. Declare them (void) so the lane builds.

Refs obs-rust#2624

* build(cmake): Give find-font.c.h a strict prototype (obs-rust#2624)

The C-only -Wstrict-prototypes flags this remaining empty-parameter
declaration in the text-freetype2 unity source; declare it (void) to
match the definitions in the windows/cocoa variants.

Refs obs-rust#2624

---------

Co-authored-by: Ryan Doupe <[email protected]>
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.

bug: libobs: level getters and texture checks crash with no core

2 participants