Skip to content

ci: test Linux and macOS on the GStreamer 1.28 baseline - #1123

Merged
srperens merged 6 commits into
mainfrom
ci/linux-macos-gstreamer-1.28
Oct 27, 2026
Merged

srperens merged 6 commits into
mainfrom
ci/linux-macos-gstreamer-1.28

Conversation

@srperens

@srperens srperens commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #964

This is the "Linux/macOS baseline" part of the agreed direction in #964. The Windows installer and the Debian bookworm floor job are separate PRs.

Problem

check-linux ran on the hosted ubuntu-24.04 image with GStreamer 1.24.2. No shipped build uses that version, and Linux CI failed on its bugs, such as avdec dropping the last frame of an intra-only clip (fixed upstream in 1.24.4). Tests worked around them, for example by accepting one frame less from an FFV1 clip, which also hid a real dropped frame. macOS takes whatever Homebrew ships, and nothing noticed when that version moved.

Change

  • check-linux runs in container: ubuntu:26.04 (GStreamer 1.28.2), the base Move Docker images from Ubuntu 25.10 (EOL) to 26.04, and carry the GStreamer PTS wraparound fix #1101 moves the Docker images to. In the container:
    • Packages come from plain apt-get. cache-apt-pkgs-action and the "repair alternatives" step are gone: a real install runs the postinst scripts and triggers (libblas alternatives, GSettings schemas) that the cached restore skipped.
    • The package list is the one from the old job, plus what the hosted image provided for free (build-essential, ca-certificates, curl, git, procps, gstreamer1.0-tools, and zstd, without which rust-cache falls back to gzip). Mesa (libegl-mesa0, libgl1-mesa-dri) still gives the GL tests surfaceless EGL. STROM_REQUIRE_GST_PLUGINS, STROM_REQUIRE_GL and STROM_SKIP_KNOWN_CI_FAILURES are unchanged.
    • Rust comes from rustup with --profile minimal plus rustfmt and clippy, at the channel rust-toolchain.toml pins, set through RUSTUP_TOOLCHAIN as check-floor (ci: check that Strom builds and runs on GStreamer 1.22, the floor #1125) does, so the wasm32 target is not installed. sccache uses the same action.
    • rust-cache gets a new key, linux-x86_64-ubuntu-26.04, because build scripts here link against the container's libraries.
  • check-linux and build-macos both run .github/scripts/check-gst-baseline.sh. It prints gst-inspect-1.0 --version, fails when the minor version is below GSTREAMER_BASELINE ("1.28", set once in the workflow env), and posts a ::warning annotation and continues when it is above. A Homebrew move past 1.28 therefore shows up without blocking the macOS release build. Checked locally with a fake gst-inspect-1.0: 1.26.6 exits 1 with the error, 1.28.2 passes, 1.30.0 warns and exits 0.
  • The build jobs (build-linux-x86_64, build-linux-arm64) stay on the hosted 24.04 image. They only compile and link (zigbuild against glibc 2.31) and run no tests, so they gain nothing from the baseline. Moving them would also put a newer glibc under that link. I updated only their comments, which said their apt list had to match check-linux.
  • Three tests assumed the hosted runner's environment. I fixed the tests, not the code:
    • gpu_converter_answers_with_direct_formats_first and cuda_after_a_converted_format_bypasses_the_converter: on 1.28 with Mesa EGL, glupload lists memory:DMABuf (format DMA_DRM) and meta:GstVideoGLTextureUploadMeta entries in a mixer input's caps answer. The tests counted those entries as "only the converter takes". Both tests now use one helper, common::upload_path, which names the features taken directly (memory:GLMemory, memory:DMABuf, meta:GstVideoGLTextureUploadMeta, memory:CUDAMemory). ANY features and any other feature count as converter-only, and plain system memory is direct only in a format glupload uploads. The code under test was right: in the failing answer, all converter-only entries (entry 24+ / 30+) came after every direct entry.
    • config::tests::test_from_figment_ignores_blank_values asserted that the fallback flows path is absolute. Inside a container Paths::default_data_dir deliberately returns ./data. The test now compares against the default that the same environment resolves with no config file. A blank data_dir that was not ignored would give flows.json, so the test still fails on that bug.
  • The FFV1 last-frame tolerance for 1.24.2 is removed (common/stinger.rs clip_frames, stinger_clip_test.rs), and the comments that said Linux CI runs 1.24.2 are updated. No CI job runs these tests on 1.24 now (the floor job does not run them), so a dropped last frame on 1.28 fails again.
  • The ProRes and software-decode stinger skips on Linux stay. An earlier commit here removed them; I put them back. test(ci): skip the ProRes stinger and GPU direct-input tests on the Linux runner #1084 skipped the ProRes tests because ProRes frames arrived late on a loaded runner (they passed 4/4 in a 24.04 container). test(ci): run the GPU vision mixer tests one at a time, and all of Linux CI past a failure #1095 skipped the_stinger_source_recovers_after_a_clip_a_consumer_refused for a late cut and a_clip_its_hardware_decoder_refuses_plays_in_software for 29 of 30 frames, but that clip is PNG decoded by pngdec, not avdec. None of these causes is the 1.24.2 bug, so two green runs on 1.28 are no evidence.
  • a_mixer_latency_failure_is_reported_once_with_its_inputs now also skips on Linux, with the reason pointing at Mixer latency diagnosis sometimes never fires: latency tests skipped on every CI platform #1136 (the maintainer's decision).

Evidence

  • Linux runs 1.28: the job log of run 40501243537 prints GStreamer 1.28.2. macOS prints gst-inspect-1.0 version 1.28.8 and passes the check.
  • The two caps-order tests and the config test failed on the first container run (40498360447). The failures were the answer lists what only the converter takes (entry 10) ahead of what glupload uploads directly (entry 12) (entry 10 is video/x-raw(memory:DMABuf), format=DMA_DRM) and a blank data dir must fall back to the default location, got "./data/flows.json". All three passed on the next run.
  • a_mixer_latency_failure_is_reported_once_with_its_inputs failed once, on the first container run: expected the latency warning once, got []; ... pipeline Paused. It passed on the two runs after that. This is the same intermittent "mixer posts no latency warning" failure that test(latency): skip the mixer latency tests on the macOS and Windows runners, and say why they fail #1106 recorded on macOS and Windows (also 1.28). It now shows up on Linux too, now that Linux runs 1.28, and is skipped there (Mixer latency diagnosis sometimes never fires: latency tests skipped on every CI platform #1136).

Job duration (check-linux)

Total apt Rust cache restore Clippy Backend tests
Before, main (runs 40484691777, 40479979135, 40475637746, 40471874280) 12:01 to 14:01 1:34 (cache 0:17 + repair 1:17) 0:55 0:40 8:28
Before, PRs (5 recent) 10:38 to 13:36
After, this PR (run 40501243537 and its rerun; run 40507767088 on the head commit) 15:30, 15:39; 16:55 1:07 0 (new key, cold) 2:01 9:48

apt is about 30 s faster without the cache and repair steps. The rest of the difference is the cold cache: a PR never saves rust-cache, and the new key has no entry on main yet, so clippy and the test build compile from sccache. Once main saves linux-x86_64-ubuntu-26.04 this should be back near the old numbers. Those runs also ran the five stinger tests that are skipped again now, about 25 s. macOS took 12:10, 20:21 and 19:16 on the runs here, against 28 to 37 min on main, where it also runs the release build. The added version check takes under a second.

Tests

  • Ran on CI: check-linux in ubuntu:26.04 (1615 passed, 0 failed, 11 ignored across all test result lines), build-macos via ci:macos, plus the build, WASM, API contract and static JS jobs.
  • Ran locally (macOS): only cargo fmt and cargo clippy through the pre-commit hook. No local test run: the changes are CI config and test classifiers, verified on the runners.
  • Skipped on Linux, through skip_known_ci_failure: both latency diagnosis tests (Mixer latency diagnosis sometimes never fires: latency tests skipped on every CI platform #1136), the four ProRes stinger tests, a_clip_its_hardware_decoder_refuses_plays_in_software and static_underlays_are_not_reuploaded_gpu.
  • Ran locally (macOS): cargo clippy --features efp on the changed test binaries, -D warnings, clean. The baseline script against a fake gst-inspect-1.0 (see above).
  • Not run: Windows (another PR covers it).

For the reviewer

  • a_mixer_latency_failure_is_reported_once_with_its_inputs failed once in three runs on Linux. As decided, it now skips on Linux too, so it runs in no CI job. The cause is tracked in #1136.
  • With the FFV1 tolerance removed, a 1.28 decoder that drops a clip's last frame fails stinger_clip_test and the rig's clip_frames again.
  • The build jobs no longer share an apt cache entry with check-linux. Each arch keeps its own entry, as before.
  • Two other PRs (Windows installer, bookworm floor job) edit ci.yml at the same time. This PR only touches check-linux, build-macos, the build jobs' comments and one line in the top-level env.

Out of scope

🤖 Generated with Claude Code

@srperens srperens added the ci:macos Run Build (macOS) on this pull request label Oct 27, 2026
@srperens
srperens force-pushed the ci/linux-macos-gstreamer-1.28 branch from d74fc05 to 898fdd5 Compare October 27, 2026 12:54
srperens and others added 4 commits October 27, 2026 13:55
…version on macOS

check-linux moves into a ubuntu:26.04 container so the tests run on the
GStreamer 1.28 baseline instead of the hosted runner's 1.24.2. Both test
jobs now fail unless gst-inspect-1.0 reports 1.28.x.

Refs #964

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On GStreamer 1.28 with Mesa EGL, glupload lists DMABuf in a vision mixer
input's caps answer. The two caps-order tests counted those entries as
converter-only. The converter outputs plain system memory only, so any
other caps feature now counts as taken directly.

The blank-data-dir config test asserted an absolute path, but inside a
container the default data dir is ./data. It now compares against the
default the same environment resolves with no config file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nux again

They were skipped on the Linux runner (#1084) for dropped or late frames,
the symptom of the GStreamer 1.24.2 avdec last-frame bug (#964). Linux
CI now runs GStreamer 1.28.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One script, .github/scripts/check-gst-baseline.sh, for check-linux and
  build-macos: below the baseline minor fails, above it warns, so a
  Homebrew move does not block the macOS release build.
- check-linux installs zstd for rust-cache, and only the rustfmt and
  clippy components, through RUSTUP_TOOLCHAIN as check-floor does.
- The caps-answer classification lives in tests/common (upload_path) and
  names the features taken directly: GL memory, DMABuf, the GL texture
  upload meta and CUDA memory. ANY features count as converter-only.
- The ProRes and software-decode stinger tests skip on Linux again: #1084
  and #1095 skipped them for late or dropped frames on a loaded runner,
  and the software-decode clip is PNG, not avdec.
- a_mixer_latency_failure_is_reported_once_with_its_inputs skips on Linux
  too (#1136).
- The FFV1 last-frame tolerance for GStreamer 1.24.2 is gone: no CI job
  runs these tests on 1.24 now, so a dropped frame fails again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@srperens
srperens force-pushed the ci/linux-macos-gstreamer-1.28 branch from 898fdd5 to 75a9c13 Compare October 27, 2026 12:56

@srperens srperens left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Area: CI / GStreamer version baseline (#964)

Moves check-linux from hosted 24.04 (1.24.2) into ubuntu:26.04 (1.28.2) and adds a baseline check on Linux and macOS. Not stale: on main check-linux still runs on ubuntu-24.04 with the cached apt list, so CLAUDE.md's "1.28 on every platform" only holds for Linux once this lands. The approach looks right.

Neighbours: #1124 moves the Docker images to 26.04. Until it lands, CI tests 1.28 but the images ship 25.10's GStreamer, so land them close together. #1101/#1132 are the same image work. #1136 is the latency skip this PR widens. #1126 and #1125 (merged) are the Windows and floor halves.

  1. gh pr checks 1123: Check (Linux) fails at this head. gpu_stingers_land_frame_accurately panics at backend/tests/common/stinger.rs:752 with "frame -5: old source before the cut, left: Other, right: Red". It passed on 1.28 at 75a9c13, and Check (Linux) on main 8609f7d also fails (I could not read that log yet). So this may be a flake and not caused by this PR, but it is not verified. A rerun or an issue is needed before merging.
  2. After this PR neither latency diagnosis test runs on any CI platform (latency_diagnosis_test.rs:55, :190). The PR states this and #1136 tracks it, but nothing guards the latency reporting until #1136 is fixed.
  3. Windows pins 1.28.8 separately (ci.yml:646) and does not run check-gst-baseline.sh. Raising GSTREAMER_BASELINE will not touch it.

assert!(sweep.has_alpha);
assert_eq!((sweep.width, sweep.height), (1920, 1080));
assert!(frames_near(sweep.frames, 45), "{} frames", sweep.frames);
assert_eq!(sweep.frames, 45, "sweep frames");

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The note that named the upstream fix (FFV1/avdec last frame, fixed in 1.24.4) is gone from this file. Now a local run on 24.04's 1.24.2 fails here now and then, with no hint why. CLAUDE.md: "Keep it out of the floor smoke set, and name the upstream fix." Keep one line naming 1.24.4, or keep the tolerance only when gst::version() is below 1.24.4.

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn a_mixer_latency_failure_is_reported_once_with_its_inputs() {
if common::skip_known_ci_failure(&["macos", "windows"], MIXER_DOES_NOT_ALWAYS_WARN) {
if common::skip_known_ci_failure(&["macos", "windows", "linux"], MIXER_DOES_NOT_ALWAYS_WARN) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With linux added, this test runs in no CI job. Per CLAUDE.md, a test that always skips guards nothing. This is acceptable only as a stopgap tied to #1136, which the reason string does reference.

@srperens
srperens merged commit a384e95 into main Oct 27, 2026
18 of 20 checks passed
@srperens
srperens deleted the ci/linux-macos-gstreamer-1.28 branch October 27, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:macos Run Build (macOS) on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant