Skip to content

test: Build obs-nvenc in the Tier 2 Linux harness with ENABLE_RUST_LIBOBS OFF and ON - #646

Merged
zackees merged 3 commits into
masterfrom
test/645-tier2-nvenc
Oct 14, 2026
Merged

zackees merged 3 commits into
masterfrom
test/645-tier2-nvenc

Conversation

@zackees

@zackees zackees commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Refs #524 (Tier 2 coverage of its CUDA loader swap, landed in #592).
Fixes #645. Follow-up to #524 / #592: adds the Tier 2 coverage of the obs-nvenc CUDA loader swap that #592 deferred.

Commits

  1. RED (5dd14df70): validate.sh requires, per mode, that obs-nvenc.so builds and that it compiles cuda-load.c.o OFF and cuda-load-rust.c.o ON. It failed under the unchanged harness:
    == [OFF] decklink.so imports:
    FAIL: obs-nvenc with ENABLE_RUST_LIBOBS=OFF must compile cuda-load.c.o and not cuda-load-rust.c.o
    
  2. GREEN: the Dockerfile installs libffmpeg-nvenc-dev (FFnvcodec 12), and validate.sh configures with ENABLE_NVENC=ON and builds the obs-nvenc target. rust/tools/linux-validate/run.sh:
    == [OFF] ctest   100% tests passed, 0 tests failed out of 187
    == [OFF] obs-nvenc.so built with cuda-load.c.o
    == [ON] ctest    100% tests passed, 0 tests failed out of 187
    == [ON] obs-nvenc.so built with cuda-load-rust.c.o
    == libobs exported symbols, OFF vs ON   (no difference)
    

No GPU is needed: like the decklink check, this is compile and link only. The unchanged C tests pass in both modes, and no C test or public header was touched.

Local gate

./lint ok, ./unittest ok, and ci-lint local-gate run passed lint, rust-test, cross and tier2-linux. HEAD is stamped.

…(RED)

validate.sh now requires obs-nvenc.so to build in both modes, with
cuda-load.c when ENABLE_RUST_LIBOBS is OFF and cuda-load-rust.c when ON.
The harness still configures with ENABLE_NVENC=OFF, so this fails.

Refs #645
Install nv-codec-headers (libffmpeg-nvenc-dev, FFnvcodec 12) in the
image and configure with ENABLE_NVENC=ON, so both builds compile and
link obs-nvenc. That covers the cuda-load.c / cuda-load-rust.c swap
from #592.

Fixes #645

Local-Gate: v1 tree=5f5a85eacb13db43b216aa3ef03fb20839601291 secs=396 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791929419,"gate":"rust/all/fmt","host":"linux-x86_64","key":"331c220c86a55c314a1aed95aab7ba682a259d29a25e8938ac9da9e4218eac61","lane":"lint","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":20,"stamp":"00d53eb044d63868a9920dbcc098f41c","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"331c220c86a55c314a1aed95aab7ba682a259d29a25e8938ac9da9e4218eac61","lane":"lint","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":20,"stamp":"3dc63cc0b16598c0ad0f67f27f96a8a6","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4840c0308ea31c36ffa76cd068a46ab3c44d0e27f50d14fcf23350a743ff20fe","lane":"rust-test","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":124,"stamp":"912980d7375d73d5bb188d1d6f755e53","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"f83061a1f616fb134a8e9bd01e725aff","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"0a5557fce05d69e8280f0a8b798e645b","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"b584822a28caeb47c9ad95c51affce0a","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"edb248f5497e4976a5d15de42d34a3f1","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"50f314020be8736ad0c7647856751423","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"620c0248d6262a5528478c98fed510193753d9c6c9e9796ec445e56d5e1b9bd3","lane":"cross","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":119,"stamp":"1b476e164703c614e8b0f853cdfaf621","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
Ci-Attestation: {"at":1791929419,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"645acaf6538d7c5e88cd82bf16889acc2533ac8dce314ae80c8b2d7a0eb7e4bb","lane":"tier2-linux","parents":["5dd14df70b6afd03a39e3b7d706eeb073bc72719"],"secs":132,"stamp":"d404e208daddfb51ed47d84d8e995f61","tree":"5f5a85eacb13db43b216aa3ef03fb20839601291","v":1,"via":"run"}
@zackees
zackees merged commit 91fcf47 into master Oct 14, 2026
19 checks passed
@zackees
zackees deleted the test/645-tier2-nvenc branch October 26, 2026 15:46
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.

test: Build obs-nvenc in the Tier 2 Linux harness with ENABLE_RUST_LIBOBS OFF and ON

1 participant