Skip to content

ci: One fast gate job for core PRs: lint, Dylint and unit tests in ~4 minutes (#992) - #1013

Merged
zackees merged 2 commits into
masterfrom
ci/992-fast-gate
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/992-fast-gate

Conversation

@zackees

@zackees zackees commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixes part of #992. Target: a core change gets through in ~4 minutes.

Measured before (3 PR runs after #993)

About 12 runners per PR (Event Data, CI Mode, Lane Proofs, 5 format jobs, Validate Compatibility, Validate Services, Rust Tests, CI Gate). Job work was ~2.5 min; queue waits were 30 s to 11 min per job, wall clock 21-41 min.

Changes

  • Fast Gate (rust-tests-linux, renamed): format, rustfmt, clippy, Dylint, then soldr cargo test for the crates the diff touches plus dependents (ci/rust_scope.py; libobs/dylints/Cargo files test the workspace; docs/frontend skip tests). No Qt.
  • Runners folded: clang-format, gersemi (pushes only, PRs get them from the lint lane), flatpak, qt-xml, swift detection and ci/ self-tests into one Checks job; compat + services validators into Validate Data; Lane Proofs into CI Mode. Core PR: Event Data, CI Mode, Checks, Validate Data, Fast Gate, CI Gate (6, from ~12), +3 when Tier 2 is selected.
  • Labels no longer change CI (ci-full removed from check-event, docs, template). build-aux/, .gitmodules and plugin submodule moves select the full builds by path.
  • Tier 2 Linux runs on PRs only when tier2 (libobs, crates linked into libobs derived from rust/libobs-rust/Cargo.toml, test/cmocka, deps, validate tooling, Cargo files). Cross lint runs on PRs only when a platform lane is selected.
  • Tier 2 image keeps the qt6 packages: decklink-captions does find_package(Qt6 REQUIRED Widgets) at configure, so dropping them broke configure (found by CI). The Fast Gate target build installs no Qt and passes ENABLE_DECKLINK=OFF.
  • macOS/Windows Rust test legs run scoped crates on PRs.

Tables (ci/ci_scope.py, tested per row)

  • Lanes by path: tier2 = libobs/, test/cmocka/, deps/, rust/tools/linux-validate/, Cargo.*, rust-toolchain.toml, linked crates; full = build-aux/**, .gitmodules, submodule dirs; qt = frontend/, shared/qt, shared/properties-view, plugins/frontend-tools, Qt-linked tests.
  • OS lanes: one rule /platform[/-](windows|macos|linux|posix)[/.] (posix = linux+macos); other core files = linux only; shared build files = all; legacy name tokens (platform_paths.py) remain as fallback with a TODO for the rename issue. Areas able to start an OS lane: libobs, rust/, frontend/, plugins/, shared/, deps/, cmake/, test/, build-aux/.

Not done here

Windows/macOS Qt lanes (prebuilt Qt assets) are a follow-up; the Qt lane is Linux-only.

Update

Fast Gate order: 1) fmt/clippy/Dylint, 2) unit tests of touched crates, 3) Linux build of touched plugins/ and shared/ targets (empty list skips). macOS/Windows/Qt/Tier 2/cross jobs needs: the Fast Gate. No PR path triggers the full app builds; .github/ no longer starts macOS/Windows; platform-only libobs files skip Linux Tier 2; frontend platform files start no OS Rust/Tier 2 job.

@zackees
zackees force-pushed the ci/992-fast-gate branch 2 times, most recently from 7ba1790 to 583217a Compare October 16, 2026 07:49
@zackees
zackees merged commit 9677bd2 into master Oct 16, 2026
20 checks passed
@zackees
zackees deleted the ci/992-fast-gate branch October 16, 2026 08:44
zackees added a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 16, 2026
…ix) (obs-rust#1045)

* test: Qt plugins opt out before requiring Qt (RED)

The Fast Gate (obs-rust#1013) configures the touched Linux targets with no Qt.
frontend-tools calls find_package(Qt6 REQUIRED) unconditionally, so that
configure fails on every PR that builds C (obs-rust#1016, obs-rust#1031, obs-rust#1037).

* frontend-tools: Skip the plugin when the frontend is off (GREEN)

frontend-tools is frontend UI and requires Qt. Return before
find_package(Qt6) when ENABLE_FRONTEND is OFF, as the AJA, DeckLink, VST
and websocket plugins do with their own options, so the Fast Gate's
Qt-free configure succeeds.
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