Repository navigation
ci: Split cross Dylint targets between the PR gate and the release gate - #957
Conversation
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.
b02c0ce to
22f732c
Compare
…(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.
|
Renamed Local act2 run (bosn with ubuntu-26.04, forge-ci/bosn#649): |
|
Tried rebasing onto master: 9a3571f (cross Dylint split) conflicts in |
|
The Dylint target split (#955, commits 53a6049 and 9a3571f) landed separately as #1148. The rest of this PR is on hold:
|
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).
15c0c7f to
1204311
Compare
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.
…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.
…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.
Fixes #955. Refs #897, #700, #962.
crosslane lints and links x86_64-pc-windows-msvc and aarch64-apple-darwin. x86_64-unknown-linux-gnu is the host, covered by thelintlane. x86_64-apple-darwin moves out of the PR gate (also dropped fromci-attestations.yml).cross-releaselane runs clippy and Dylint for aarch64-pc-windows-msvc, x86_64-apple-darwin and aarch64-unknown-linux-gnu. New jobrust-cross-lint-releaseruns only whenfull(release gate, ci-full, schedule). It's excluded from the local gate's default lane list.ci/test_local_gate.pypins both target sets (FAILED (failures=1, errors=1)). GREEN: tests OK,./lintok.1. ccache → zccache for the Linux CMake builds
CMAKE_C_COMPILER_LAUNCHER/CMAKE_CXX_COMPILER_LAUNCHERfor Tier 2 (Docker), the Ubuntu build (ubuntu-cipreset), the AppImage and the sanitizers. soldr 0.9.33 embeds zccache 1.15.4 for rustc but exposes no C launcher (soldr zccacheonly has cache-root/session-end/stop), sorust/tools/linux-validate/install-zccache.shinstalls the static musl release, SHA-256 checked. The Tier 2 image runs it at build time.zccache-<job>-…, for examplezccache-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.scheduled.yaml's stale-cache cleanup matcheszccache-keys.cl.exeunder the Visual Studio generator (MSBuildCLToolExe). 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.rust/tools/linux-validate/run.shbuilt OFF and ON through zccache in Docker (546 MB cache, 251 tests each).test_deinterlace_2x_field_orderfailed 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.ci/test_zccache.pyandci/test_tier2_run.pyfail. GREEN c8f4265: OK.2.
ci.toml(zackees/ci.yml schema 3, pin 1a970f0)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 andservice-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.pyfails when a workflow cache key or trigger isn't declared.scheduled.yamlpaginates its cache listing..gitignorecoverstarget.soldr-*.actions/checkoutby SHA.pr-pull.yaml, sopull_requestis in one file. It is skipped unless the PR touchesbuild-aux/appimage/**orappimage.yaml, and it is now in CI Gate's needs.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..github/workflows/ci.yml) and GEN-004 (nofastjob running Ruff + Pylint) have no path, so ci-lint can't except them. Clearing them needspr-pull.yamlrenamed toci.ymland a newfastjob. That contradicts "pr-pull.yaml is our PR entry point", so it's left for a maintainer decision.ci/test_ci_toml.pyfails 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_callonly,permissions: contents: read, no workflow-level concurrency. The onecache-janitorjob hasconcurrency: { group: cache-janitor, cancel-in-progress: false }andactions: write. It sparse-checks outci.toml, checks out zackees/ci.yml at the SHA pin withpersist-credentials: false, and runspython3 -P -m ci_lint cache janitor --repo . --default-branch masterwith nothing installed.ci/test_uv_run.pyallowlists the file for GEN-018. GEN-014 to GEN-018 are clean.pr-pull.yamlcalls it as its first job and every other jobneeds: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, live caches, finalci.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.ci/test_ci_pre.pyfails. GREEN 22f732c: OK,./lintOK (374 tests).