Skip to content

test: test-appimage.sh reads the version line, not the first line of --version output - #1043

Merged
zackees merged 1 commit into
masterfrom
fix/appimage-version-check
Oct 16, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/appimage-version-check

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Every AppImage container test (Debian, Ubuntu, Fedora, Arch) currently fails with "this AppImage was built with ENABLE_RUST_LIBOBS but does not report OBS-Studio-Rust", though the app prints OBS-Studio-Rust 0.1.0 (based on OBS …).

Cause: since the glibc 2.28 base (#927), the loader prints libobs-va.so.2: no version information available before the version. test-appimage.sh captures stdout and stderr together and required the whole capture to start with OBS-Studio-Rust. The same prefix test also chooses the Rust or upstream layout (line 300), so it then looked for usr/lib/obs-modules.

Fix: app_version_line() takes the first line that starts with OBS. The two version checks and the layout switch use it. Nothing compares the raw capture any more.

RED → GREEN

  • Unit test: ci/test_appimage_version_line.py extracts app_version_line from the script and runs it on the real output (warning, then version), on plain output, and on output with no version line. It fails on master, where no such function exists, and passes now. It also requires all three checks to use VERSION_LINE and none to compare VERSION_OUT.
  • Reproduced under bosn (bosn ≥ 0.1.22) on debian:trixie-slim (digest-pinned), with the AppImage artifact from run 38869769545:
    • Before: ::error::this AppImage was built with ENABLE_RUST_LIBOBS but does not report OBS-Studio-Rust.
    • After: the version check passes, the Rust layout is chosen, and the module inventory is found (20 modules).

Not fixed here: with this fixed, the bundle scenario gets to its real check and reports 240 ELF files that resolve host libraries. That is mostly glibc after #927, plus libffi.so.8. It's a policy question for #927 and is filed as #1042.

…--version output

Since the glibc 2.28 base (#927) the loader warns "libobs-va.so.2: no
version information available" before --version's output. The checks
required the whole stdout+stderr capture to start with OBS-Studio-Rust,
so every distro test failed ("built with ENABLE_RUST_LIBOBS but does
not report OBS-Studio-Rust") and, past that, the Rust/upstream path
switch picked the upstream layout. app_version_line() takes the first
line naming OBS; the three checks use it. Reproduced and verified under
bosn on debian:trixie-slim with the AppImage from run 38869769545.
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Build AppImage failed in Build the glibc 2.28 image, at obs-studio-libs fetch --lock deps.lock.json. That is the prebuilt-deps fetch, and it fails the same way on other branches (e.g. feat/text-ft2-jetbrains-mono at 08:20). This PR only changes test-appimage.sh, which runs after the build, and ci/. Its evidence is the bosn run on Debian in the description. I'll re-run once the prebuilt deps land.

@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into master with commit b9a2796 Oct 16, 2026
22 of 23 checks passed
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 16, 2026
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.

1 participant