Skip to content

facade: isolate VST path policy and native member declarations - #1625

Merged
zackees merged 3 commits into
masterfrom
infra/854-vst-platform
Oct 21, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/854-vst-platform

Conversation

@zackees

@zackees zackees commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Fixes #854.

Change

Move VST search directories, file filters, case-insensitive name stripping and Flatpak migration into host implementations in the existing native unity groups. CMake selects private host type/member fragments for the shared Qt headers, preserving exact field names/types/initializers and their position. Native loader/editor implementation files are unchanged; no pimpl allocation or ownership change. All shared host decisions are removed, without new exceptions.

Preserve directory ordering, x86 WOW64's shorter path list, unset versus empty VST_PATH and empty colon-separated entries, macOS's unexpanded tilde, Linux-only migration, input-pointer identity when migration does not run, and the existing non-Linux Unix no-op case. No user-visible behavior change is intended.

RED → GREEN

  • RED d6f20e837: original policies pass; four boundary/wiring failures.
  • GREEN 20c946045: 95 focused tests pass, new real Qt check deferred locally to the existing Qt CI lane. Ratchet drops 23 findings. Pinned clang-format/gersemi, shell syntax and whitespace pass.
  • Actual-source policy fixtures cover Windows x64, x86 with both WOW64 outcomes, macOS, Linux, and prior non-Linux Unix behavior.
  • CMake generator expressions are evaluated for Windows/Darwin/Linux/FreeBSD; selected member fragments match the original declarations exactly after preprocessing.
  • Real Qt CI compiles and executes the same five policy variants against QtCore. OS calls/Flatpak presence are mocked; native plugin builds cover actual SDK types and Qt moc.

Validation

Full existing workflow dispatched for the exact GREEN commit because native groups/PCHs changed. Native plugin and real Qt results pending. C++ behavior-preserving refactor: Rust implementation-swap tiers and protocol Tier 4 do not apply. Existing C tests and public C headers remain unchanged.

Compatibility-build wiring correction

Full-run Qt job 119337412253 failed because the independent test_vst_editor_close_module target lacked the new host include directory. Rebased commit b7bea20d0 adds it to that target and to the separate Cargo native VST graph, with a focused regression guard. Existing C/C++ test code and assertions remain unchanged. Local 95-test suite and soldr cargo fmt --check pass. Validation restarted on the corrected commit; the diagnosed failing old full run was canceled.

Resumed after prerequisite

#1626 is fixed by merged #1627. This PR is rebased onto that fix; current head b7bea20d0 passes all 95 focused checks again. A fresh full validation run is dispatched for this exact head. Earlier Qt job 119340768876 built/executed all five real Qt policy executables, passed all four added Qt checks and all 19 existing Qt tests, including test_vst_editor_close. Final-head native plugin/app evidence follows.

Final-head evidence (b7bea20d0)

  • Qt job 119364231130: all five real Qt policy executables ran; all four facade checks and all 19 existing Qt tests passed, including VST editor close.
  • Windows x64 job 119364231300: both VST groups compile, obs-vst.dll links, complete app build passes.
  • macOS x86_64 job 119364231209: native/core/moc compile, obs-vst.plugin links, complete app build passes.
  • Linux job 119364231211: core/native groups compile, obs-vst.so links and installs, complete app build passes.
  • Required Windows/macOS full-build policy is satisfied. PR CI 39640985777 also passed completely, including macOS Tier 2 job 119366312340. Full validation 39640976288 has now succeeded completely, including all app architectures, Qt, native Rust/Tier 2 and Flatpak.

@zackees
zackees force-pushed the infra/854-vst-platform branch from 8eb8704 to b7bea20 Compare October 21, 2026 17:07
@zackees
zackees marked this pull request as ready for review October 21, 2026 17:37
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
Merged via the queue into master with commit 81a0fc5 Oct 21, 2026
57 checks passed
zackees added a commit that referenced this pull request Oct 24, 2026
)

test_encoder_error_stop, test_ffmpeg_mux_unwritable_path,
test_output_filename_reserve and test_replay_buffer_pause_stop compile
obs-ffmpeg-mux.c directly; they now also compile its POSIX host, the way
#1625 added the VST host's include path. The test sources are unchanged.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 24, 2026
…rust#853) (obs-rust#2023)

* obs-ffmpeg: RED test for the muxer output host interface (obs-rust#853)

obs-ffmpeg-mux-host.h with stub Windows/macOS/POSIX hosts in per-OS unity
groups; test_obs_ffmpeg_mux_host_{macos,posix} fail against the stubs.

* obs-ffmpeg: muxer output host code behind obs-ffmpeg-mux-host.h (obs-rust#853)

The helper's executable name and the Windows Defender hint move into
obs-ffmpeg-mux-host-{windows,macos,posix}; win-version.h leaves the mux
PCH for the Windows host's. The cross check compiles the Windows and macOS
hosts. Baseline: two obs-ffmpeg entries (3) to 0.

* test: link the mux host into the tests that build obs-ffmpeg-mux.c (obs-rust#853)

test_encoder_error_stop, test_ffmpeg_mux_unwritable_path,
test_output_filename_reserve and test_replay_buffer_pause_stop compile
obs-ffmpeg-mux.c directly; they now also compile its POSIX host, the way
obs-rust#1625 added the VST host's include path. The test sources are unchanged.
@zackees
zackees deleted the infra/854-vst-platform branch October 26, 2026 15:45
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.

facade: plugins/obs-vst: move 16 platform conditionals behind a per-platform layer

1 participant