Skip to content

ci: Split cross Dylint targets between the PR gate and the release gate - #957

Merged
zackees merged 8 commits into
masterfrom
ci/897-dylint-targets
Oct 17, 2026
Merged

zackees merged 8 commits into
masterfrom
ci/897-dylint-targets

Conversation

@zackees

@zackees zackees commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixes #955. Refs #897, #700, #962.

  • PR gate: cross lane lints and links x86_64-pc-windows-msvc and aarch64-apple-darwin. x86_64-unknown-linux-gnu is the host, covered by the lint lane. x86_64-apple-darwin moves out of the PR gate (also dropped from ci-attestations.yml).
  • Release gate: new cross-release lane runs clippy and Dylint for aarch64-pc-windows-msvc, x86_64-apple-darwin and aarch64-unknown-linux-gnu. New job rust-cross-lint-release runs only when full (release gate, ci-full, schedule). It's excluded from the local gate's default lane list.
  • RED 53a6049: ci/test_local_gate.py pins both target sets (FAILED (failures=1, errors=1)). GREEN: tests OK, ./lint ok.

1. ccache → zccache for the Linux CMake builds

  • zccache 1.15.4 is the CMAKE_C_COMPILER_LAUNCHER/CMAKE_CXX_COMPILER_LAUNCHER for Tier 2 (Docker), the Ubuntu build (ubuntu-ci preset), the AppImage and the sanitizers. soldr 0.9.33 embeds zccache 1.15.4 for rustc but exposes no C launcher (soldr zccache only has cache-root/session-end/stop), so rust/tools/linux-validate/install-zccache.sh installs the static musl release, SHA-256 checked. The Tier 2 image runs it at build time.
  • Cache keys are renamed to zccache-<job>-…, for example zccache-tier2-linux-<mode>-<sha>. Only master pushes save, as before (AppImage keeps its save-always policy). zccache has no --evict-older-than, so on a master push a restored cache over 2 GiB is dropped and rebuilt cold. The daemon is stopped before each save so its index is flushed.
  • Tier 2's ctest cost data (ci: Tier 2 Linux schedules slow tests first and runs 8 at a time (A3 of #930) #931) moves into the zccache dir. scheduled.yaml's stale-cache cleanup matches zccache- keys.
  • Kept on their current cache: Windows keeps ccache. zccache can't stand in for cl.exe under the Visual Studio generator (MSBuild CLToolExe). The Flatpak keeps flatpak-builder's --ccache, which runs the SDK's own ccache inside the sandbox. macOS uses Xcode's compilation cache, not ccache.
  • Local check: rust/tools/linux-validate/run.sh built OFF and ON through zccache in Docker (546 MB cache, 251 tests each). test_deinterlace_2x_field_order failed once per run, in different modes and subtests, at load average 120 on the shared host (timing test, see test: Warm up and allow one late hold in the deinterlace 2x field order test #458). Everything else passed.
  • RED 20a5495: ci/test_zccache.py and ci/test_tier2_run.py fail. GREEN c8f4265: OK.

2. ci.toml (zackees/ci.yml schema 3, pin 1a970f0)

  • Declares platforms, suites, flows, the allowed workflows with their exact triggers, actions, secrets, and the Rust platform boundary (src/platform/**, src/ffi/**, which the repo Dylint enforces).
  • [cache.family] covers every cache key the workflows write: setup-soldr (registry, cook, build-cache, solo-toolchain, soldr-mini), setup-uv, zccache-, windows-ccache-, macOS-xcode-, flatpak-builder-, flatpak-ccache-, the AppImage cargo/apt/test-package caches and service-check-. Sizes come from the live entries. Two transitional families (tier2-ccache-linux-, ccache-appimage-) keep master's pre-merge keys alive until this merges; delete them afterwards. ci/test_ci_toml.py fails when a workflow cache key or trigger isn't declared.
  • Fixed rather than waived:
    • CACHE-033: scheduled.yaml paginates its cache listing.
    • REL-002: .gitignore covers target.soldr-*.
    • SEC-004: claim-bot and leaderboard pin actions/checkout by SHA.
    • GEN-008: the AppImage PR run moves into pr-pull.yaml, so pull_request is in one file. It is skipped unless the PR touches build-aux/appimage/** or appimage.yaml, and it is now in CI Gate's needs.
  • The other precheck findings are against workflows and scripts that predate ci.toml. They are [[exceptions]] grouped by rule with a reason, reported on every run, expiring 2027-04-15, and tracked in ci: Burn down the ci-lint precheck baseline in ci.toml #962.
  • Precheck is not fully green: 2 violations remain. GEN-001 (no .github/workflows/ci.yml) and GEN-004 (no fast job running Ruff + Pylint) have no path, so ci-lint can't except them. Clearing them needs pr-pull.yaml renamed to ci.yml and a new fast job. That contradicts "pr-pull.yaml is our PR entry point", so it's left for a maintainer decision.
  • RED 4b2a81b: ci/test_ci_toml.py fails and precheck stops at CT-002 "ci.toml not found". GREEN 696660e: tests OK; precheck reports 2 violations (above), 512 approved exceptions.

3. ci-pre.yml (cache janitor)

  • on: workflow_call only, permissions: contents: read, no workflow-level concurrency. The one cache-janitor job has concurrency: { group: cache-janitor, cancel-in-progress: false } and actions: write. It sparse-checks out ci.toml, checks out zackees/ci.yml at the SHA pin with persist-credentials: false, and runs python3 -P -m ci_lint cache janitor --repo . --default-branch master with nothing installed. ci/test_uv_run.py allowlists the file for GEN-018. GEN-014 to GEN-018 are clean.
  • pr-pull.yaml calls it as its first job and every other job needs: it. They run whatever its result (!cancelled()), and CI Gate leaves it out: GitHub cancels a pending sweep when a newer one queues in the group, and a fork PR's token can't delete.
  • Dry run (--dry-run, live caches, final ci.toml): it would delete 16 entries and none that master's workflows restore. 10 are CACHE-003 saves made on PR or feature-branch refs (Flatpak builder and ccache from text-freetype2: Move the platform defaults behind text-freetype2-platform-<os>.c #936/ci: Run the Tier 4 GPU acceleration check on the Rust libobs Ubuntu build (#940) #952 at 2.4 GB each, a feature branch's setup-soldr layers, and appimage: Build on a glibc 2.28 base and stop bundling glibc #927's AppImage caches), which only that ref can restore. 6 are CACHE-006 superseded entries (older compile and Tier 2 ccache keys and a 1 KB setup-uv entry). The newest entry of every family and shape that master restores is kept, and nothing is undeclared.
  • RED 2ef0297: ci/test_ci_pre.py fails. GREEN 22f732c: OK, ./lint OK (374 tests).

zackees added a commit that referenced this pull request Oct 16, 2026
)

ci/test_zccache.py and ci/test_tier2_run.py fail: the Linux CMake builds
(Tier 2, Ubuntu, AppImage, sanitizers) still launch through ccache.
zackees added a commit that referenced this pull request Oct 16, 2026
Tier 2 (Docker), the Ubuntu build (ubuntu-ci preset), the AppImage and the
sanitizers now use zccache 1.15.4 as CMAKE_C/CXX_COMPILER_LAUNCHER instead
of ccache. soldr 0.9.33 embeds that zccache for rustc but exposes no C
launcher, so rust/tools/linux-validate/install-zccache.sh installs the
pinned static release, SHA-256 checked. Cache keys are renamed
zccache-<job>-..., only master pushes save (unchanged), and a master push
drops a restored cache over 2 GiB since zccache has no age-based eviction.

Windows keeps ccache (zccache cannot stand in for cl.exe under the Visual
Studio generator), the Flatpak keeps flatpak-builder's SDK ccache, and
macOS uses Xcode's compilation cache.
@zackees
zackees force-pushed the ci/897-dylint-targets branch from b02c0ce to 22f732c Compare October 16, 2026 02:43
zackees added a commit that referenced this pull request Oct 16, 2026
…(Refs #957)

ci/test_ci_toml.py fails: there is no ci.toml, and `ci-lint precheck`
(forge-ci/ci.yml@1a970f0) stops at CT-002 "ci.toml not found".
zackees added a commit that referenced this pull request Oct 16, 2026
…ily (Refs #957)

ci.toml declares the platforms, suites, flows, the cache families the
janitor keeps (setup-soldr, setup-uv, zccache, the Windows ccache, Xcode,
Flatpak, AppImage and services caches, sized from the live entries), the
allowed workflows with their exact triggers, actions and secrets, and the
Rust platform boundary the repo Dylint enforces.

Fixed rather than waived: the sanitizer cache key (zccache-sanitize-),
scheduled.yaml's cache listing paginates (CACHE-033), .gitignore covers
setup-soldr's target.soldr-* side files (REL-002), claim-bot and leaderboard
pin actions/checkout by SHA (SEC-004), and the AppImage PR run moves into
pr-pull.yaml (GEN-008: pull_request in one workflow file), skipped unless
the PR touches build-aux/appimage or appimage.yaml.

The remaining precheck findings against pre-existing workflows are
[[exceptions]], each reported on every run, expiring 2027-04-15, burned down
in #962. GEN-001 (no ci.yml) and GEN-004 (no 'fast' Ruff/Pylint job) carry
no path, so they cannot be excepted: precheck reports 2 violations until
pr-pull.yaml is renamed ci.yml and a fast job exists.
zackees added a commit that referenced this pull request Oct 16, 2026
…ob (Refs #957)

ci/test_ci_pre.py fails: there is no ci-pre.yml. It pins the zackees/ci.yml
shape (workflow_call only, contents: read, no workflow concurrency, a
cache-janitor job on the non-cancelling cache-janitor group with
actions: write, ci_lint at the SHA pin, stdlib python3) and pr-pull.yaml
calling it first, with every other job after it. CI Gate leaves it out
(test_merge_queue.py), since a sweep may be cancelled by its group.
zackees added a commit that referenced this pull request Oct 16, 2026
…Refs #957)

ci-pre.yml follows zackees/ci.yml's shape: workflow_call only, contents:
read, no workflow concurrency, and one cache-janitor job (actions: write,
group cache-janitor, cancel-in-progress false) that checks out ci_lint at
the SHA pin without credentials and runs
python3 -P -m ci_lint cache janitor --repo . --default-branch master
with nothing installed (ci/test_uv_run.py allowlists it for GEN-018).

pr-pull.yaml calls it as its first job; every other job needs it and runs
whatever its result (!cancelled()), and CI Gate leaves it out: GitHub may
cancel a pending sweep in the cache-janitor group, and a fork PR's token
cannot delete.

A dry run against the live caches deletes nothing a master workflow
restores: superseded entries, saves made on PR and feature-branch refs, and
soldr 0.9.31 cook layers. ci.toml keeps master's tier2-ccache-linux- entry
as a transitional family until this change merges.
zackees added a commit that referenced this pull request Oct 16, 2026
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Renamed pr-pull.yaml → ci.yml (15c0c7f). It's the zackees/ci.yml PR entry point, so GEN-001 is cleared: precheck now reports 1 violation instead of 2. The workflow display name stays Pull, and the required check CI Gate ✅ is unchanged. ci/lane_proof.py now trusts ci.yml, so lane proofs from older runs won't be reused once. GEN-004 (a fast Ruff/Pylint job) stays in #962: Ruff flags existing code across the repo's 96 Python files and Pylint finds real errors in two ci/ tests, a cleanup that doesn't belong in this PR.

Local act2 run (bosn with ubuntu-26.04, forge-ci/bosn#649): Cache Janitor passes setup and both checkouts, then stops at the sweep on GITHUB_TOKEN and GITHUB_REPOSITORY are required, as expected because bosn passes no GitHub token. The real sweep is covered by GitHub CI.

@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Tried rebasing onto master: 9a3571f (cross Dylint split) conflicts in ci/local_gate.py, and the branch also renames pr-pull.yaml → ci.yml and adds ci-pre.yml (a new workflow file needs explicit sign-off per AGENTS.md). Master changed the same files today (#1058/#1061/#1077/#1089/#1093/#1095/#1098). Suggest splitting the Dylint target split (53a6049 + 9a3571f) into its own small PR off master; it's the CI-saving part and would rebase on its own. Not pushing anything here.

@zackees

zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

The Dylint target split (#955, commits 53a6049 and 9a3571f) landed separately as #1148.

The rest of this PR is on hold:

  • zccache as the Linux CI compiler launcher: zccache stays opt-in until soldr test: share fade and guarded host native compatibility graph #3815 (daemon hangs) is fixed.
  • pr-pull.yaml → ci.yml and ci-pre.yml: these predate the current Tier 2 harness (docker-task.sh, the read-only /ro checkout, the per-checkout lock), so they need a rebase onto it before they can merge.

)

ci/test_zccache.py and ci/test_tier2_run.py fail: the Linux CMake builds
(Tier 2, Ubuntu, AppImage, sanitizers) still launch through ccache.
Tier 2 (Docker), the Ubuntu build (ubuntu-ci preset), the AppImage and the
sanitizers now use zccache 1.15.4 as CMAKE_C/CXX_COMPILER_LAUNCHER instead
of ccache. soldr 0.9.33 embeds that zccache for rustc but exposes no C
launcher, so rust/tools/linux-validate/install-zccache.sh installs the
pinned static release, SHA-256 checked. Cache keys are renamed
zccache-<job>-..., only master pushes save (unchanged), and a master push
drops a restored cache over 2 GiB since zccache has no age-based eviction.

Windows keeps ccache (zccache cannot stand in for cl.exe under the Visual
Studio generator), the Flatpak keeps flatpak-builder's SDK ccache, and
macOS uses Xcode's compilation cache.
…(Refs #957)

ci/test_ci_toml.py fails: there is no ci.toml, and `ci-lint precheck`
(forge-ci/ci.yml@1a970f0) stops at CT-002 "ci.toml not found".
…ily (Refs #957)

ci.toml declares the platforms, suites, flows, the cache families the
janitor keeps (setup-soldr, setup-uv, zccache, the Windows ccache, Xcode,
Flatpak, AppImage and services caches, sized from the live entries), the
allowed workflows with their exact triggers, actions and secrets, and the
Rust platform boundary the repo Dylint enforces.

Fixed rather than waived: the sanitizer cache key (zccache-sanitize-),
scheduled.yaml's cache listing paginates (CACHE-033), .gitignore covers
setup-soldr's target.soldr-* side files (REL-002), claim-bot and leaderboard
pin actions/checkout by SHA (SEC-004), and the AppImage PR run moves into
pr-pull.yaml (GEN-008: pull_request in one workflow file), skipped unless
the PR touches build-aux/appimage or appimage.yaml.

The remaining precheck findings against pre-existing workflows are
[[exceptions]], each reported on every run, expiring 2027-04-15, burned down
in #962. GEN-001 (no ci.yml) and GEN-004 (no 'fast' Ruff/Pylint job) carry
no path, so they cannot be excepted: precheck reports 2 violations until
pr-pull.yaml is renamed ci.yml and a fast job exists.
…ob (Refs #957)

ci/test_ci_pre.py fails: there is no ci-pre.yml. It pins the zackees/ci.yml
shape (workflow_call only, contents: read, no workflow concurrency, a
cache-janitor job on the non-cancelling cache-janitor group with
actions: write, ci_lint at the SHA pin, stdlib python3) and pr-pull.yaml
calling it first, with every other job after it. CI Gate leaves it out
(test_merge_queue.py), since a sweep may be cancelled by its group.
…Refs #957)

ci-pre.yml follows zackees/ci.yml's shape: workflow_call only, contents:
read, no workflow concurrency, and one cache-janitor job (actions: write,
group cache-janitor, cancel-in-progress false) that checks out ci_lint at
the SHA pin without credentials and runs
python3 -P -m ci_lint cache janitor --repo . --default-branch master
with nothing installed (ci/test_uv_run.py allowlists it for GEN-018).

pr-pull.yaml calls it as its first job; every other job needs it and runs
whatever its result (!cancelled()), and CI Gate leaves it out: GitHub may
cancel a pending sweep in the cache-janitor group, and a fork PR's token
cannot delete.

A dry run against the live caches deletes nothing a master workflow
restores: superseded entries, saves made on PR and feature-branch refs, and
soldr 0.9.31 cook layers. ci.toml keeps master's tier2-ccache-linux- entry
as a transitional family until this change merges.
Rebased onto the Tier 2 harness master has now (docker-task.sh, the
read-only /ro checkout, the build stage and shards):
- the Tier 2 build job installs the pinned zccache and keys its cache
  zccache-tier2-linux-both-*; the manylinux AppImage image and its bosn
  stack use zccache too (the ubuntu-ci preset launches through it);
- ci-pre stays the first job; cancel-superseded and validate-data wait on
  it like the rest;
- ci.toml names the cache families master added since (Tier 2 apt and
  ctest costs, per-target ccache, Windows/macOS Tier 2, Qt, libs, vcpkg);
- the remaining pr-pull.yaml references point at ci.yml;
- test_zccache.py's cache-step parser stops at each step (its \\s+ ran into
  the next step and hid every later key).
@zackees
zackees marked this pull request as ready for review October 17, 2026 02:35
@zackees
zackees force-pushed the ci/897-dylint-targets branch from 15c0c7f to 1204311 Compare October 17, 2026 02:35
@zackees
zackees merged commit 4648dac into master Oct 17, 2026
zackees added a commit that referenced this pull request Oct 17, 2026
)

ci/test_zccache.py and ci/test_tier2_run.py fail: the Linux CMake builds
(Tier 2, Ubuntu, AppImage, sanitizers) still launch through ccache.
zackees added a commit that referenced this pull request Oct 17, 2026
Tier 2 (Docker), the Ubuntu build (ubuntu-ci preset), the AppImage and the
sanitizers now use zccache 1.15.4 as CMAKE_C/CXX_COMPILER_LAUNCHER instead
of ccache. soldr 0.9.33 embeds that zccache for rustc but exposes no C
launcher, so rust/tools/linux-validate/install-zccache.sh installs the
pinned static release, SHA-256 checked. Cache keys are renamed
zccache-<job>-..., only master pushes save (unchanged), and a master push
drops a restored cache over 2 GiB since zccache has no age-based eviction.

Windows keeps ccache (zccache cannot stand in for cl.exe under the Visual
Studio generator), the Flatpak keeps flatpak-builder's SDK ccache, and
macOS uses Xcode's compilation cache.
zackees added a commit that referenced this pull request Oct 17, 2026
…(Refs #957)

ci/test_ci_toml.py fails: there is no ci.toml, and `ci-lint precheck`
(forge-ci/ci.yml@1a970f0) stops at CT-002 "ci.toml not found".
zackees added a commit that referenced this pull request Oct 17, 2026
…ily (Refs #957)

ci.toml declares the platforms, suites, flows, the cache families the
janitor keeps (setup-soldr, setup-uv, zccache, the Windows ccache, Xcode,
Flatpak, AppImage and services caches, sized from the live entries), the
allowed workflows with their exact triggers, actions and secrets, and the
Rust platform boundary the repo Dylint enforces.

Fixed rather than waived: the sanitizer cache key (zccache-sanitize-),
scheduled.yaml's cache listing paginates (CACHE-033), .gitignore covers
setup-soldr's target.soldr-* side files (REL-002), claim-bot and leaderboard
pin actions/checkout by SHA (SEC-004), and the AppImage PR run moves into
pr-pull.yaml (GEN-008: pull_request in one workflow file), skipped unless
the PR touches build-aux/appimage or appimage.yaml.

The remaining precheck findings against pre-existing workflows are
[[exceptions]], each reported on every run, expiring 2027-04-15, burned down
in #962. GEN-001 (no ci.yml) and GEN-004 (no 'fast' Ruff/Pylint job) carry
no path, so they cannot be excepted: precheck reports 2 violations until
pr-pull.yaml is renamed ci.yml and a fast job exists.
zackees added a commit that referenced this pull request Oct 17, 2026
…ob (Refs #957)

ci/test_ci_pre.py fails: there is no ci-pre.yml. It pins the zackees/ci.yml
shape (workflow_call only, contents: read, no workflow concurrency, a
cache-janitor job on the non-cancelling cache-janitor group with
actions: write, ci_lint at the SHA pin, stdlib python3) and pr-pull.yaml
calling it first, with every other job after it. CI Gate leaves it out
(test_merge_queue.py), since a sweep may be cancelled by its group.
zackees added a commit that referenced this pull request Oct 17, 2026
…Refs #957)

ci-pre.yml follows zackees/ci.yml's shape: workflow_call only, contents:
read, no workflow concurrency, and one cache-janitor job (actions: write,
group cache-janitor, cancel-in-progress false) that checks out ci_lint at
the SHA pin without credentials and runs
python3 -P -m ci_lint cache janitor --repo . --default-branch master
with nothing installed (ci/test_uv_run.py allowlists it for GEN-018).

pr-pull.yaml calls it as its first job; every other job needs it and runs
whatever its result (!cancelled()), and CI Gate leaves it out: GitHub may
cancel a pending sweep in the cache-janitor group, and a fork PR's token
cannot delete.

A dry run against the live caches deletes nothing a master workflow
restores: superseded entries, saves made on PR and feature-branch refs, and
soldr 0.9.31 cook layers. ci.toml keeps master's tier2-ccache-linux- entry
as a transitional family until this change merges.
zackees added a commit that referenced this pull request Oct 17, 2026
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 17, 2026
…RED, Refs obs-rust#1183)

ci/test_ccache_launcher_installed.py fails for rust-tests-linux / Build
Touched Linux Targets: it configures a ccache launcher, but obs-rust#957 removed
ccache from apt-packages.txt.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 17, 2026
…ixes obs-rust#1183)

Build Touched Linux Targets configures a ccache launcher, but obs-rust#957 removed
ccache from apt-packages.txt, so every PR touching a plugin or shared target
failed with "ccache: not found". Install it in that step.
test_ccache_launcher_installed: OK.
@zackees
zackees deleted the ci/897-dylint-targets branch October 26, 2026 15:42
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.

ci: Cross Dylint targets: PR gate win-x64/mac-arm64/linux-x64; release gate adds win-arm64, mac-x64, linux-arm64

1 participant