Skip to content

obs-missing-files: port the missing-file list (Refs #1459) - #1465

Merged
zackees merged 2 commits into
obs-rust:masterfrom
nathan-v:port/missing-files
Oct 20, 2026
Merged

zackees merged 2 commits into
obs-rust:masterfrom
nathan-v:port/missing-files

Conversation

@nathan-v

@nathan-v nathan-v commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1459. Characterization landed in #1460. This is the port.

What and why

obs_missing_files_* and obs_missing_file_* move into obs-missing-files. The list, each file, the path, and a source name stay bmalloc / bstrdup / bfree. The pointer array is the bmalloc darray, so bnum_allocs matches the C file. add_file does not take a reference. append does, and it re-reads the count, so appending a list to itself does not return. destroy frees a file while its ref is still 1. A script or any other type stores the callback and does not call it. obs_source_get_name and obs_source_replace_missing_file stay in obs-source.c.h.

No intentional differences.

RED → GREEN

  • RED commit: e81319a91. soldr cargo test -p obs-data --test obs-tests-core missing_files reached obs_missing_files_create and panicked not yet implemented. The extern "C" shim then aborted.
  • GREEN: 43e6f1409. The same filter passed 17 tests: the 13 Tier 1 cases, the enum pin, the scripted oracle comparison, the alloc balance, and the proptest.
  • Tier 2 on this Mac is the arm64 Ubuntu 26.04 image obs-rust-linux-validate. The GitHub runner is x86_64. Export sets match, 1766 symbols. OFF loads /build/tree/libobs/libobs.so.30. ON loads /build/tree/libobs-with-rust/libobs.so.30. test_missing_files and test_missing_files_list passed in both. The same four cmocka failures showed up in both: test_group_empty_bounds, test_scene_dup_group_children, test_ws_batch_order, test_ws_current_scene_removed. ON also failed test_vlc_playlist_gap once (stop took 2.452 s; the limit is 0.5 s). A rerun of that one test against libobs-with-rust passed in 26 s.
  • Host gate pieces: clang-format, gersemi, ci/test_build_groups.py, ci/test_naming.py, the test-binary inventory, the platform ratchet, perf guards, soldr cargo fmt --all --check, workspace clippy -D warnings, dylint, and soldr cargo test --workspace --locked. The aarch64-apple-darwin cross lane (clippy, dylint, test --no-run) passed. x86_64-pc-windows-gnu is refused by soldr 0.9.31 on macOS aarch64. The msvc cross dies in cc with stdio.h not found. ci-lint local-gate run cannot finish here. The ci/ self-test hits macOS bash 3.2, /private/var, a missing readelf, and Apple clang, and that death comes before rustfmt. Those checks were run on their own. No stamp.

Checklist

Tier 1 mirrors test_missing_files.c against todo!() shims.
obs_missing_files_create panics not yet implemented.

Refs obs-rust#1459
The list, each file, its path, and a source name stay on
bmalloc. The pointer array is the bmalloc darray. Tier 3
matches the C oracle. The C file moves into the ported
unity group. No intentional differences.

Refs obs-rust#1459

@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.

Coordinator review: RED (e81319a) → GREEN (43e6f14) present, C oracle differential parity in obs-c-oracle/missing_files, Tier 2 test_missing_files/test_missing_files_list unchanged and passing on both libobs builds, new unity group registered in source-sets.json. No user-visible change, so no ledger line needed. Looks good; it is in the merge queue.

Merged via the queue into obs-rust:master with commit 2d19461 Oct 20, 2026
25 checks passed
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.

2 participants