Repository navigation
build: add production Cargo application orchestration - #1725
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
October 22, 2026 08:43
zackees
added a commit
that referenced
this pull request
Oct 22, 2026
alerque
reviewed
Oct 22, 2026
| # Bootstrap the Rust build tool, then enter it outside Cargo/Soldr's process tree. | ||
| set -euo pipefail | ||
| repository=$(cd "$(dirname "$0")" && pwd) | ||
| build_host=$(soldr --no-timestamp-lines rustc -vV | sed -n 's/^host: //p') |
There was a problem hiding this comment.
This is LLM cruft. rustc --print host-tuple does the same job as this mess, but even then you don't need to put it in a var. Just change the later cargo invocation to cargo build --target host-tuple.
|
For the sake of distro packagers everywhere and general ease of getting end users up to speec, please make sure not to hard code the build process around |
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 22, 2026
* ci: RED: the macOS presets must not use upstream's Sparkle update feed * build: Stop the macOS app from using upstream OBS Studio's update feed * docs: Add the macOS update feed fix to the features ledger * ci: RED: updaters must offer only certified obs-rust releases (obs-rust#1729, obs-rust#1730, obs-rust#1736) The daily beta must be a pre-release; only a maintainer's certify dispatch makes a full release (Latest). Both updaters stay on and read releases/latest/download/ on obs-rust/obs-studio: Sparkle appcasts, an RSA-signed Windows manifest and branches.json written by ci/update_feed.py. 21 failures: no certify job, daily releases are marked Latest, no ci/update_feed.py or obs-rust-update.hpp, the feed URLs and RSA key are upstream's or empty, the upstream appcast jobs remain in publish.yaml. * frontend: Update from certified obs-rust releases (obs-rust#1729, obs-rust#1730, obs-rust#1736) Daily betas are now GitHub pre-releases. A maintainer certifies one with 'gh workflow run release-rust.yaml -f certify=<tag>': the certify job checks the assets against SHA256SUMS, writes the update feed with ci/update_feed.py (EdDSA-signed Sparkle appcasts, RSA-signed manifest.json and branches.json), uploads it, and then makes the release a full release marked Latest. Both updaters stay on and read github.com/obs-rust/obs-studio/releases/latest/download/, which resolves only to certified releases. macOS: Sparkle feed and key are obs-rust's (from versions (obs-rust-update.hpp), downloads the release ZIP, checks its SHA-256 and installs it after OBS exits; upstream's CDN updater.exe is no longer built. Upstream's appcast jobs are removed from publish.yaml. * docs: Link the certified-release updater ledger entry to obs-rust#1742 * frontend: clang-format obs-rust-update.hpp * ci: Find the Windows updater in the WINDOWS source set (obs-rust#1725 layout)
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.
Scope
Refs #1332. Add a production Cargo command for the native Linux hybrid application, sharing its runtime staging with application validation. This PR does not complete #1332. CMake remains authoritative.
./native-build buildbootstrapsobs-buildthrough Soldr, then runs outside its process tree so the Rust archive build respects Soldr's reentrancy guard.application-build.jsonper invocation.LD_LIBRARY_PATH.RED → GREEN
The early draft was opened at
2681f83ae: real C profile switching in the existing application test category failed at Release (NDEBUGactual 0, expected 1). Subsequent RED contracts cover shared staging, command parsing, relative runtime core/plugin selection (652fd6f08), bundled frontend feature selection (0c7bc1901), and native Rust cache settings at both subprocess boundaries (27cd7bbdb). Each now passes.Real application validation also exposed and fixed missing Qt host/frontend source groups, Soldr reentrancy and native SDK discovery, skipped bundled frontend plugins, and stale C-test build inputs. Existing C test sources/public headers and the WebSocket submodule are unchanged.
Verified locally
ci/self-test discovery passes: 934 tests, five environment-dependent skips. The initial PR self-test failure exposed two guards that still expected inline CMake source lists; these now verify the shared inventories, with actual CMake configuration checks for all three Qt wrapper host selectors.Runtime evidence is retained in the bounded
obs-cargo-application-build-03ce5a7a87e5volume. Production runtime:/build/application/relwithdebinfo/runtimes/1792652434341437492-8; compatibility runtimes:/build/compatibility/app-runtime-26aoBwandapp-runtime-Hertej. Logs:/tmp/obs-1332-application-build.log,/tmp/obs-1332-application-compatibility.log, and focused RED/GREEN logs. Validation used the existing bounded Docker harness with FFmpeg and an Openbox/Xvfb/D-Bus session; their required packages are in the existing shared dependency list.Pre-push review: one reviewer across all buckets and follow-up fixes; final verdict clean.
The first native Windows Tier 2 run exposed a raw shader-byte assumption in the unchanged
test_video_output_plantest: Git's Windows CRLF conversion prevented its LF-delimited technique lookup.e9790f87areproduces this with an actual Windows-style Git checkout;dc7c6ac30pins.effectresources to LF. Shader source and C tests remain untouched. The checkout regression plus related guards pass (24 tests); native Windows Tier 2 confirms the original test passes in the CMake reference/hybrid and Cargo reference/hybrid configurations.PR CI run 39745867584 passed with CI Gate ✅ on
dc7c6ac30: Fast Gate, formatting/self-tests, Qt frontend, Linux C-test modes, Windows/macOS Rust tests and native Tier 2, and Windows/macOS cross lint. The macOS native job completed successfully after 20m24s; the observation timeout did not stop or restart it.Remaining acceptance for #1332
Full macOS/Windows application orchestration, all configurations/architectures and production feature parity (including NVENC selection), complete canonical test/build inventories, controlled cold/warm/no-change/edited-input native-cache and unity/PCH measurements, release metadata/layout, and packaged artifacts run with representative saved capture profiles remain open. Component coverage from earlier PRs and this Linux development runtime are progress, not evidence of all-platform/package completion.