Repository navigation
ci: test Linux and macOS on the GStreamer 1.28 baseline - #1123
Conversation
d74fc05 to
898fdd5
Compare
…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>
- 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>
898fdd5 to
75a9c13
Compare
srperens
left a comment
There was a problem hiding this comment.
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.
gh pr checks 1123: Check (Linux) fails at this head.gpu_stingers_land_frame_accuratelypanics 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.- 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.
- Windows pins 1.28.8 separately (ci.yml:646) and does not run check-gst-baseline.sh. Raising
GSTREAMER_BASELINEwill 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"); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
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-linuxran on the hostedubuntu-24.04image with GStreamer 1.24.2. No shipped build uses that version, and Linux CI failed on its bugs, such asavdecdropping 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-linuxruns incontainer: 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:apt-get.cache-apt-pkgs-actionand the "repair alternatives" step are gone: a real install runs the postinst scripts and triggers (libblas alternatives, GSettings schemas) that the cached restore skipped.gstreamer1.0-tools, andzstd, 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_GLandSTROM_SKIP_KNOWN_CI_FAILURESare unchanged.--profile minimalplus rustfmt and clippy, at the channelrust-toolchain.tomlpins, set throughRUSTUP_TOOLCHAINas 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.linux-x86_64-ubuntu-26.04, because build scripts here link against the container's libraries.check-linuxandbuild-macosboth run.github/scripts/check-gst-baseline.sh. It printsgst-inspect-1.0 --version, fails when the minor version is belowGSTREAMER_BASELINE("1.28", set once in the workflow env), and posts a::warningannotation 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 fakegst-inspect-1.0: 1.26.6 exits 1 with the error, 1.28.2 passes, 1.30.0 warns and exits 0.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.gpu_converter_answers_with_direct_formats_firstandcuda_after_a_converted_format_bypasses_the_converter: on 1.28 with Mesa EGL,gluploadlistsmemory:DMABuf(formatDMA_DRM) andmeta:GstVideoGLTextureUploadMetaentries 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_valuesasserted that the fallback flows path is absolute. Inside a containerPaths::default_data_dirdeliberately returns./data. The test now compares against the default that the same environment resolves with no config file. A blankdata_dirthat was not ignored would giveflows.json, so the test still fails on that bug.common/stinger.rsclip_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_stinger_source_recovers_after_a_clip_a_consumer_refusedfor a late cut anda_clip_its_hardware_decoder_refuses_plays_in_softwarefor 29 of 30 frames, but that clip is PNG decoded bypngdec, notavdec. 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_inputsnow 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
GStreamer 1.28.2. macOS printsgst-inspect-1.0 version 1.28.8and passes the check.the answer lists what only the converter takes (entry 10) ahead of what glupload uploads directly (entry 12)(entry 10 isvideo/x-raw(memory:DMABuf), format=DMA_DRM) anda 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_inputsfailed 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)
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.04this 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
check-linuxinubuntu:26.04(1615 passed, 0 failed, 11 ignored across alltest resultlines),build-macosviaci:macos, plus the build, WASM, API contract and static JS jobs.cargo fmtandcargo clippythrough the pre-commit hook. No local test run: the changes are CI config and test classifiers, verified on the runners.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_softwareandstatic_underlays_are_not_reuploaded_gpu.cargo clippy --features efpon the changed test binaries,-D warnings, clean. The baseline script against a fakegst-inspect-1.0(see above).For the reviewer
a_mixer_latency_failure_is_reported_once_with_its_inputsfailed 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.stinger_clip_testand the rig'sclip_framesagain.ci.ymlat the same time. This PR only touchescheck-linux,build-macos, the build jobs' comments and one line in the top-levelenv.Out of scope
🤖 Generated with Claude Code