Repository navigation
fix(preview): honor non-FHS media runtime configuration - #2098
Conversation
Pass the resolved resource limiter into media and artwork helpers, and lower background helper scheduling priority directly instead of looking up nice. Keep per-decoder limits and accelerated helper policy intact. Add real decoder coverage with prlimit and nice absent from PATH, and exercise configured limiter failure and recovery through the existing video QA scenario. Refs #2097
CI exports only relocated test executables, so CARGO_BIN_EXE_strata points to an application binary absent from the shard. Move the regression beside the media helper tests and re-execute the current test binary to dispatch the real helper entry point. Preserve actual decoder output, absolute limiter, and inherited priority assertions for all five operations. Verify the relocated executable with both Cargo build directories hidden.
The GIO handler is process-wide and can capture missing-attribute diagnostics emitted by an unrelated metadata test running in parallel. Only record diagnostics from the thread measuring this fixture, retaining the original missing-attribute and summary assertions. The two-test reproducer failed before this fix and passed twenty consecutive runs afterwards.
CI fixesMain was already merged/up to date at
Scoped validationAll executable checks below ran inside the verified pinned container, with private Xvfb/private D-Bus and accessibility bridging disabled. No desktop display/session bus or host toolkit was used. An earlier scoped compilation exceeded the terminal command timeout; its missing output is not counted as passing evidence. The subsequent recorded relocated-binary selections are the reported caller/regression results. No full local Rust/QA rerun was used to diagnose either isolated failure. GUI QA was intentionally not rerun for these test-only changes; previous feature validation is preserved. The normal PR workflow skips GUI QA, which is not reported as passed. CodeScene remains explicitly owner-waived and unverified as recorded for this PR. Independent read-only review found no new recursion, decoder-priority, timeout, or runtime-configuration regression in the test relocation. No screenshots, recordings, logs, or one-off scripts were committed. Existing owner-uploaded visual evidence was left untouched. CI: all required checks are green on |
Review and cleanupMerged Review against the description and #2097.
Fixes pushed
Tests removed: none. Each added or changed test catches a distinct regression. Validation
CI: all checks green on |
Description
Honor the configured absolute
STRATA_SANDBOX_PRLIMITin media and artwork helpers instead of searchingPATH. Lower waveform/storyboard helper priority directly, removing their externalnicedependency while preserving decoder limits and sandbox isolation.Includes runtime regression coverage and the workaround for already-published 1.2.0 binaries. CodeScene was skipped with explicit owner authorization (“no need codescene”); no code-health score was verified.
Visual evidence
Before:


After:
How to test
STRATA_SANDBOX_ROOT=/nix/store, put FFmpeg/ffprobe inSTRATA_SANDBOX_PATHwithout the util-linux/coreutils directories, and setSTRATA_SANDBOX_PRLIMITto the absolute store path ofprlimit. Keep bubblewrap available in a trusted system directory.Expected result: Media, artwork and background previews work without locating
prlimitornicethroughPATH. An unavailable configured limiter fails closed; restoring it restores playback.Related issue
Closes #2097