Skip to content

ci: Move Flatpak and the native builds out of the dev cycle into a release gate #436

Closed

Description

@zackees

Goal (maintainer): take Flatpak and the other expensive packaging and native builds out of the dev cycle (PRs and master pushes) and run them as release-gating builds instead, as zackees/ci.yml prescribes: the PR and push runs stay cheap, and the release candidate's exact-SHA full run is the catch-all (docs/designs/pr-critical-path.md, "Catch-alls"). Target: the dev-cycle CI is ≥4× faster, with no Flatpak.

Measured (last full PR runs with native changes: 38335024008, 38334843126, 38333993443)

Wall time is 10–12 min, plus queueing; each run holds 5 macOS slots, the whole free-tier cap, so overlapping PRs queue (quick-gate runs saw 9–21 min wall).

Job Minutes
Flatpak 📦 8–11 (critical path)
Rust Tier 2 macos-26 5–7
Rust Tier 2 windows 4–7
macOS x86_64 / arm64 4–5 / 3–4
Windows x64 / arm64 3–4 / 3–4
Ubuntu / Ubuntu (Rust libobs) 2–3 / 2–3
Rust Tier 2 Linux 3–4
Rust Tests linux / macOS / Windows 2–3 each
Format, validators ≤1

Master pushes run all of that, plus appimage.yaml (10–18 min) to republish the rolling continuous pre-release.

Dropping Flatpak alone only takes the critical path from ~11 to ~7 min (Tier 2 macOS). Reaching 4× means every 4+ minute job moves to the release gate.

Plan

Dev cycle (pull_request, push to master):

  • Keep: Format, validators, CI Mode / attestation, Rust Tests on Linux, macOS and Windows (catch per-OS Rust breakage), Rust Tier 2 Linux (C ABI, OFF/ON), and one Ubuntu OBS build (Rust OFF) when a PR changes native code, so the C/C++ app still compiles before merge.
  • Move to the release gate: Flatpak, macOS x86_64 and arm64, Windows x64 and arm64, Ubuntu (Rust libobs), Rust Tier 2 macOS and Windows.
  • ci-full on a PR still runs everything, as today.

Release gate (release-rust.yaml, daily 09:00 UTC and workflow_dispatch):

  • New job gate calls build-project.yaml with full: true, which runs every job above at the release candidate's exact SHA. release adds needs: gate, so a red full run blocks the publish. Today the release is "relaxed": broken platforms are just left out. Its own artifact builds stay relaxed per platform, but the full checks become mandatory.
  • Tag pushes (push.yaml upstream tag pipeline) and schedule/workflow_dispatch runs of build-project keep running everything.
  • appimage.yaml stops running on every master push. The daily release's AppImage call also refreshes continuous (publish_continuous: true), so continuous updates daily instead of per push. Tag pushes and packaging PRs still run it.

Mechanics: build-project.yaml gets a workflow_call input full (default false). check-event outputs full = input, or ci-full, or tag push, or schedule/workflow_dispatch, and native for the single Ubuntu compile. No new workflow files.

Expected

The dev-cycle critical path becomes Rust Tier 2 Linux / Rust tests (~3 min) instead of Flatpak (~11 min), ~4×. On an attested PR (GATE-008 skips the Linux lanes) it's ~2–3 min. The run uses one macOS slot (Rust Tests) instead of five, which removes most of the queueing. Runner minutes per PR go from ~55 to ~15.

Trade-off: macOS/Windows-only C/C++ compile breaks and Flatpak/AppImage packaging breaks are caught by the daily release gate (or ci-full), not on the PR. The release refuses to publish until they're fixed.

Acceptance

  • A PR run with native changes has no Flatpak, macOS/Windows OBS build or macOS/Windows Tier 2 job, and its wall time is ≤ ¼ of the baseline above (measured on the PR itself and the next two PRs).
  • release-rust.yaml's release needs a green full build-project run.
  • ci-full still runs everything.

Coordination: #427 (rdoupe) speeds up these same jobs, and those caches still help the release gate. #426 touches appimage.yaml.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Claiming: #436. One PR (workflow edits only).

  2. added
    claimed
    on Oct 13, 2026
  3. added a commit that references this issue on Oct 13, 2026
  4. added 3 commits that reference this issue on Oct 13, 2026
    8886b1a
    cc951f5
    0c65118
  5. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Revised per maintainer direction: Linux always; core code adds the Rust-libobs build; platform code runs that platform's jobs, or (#443) is attested locally to skip them. Everything else, Flatpak included, moves to the release gate. Details in #440.

  6. added 3 commits that reference this issue on Oct 13, 2026
    80dbc01
    3ad8c9d
    8d15541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions