What CI runs#

What each workflow runs, when it runs, and where to look when one is red. The family’s trigger rules, tokens, concurrency groups and release mechanism are the hub’s: branch-and-release-strategy.md and ci-build-triggers.md. Reading and fixing CI status from a shell with gh: github-cli-pipeline-monitoring.md.

Lanes and triggers#

A push or PR runs Linux x64 and the gates. The other four platform lanes run on request. A commit message with [ci windows] runs both Windows lanes, [ci arm64] both arm64 ones and [ci riscv64] the riscv64 lane (on-request.yml). A lane’s badge shows only its runs started by hand. Linux x64 skips a docs-only commit through paths-ignore ('**.md', docs/**).

Lane

Workflow

Trigger

Lint gates (lint + powershell-lint)

lint-gates.yml: lint is one uses: of the hub’s reusable lane, with ratchets: true

always, docs-only commits included; no paths-ignore

Submodule pins

submodule-pins.yml: one uses: of the hub’s lane

always; no paths-ignore

Security audit (osv-scanner over uv.lock; a new HIGH or CRITICAL advisory fails a push)

security-audit.yml: one uses: of the hub’s lane

push and PR on main/develop, Mondays 07:50 UTC (report only), by hand

Code quality measurements (quality-report.sh against the newest develop record; a regression is reported, an incomplete run fails)

code-quality-report.yml, with quality-report: true

every push and PR

Mutation gates, Python static analysis, PowerShell quality, Renovate entrypoint

mutation-gates.yml, python-static.yml, powershell-quality.yml, renovate-entrypoint.yml: one uses: each of the hub’s lane

push and PR

Linux x86_64 (build, test, coverage, docs)

linux-x64.yml → reusable-linux.yml

push to develop minus docs-only commits, PR, by hand

Linux x86_64 GUI input sweep (gui-sweep: the debug build, then only GuiInputSweepNeverCrashesOrLosesTheDevice on llvmpipe)

linux-x64.yml

Sundays 03:17 UTC, or by hand with gui-sweep; skips the lane’s push jobs

Linux x86_64 GPU-assisted validation (gpu-av: the debug build, then the goldens of scripts/linux/gpu-av-goldens.txt on llvmpipe, GPU-AV on)

linux-x64.yml

Sundays 03:17 UTC, or by hand with gpu-av; skips the lane’s push jobs

Windows x64 (below)

windows-x64.yml → the hub’s container-ci-windows.yml

on request or by hand

Linux ARM64 (no docs site: the docs steps need runner == 'ubuntu-26.04')

linux-arm64.yml → reusable-linux.yml

on request or by hand

Linux riscv64 (below)

linux-riscv64.yml → the hub’s container-ci-riscv64.yml

on request or by hand; the GPU shards on Saturdays and on dispatch with gpu-tests

Windows ARM64 (below)

windows-arm64-cross.yml → the hub’s container-ci-windows.yml

on request or by hand

  • The lint gates and the pin check are workflows of their own, not jobs in a build lane. As jobs they inherited their host’s paths-ignore, so a docs-only push got no secret scan and a gitlink moved beside a docs page got no pin check.

  • To re-run a lane at the branch tip without a commit, dispatch its workflow (workflow_dispatch). That is also how a docs-only fix that a suite pins gets tested, since paths-ignore skips it.

  • Workflow file and display names follow the family convention (adopting § Workflow file names). Keep the job ids when renaming a workflow: branch protection matches the check-run names.

  • No lane has a hardware GPU. The Linux clang-tests job (both arches) runs the GPU suites and synchronization validation on llvmpipe, both Windows lanes on lavapipe on the runner (gpu-golden-testing.md).

The release#

Every push to main releases VERSION.txt’s version once every lane is green (the hub’s release). release.yml calls the hub’s release-publish.yml twice: the version check before the lanes, and the job that collects every lane’s packages with the hub’s collect-release-assets.sh and tags. Its collect: block holds this repo’s options. Raise VERSION.txt and give it a CHANGELOG.md section first. Prove the release on develop without publishing:

gh workflow run release.yml --ref develop -f dry-run=true

The job bodies are the hub’s, at @develop#

The workflows here are mostly wiring. The steps come from ANTfrastructure’s composite actions (prepare-linux-ci-host, run-in-linux-container, compiler-cache-restore, compiler-cache-save, clean-host-package-check, requested-lanes, run-pester-suite, retry-disk-refusal) and reusable workflows (lint-gates.yml, submodule-pins.yml, container-ci-windows.yml, container-ci-riscv64.yml, build-docs.yml, security-audit.yml, code-quality-report.yml and others), resolved at its develop branch; main lags it.

  • There is no pin: a push to the hub’s develop changes this repo’s CI on the next run. That is why a change spanning both repos pushes ANTfrastructure first (AGENTS.md).

  • A lane failing in a step whose uses: points at ANTfrastructure is defined there: read that action or workflow.

  • retry-disk-refusal.yml re-runs a job of the Linux x64, on-request or release run that prepare-linux-ci-host refused for disk, and nothing else (the action).

The Linux jobs#

linux-x64.yml and linux-arm64.yml both call reusable-linux.yml, so a fix to one lane reaches the other. Every job pays 6-9 minutes of host prologue (disk cleanup and the image pull) before it builds, so each architecture runs six jobs:

  • clang-tests: the clang debug build and ctest. The GPU suites run on llvmpipe under Xvfb (run-ctest.sh --virtual-display), where a skipped GPU test fails the run and so does a test that logs SYNC-HAZARD or VUID- (the hub’s --fail-on-log-pattern). The GUI input sweep is left out. It is also the only build of Src/KomputePlayground (below).

  • gcc: the GCC build, its tests and coverage (Codecov’s gcc flag).

  • sanitizers: ASan with the fuzz seeds, then TSan. It empties the compiler-cache directory between the halves, so X64-clang-asan and X64-clang-tsan stay apart.

  • static-analysis: the clang-format check (run-static-analysis-format.sh --only-format-check), one linux-debug-clang build for coverage (Codecov’s clang flag) and the analyzers, the renderer pixel comparison, then the OxidANT tests and lints.

  • profiling: the clang profiling build and its benchmarks, then the gcc ones.

  • release: the release build and packages; the hub’s verify-elf-hardening.sh checks the .deb’s usr/lib/beschleunigerballett/BeschleunigerBallett. On x64 it also builds the docs site and the wasm demo (below).

Each part after the first runs whatever the one before did (if: !cancelled()) and checks its own build’s outcome, so a red step still names the check that failed. Dispatching linux-x64.yml or linux-arm64.yml with split-jobs runs each merged job as a matrix of its parts (asan/tsan, format/analysis/rust, clang/gcc, and on x64 release/docs) through the same steps. A push runs the merged jobs, whose matrix is the single part all.

  • The two GCC builds pass --mb-per-job 6500, two jobs on a 16 GB runner: at the default 4000 they ran three and the runner was killed in the engine’s module units.

  • compare-renderer-pixels.sh --require-frames grades both renderers’ Dinosaurs frames on llvmpipe. llvmpipe is always there, so a failed capture or a missing frame fails the step (the two renderers’ frames).

  • The arm64 GNU jobs stopping at configure with Could NOT find X11 (missing: X11_X11_LIB) is an image defect, not this repo’s: the arm64 image’s GCC prints no multiarch triplet, so CMake never searches /usr/lib/aarch64-linux-gnu (the hub’s backlog CON8).

Rust and Kompute in the Linux jobs#

  • Tests. The static-analysis job runs scripts/linux/run-cargo-tests.sh over the whole OxidANT workspace on both arches. The hub’s cargo_test.sh runs cargo test --all, which overrides a -p. It runs under Xvfb with KATAGLYPHIS_REQUIRE_GPU=1, as OxidANT’s own lane does, so a GPU test that finds no lavapipe fails instead of skipping. The variable’s readers are the renderer’s and kataglyphis_gui’s headless devices and the CLI’s GUI test, which also needs KATAGLYPHIS_REQUIRE_GST.

  • arm64 vector width. The script sets LP_NATIVE_VECTOR_WIDTH=128 on arm64. The image’s 256 serves this repo’s BVH builds, but LLVM’s AArch64 JIT aborted OxidANT’s renderer tests on it about one run in five (LLVM ERROR: Do not know how to split this operator's operand!).

  • Lints. scripts/linux/run-cargo-lints.sh runs the hub’s cargo_fmt_clippy.sh: cargo fmt --all --check plus cargo clippy --all-targets -- -D warnings, at OxidANT’s own scope (--workspace --locked; OxidANT has no Cargo features). A pin OxidANT’s lane passed therefore passes here, and an edit to any crate from this tree gets a test and lint signal before the submodule is pushed.

  • Kompute. clang-tests configures with -DKATAGLYPHIS_BUILD_KOMPUTE_PLAYGROUND=ON and runs KomputePlayground.ArrayMultiply on llvmpipe with the other suites. Every other build leaves the option OFF, so none of them fetches Kompute’s fmt. The playground exits 1 on any validation warning or error, sync hazards included: Kompute’s own VK_EXT_debug_report callback logs them at debug level without the id the SYNC-HAZARD|VUID- scan needs. Kompute comes from the third_party/KOMPUTE submodule and keeps exceptions on: its headers throw, and the playground links neither myproject_options nor its -fno-exceptions. The SDK’s glslangValidator compiles its GLSL shader into the build tree.

The Windows x64 lane#

windows-x64.yml is a thin caller of the hub’s container-ci-windows.yml. Its container half is scripts/windows/Invoke-WindowsLane.ps1, which a local container run executes too:

  • Build-Windows.ps1 -Configurations clangcl-debug,clangcl-profile,clangcl-release, with the clang-format gate and the warning census (-WarningCensus).

  • The CPU-only suites (the GPU suites excluded by name), compileTestSuite.exe, the perf suite (perfTestSuite.exe from the repo root, as ctest’s perf_suite_runs), every fuzz target’s seed corpus (ten minutes each), and the renderer timing and pixel comparisons in validation-only mode. A comparison exits 2 when it found nothing to check: a warning on a GPU-less runner, never a pass.

  • Every check after the build runs, and the lane fails if any did.

  • -StageTests leaves the Release commit suite in dist/windows-x64-tests. The hub’s host-command runs its GPU suites on lavapipe on the runner host after the container exits (Invoke-LavapipeTests.ps1, about an hour on 4 vCPUs), with KATAGLYPHIS_VULKAN_VALIDATION set and the layer staged beside the suite.

  • The WebDAV credentials and MSIX_CERT_PASSWORD reach the container through the hub’s CONTAINER_SECRET_ENV secret, as an --env-file; Build-Windows.ps1 reads them from the environment. KATAGLYPHIS_CI_HAS_GPU comes from the repository variable through container-env.

  • The product is dist/windows-x64: the portable bundle with its DLL closure (the hub’s New-PortableBundle over Get-ProductDllSearchPath), the MSI, ZIP and NSIS installer, and the MSIX, which packs that bundle. It uploads as BeschleunigerBallett-windows-x64.

  • BuildIntegrity’s three Windows-list tests read the lane script, not the workflow. The job’s check-run name is Build, test, package (x64) / build (amd64).

  • BM_RecordCommands* needs a display and a Vulkan device, so on every lane it reports skipped through SkipWithMessage, which the perf gate does not count; a benchmark reporting error_occurred fails the lane.

  • The pester-tests job runs scripts/windows/tests/ with a pinned Pester 6.2.0, plus the hub’s Repo.GeneratedArtifacts.Tests.ps1 over the pathspecs in scripts/windows/generated-artifacts.txt. A wildcard ending in / matches nothing in git: write **/__pycache__/*. Compare-PerfBaseline.Tests.ps1 allocates its fixture with the hub’s New-TestDir and releases it with Remove-TestDir in AfterAll; keep the cleanup suite-scoped.

  • The hub’s own Pester suites (windows/scripts/tests/Invoke-Tests.ps1) fail without Pester >= 5: Install-Module Pester -MinimumVersion 5.7 -Scope CurrentUser -Force -SkipPublisherCheck. The hub’s CI runs them too, so a break there shows without this repo’s Windows lane.

Both Windows callers check out direct submodules only: the build reads OxidANT’s checked-in sources and needs none of ANTfrastructure’s cyclic documentation submodules.

The Windows ARM64 lane#

The lane cross-builds on an amd64 runner, then runs on windows-11-arm. The image, the arch gate over dist/windows-arm64, the upload and the run job are the hub’s (windows-cross-builds.md § Consumer cross lanes).

Build-Windows.ps1 -TargetArch arm64 -Configurations clangcl-release,clangcl-profile,clangcl-debug -SkipPerfTests runs in the family image’s arm64 bundle (:winarm64). On a cross build it:

  • refuses every other configuration, since the MSVC presets pin x64;

  • builds clangcl-profile only with -SkipPerfTests (its benchmarks cannot run on the amd64 host), into build-clangcl-profile-arm64, for -StageTests to stage perfTestSuite.exe;

  • builds clangcl-debug into build-clangcl-debug-arm64, for -StageTests to stage the Debug (ASan) suite, and Release into build-clangcl-release-arm64;

  • configures with the hub’s Get-CrossConfigureArgs -Corrosion -Vulkan, so Corrosion targets aarch64 and FindVulkan takes Lib-ARM64/vulkan-1.lib instead of the x64 Lib;

  • writes dist/windows-arm64: the portable bundle (the install tree plus its DLL closure), the aarch64 MSI and ZIP, and the arm64 MSIX (manifest token __MSIX_ARCH__).

On windows-11-arm the commit suite runs whole, in two halves:

  • Staged tests. -StageTests builds the Release commit suite with KATAGLYPHIS_RELEASE_COMMIT_TESTS and stages it in dist\windows-arm64-tests with compiled and local Slang sources, OxidANT’s pinned sources at their canonical third_party path, and test models (Dinosaurs included, which two ObjParseUnit tests parse). The hub’s run job runs tests.json through its Invoke-StagedTests.ps1: the CPU suites (the commit suite minus the GPU suites and the source-reading BuildIntegrity.* checks), perfTestSuite.exe as an exitcode entry, and the Debug (ASan) suite. Its /MDd CRT and ucrtbased.dll come from the runner’s own VS and SDK, since neither is redistributable. Every gtest entry carries an empty allowed_skips, so a skipped test fails the run, named.

  • GPU suites. This repo’s gpu-suites job checks the repo out, puts the staged shaders in it and runs the Release suite’s GPU suites on lavapipe plus the source-reading BuildIntegrity.* checks through Invoke-LavapipeTests.ps1. It is a job of its own because the hub’s stops at 30 minutes. Keep fresh per-test JSON and stdout/stderr under the ignored logs/lavapipe/; the lane uploads them on failure with any Windows crash dump (only when one exists) and fails the upload when the evidence files are missing.

  • Shader staging. The cross build snapshots pinned OxidANT WGSL before compiling, clears mapped combined outputs, compares every new output to that snapshot, and stages them with both source trees. The ARM host compares all mapped outputs and sources by content, because downloaded artifact and checkout mtimes are unrelated. The local single-tree mtime guard stays active.

  • Loader. The run job borrows the Khronos loader from LunarG’s arm64 runtime, pinned by hash, and calls BeschleunigerBallett.exe --version and --check_resources: the engine imports vulkan-1.dll, which a device gets from its GPU driver and the GPU-less runner lacks. The bundle never ships the loader.

  • The hub’s Hardening.cmake links /CETCOMPAT on x64 only.

  • The image’s runtime bundle as a whole (GStreamer, WebRTC, HailoRT, the Python wheels) is the hub’s to gate, in its own windows-arm64.yml. An image defect the renderer never touches cannot turn this lane red.

The riscv64 lane#

Cross-built on amd64, tested under QEMU (riscv64-cross-test-lanes.md). linux-riscv64.yml is one uses: of the hub’s container-ci-riscv64.yml. Its container half, scripts/linux/run-riscv64-tests.sh, calls riscv64_cross_env, precompiles the Slang shaders on the host, builds the linux-riscv64-cross preset (Debug, Rust_CARGO_TARGET=riscv64gc-unknown-linux-gnu) and runs ctest.

  • What a request runs: the CPU tests, against the image’s riscv64 Vulkan loader, GLFW and Rust cxx bridge (about 32 min end to end). The GUI input sweep is excluded everywhere and two goldens are disabled.

  • No sanitizers, coverage or cargo suite. The cross clang has no riscv64 compiler-rt. That is why VulkanEngineCore’s hard-wired Linux Debug -fsanitize=address skips a cross build (CMAKE_CROSSCOMPILING) and the fuzz targets, which need ASan, skip themselves. OxidANT’s own riscv64 lane tests its crates.

  • The Vulkan hook is off. source_vulkan_env would source the x86_64 SDK’s setup-env.sh and undo riscv64_cross_env’s /opt/vulkan/active paths.

The GPU shards#

Under QEMU a raster golden costs 11-24x its x64 time, a cloud golden 22-28x and a path-traced one 32-200x. One path-traced frame on the shadow rig takes up to about 190 s, and about 360 s on the slowest runners. Serial on one 4-vCPU runner the GPU suites would take about a day, so they run weekly, in shards, never on a push.

  • Triggers. A schedule: (Saturdays 01:43 UTC) or a dispatch with gpu-tests skips the CPU job and fans out one job per shard. A dispatch’s only-shards (comma-separated names) keeps only those shards; a name off the list fails before any shard starts.

  • The list has one home: run-riscv64-tests.sh --list-gpu-shards prints the matrix, and RISCV64_GPU_SHARD picks the shard inside the container. An unknown shard name stops before the build, and ctest --no-tests=error fails a shard whose filter matches nothing. RISCV64_GPU_SHARD=all is the serial lane (CPU suites, then every GPU test), for a local host.

  • The shards:

    • raster-1 to raster-4: every GPU test in no other shard, every fourth by ctest number in each (-I k,,4, which intersects with the filter); 90 min per test.

    • clouds: the cloud goldens; 150 min per test.

    • one solo shard each, 300 min, for the heavy path-traced tests (eight of the ten GoldenRender.PathTracing*, PathTracedMaskCardShowsItsCutout, PathTracedMetalCardReflectsTheSkyAndTheSun, AddedModelAppearsInPathTracing, ReloadedModelIsVisibleInPathTracing) and for RaytracingFrameSkipsTheRasterPass, the costliest ray-traced one.

  • How a shard runs. Integration. and GoldenRender. run serially (-j1) under xvfb-run with the libkata_fp16_helpers.so LD_PRELOAD, built from scripts/riscv64/fp16_helpers.c: riscv64 glibc lacks the fp16 conversion helpers llvmpipe’s ORC JIT calls. The shard re-runs the script’s --gpu-ctest branch, which runs ctest through the hub’s ctest_run_main with --fail-on-skipped "${CTEST_GPU_SUITES}", so a skipped GPU test fails the shard (BuildIntegrity.LinuxGpuRunsFailOnASkippedGpuTest). A shard log’s cannot be preloaded lines are noise from that step’s x86_64 tools; the riscv64 test loads the shim.

  • Build and cache. Each shard cross-builds for itself (23-33 min before ctest), because the hub’s lane takes no build artifact. The shards restore the push lane’s riscv64-clang-debug cache and, off a push, never save it. The CPU and GPU runs sit in different concurrency groups, so a push cannot cancel the weekly run.

  • Sizing a ceiling. A ceiling has to assume about 190 s a path-traced frame, so 300 min hold about 90 frames. The runner decides where in the range a run lands: a frame took 0.23-0.27 times that runner’s own ninja build. A golden that path-traces many frames needs a solo shard or a light variant.

The light variant#

Four path-traced goldens render too many frames for the slowest runners, so on riscv64 they accumulate a shorter history and keep their thresholds. run-riscv64-tests.sh exports KATAGLYPHIS_PT_GOLDEN_VARIANT=light for the GPU suites and runs ctest with -V; each of the four logs the variant it ran, and no other lane sets it.

Shard

Frames, full → light

PathTracedMaskCardShowsItsCutout

133 → 21

AddedModelAppearsInPathTracing

133 → 21

PathTracingPassesTheWhiteFurnaceTest

86 → 46 in the rig, plus 41 → 25 lone-card frames at 4 spp, and one-segment placement frames (2 in the rig, 4 on the card)

PathTracingAntiAliasesGeometricEdges

87 → 57

The measurements behind each depth, with a negative control per test: gpu-golden-testing.md § The riscv64 light variant.

The docs site#

The x64 release job builds it, and the hub’s build-docs.yml checks and publishes it. The job generates the Doxygen XML, runs scripts/linux/docs-build-web.sh and the wasm budget, and uploads docs/build/html/ as the bb-docs-site artifact. linux-x64.yml’s docs job (needs: build-x64, if: !cancelled(), so a red test elsewhere does not hold the site back) calls build-docs.yml with artifact: bb-docs-site and publish-timeout-minutes: 90: the demo’s large Colosseum-web.glb does not finish in the default 30, and a cut-off upload saves no sync state.

  • The hub adds its .htaccess and 404 page, and a dead internal link or anchor fails the job (verify_site_links.py).

  • The upload runs only on a push to develop or main, never on a pull request or a dispatch. The SERVER, USERNAME and PW secrets map onto its FTP_*.

  • release.yml downloads every artifact of its run; the hub’s collector skips both uploads of the site (*-docs-site, docs-site-*).

  • Since the site lives in linux-x64.yml, a docs-only commit publishes with the next code push, and a newer push to develop can cancel a publish in flight. The owner accepted both.

The workflow and its inputs: docs-sites.md. Building the site and the WebGPU demo locally: documentation_workflow.md.

Lint gates#

lint-gates.yml pulls no image and builds nothing (about 2 min). It catches what the rest of CI cannot: yaml.safe_load proves a workflow is valid YAML, not valid Actions, and a bash quoting or undefined-function bug only surfaces when that line runs, an hour into a gcc build.

  • lint is one uses: of the hub’s reusable lane, with submodules: 'recursive' and ratchets: true. Its workflow-conventions enforces all four of the hub’s conventions (sha-pin, permissions, job-timeout, artifact-error), and run-lint-gates.sh sets the same.

  • powershell-lint calls the hub’s reusable powershell-quality.yml on windows-2025. Its analyzer-strict: false keeps the $WebDavPassword analyzer finding advisory; parser and AST-trap failures stay fatal. The shared lane reads the version pin, installs PSScriptAnalyzer with bounded retries and reports complexity under the ignored logs/.

One command, the same one CI runs:

bash ./scripts/linux/run-lint-gates.sh   # the always-on gates, then --ratchets

The wrapper hands this repo’s root to the hub’s linux/scripts/run-lint-gates.sh, which owns the gates, their pinned binaries and their contracts (code-quality-tooling.md). The always-on gates are shellcheck, shell line endings, actionlint with the CI image refs, gitleaks, ruff, shared-config drift, consumer pins, README length, README badges, doc prose, pattern limits and mutation staleness; with the ratchets the run reports 13 gates. All gates run even after one fails.

  • README badges holds the README’s badges to the workflows in both directions, switched on by readme-badges.allow. A new or renamed workflow needs its badge in the same change; the only exemption is a workflow_call-only workflow such as reusable-linux.yml.

  • Mutation staleness runs the hub’s verify_mutations.py --stale-check over scripts/linux/tests/sponza-mutations.json: a recipe whose find text no longer matches its target exactly once turns Lint gates red, not only the mutation lane.

  • --ratchets adds doc-links, large-files, doc-dupes --against-hub and the --root measurement gates (stdout-returns, masked assignments, trailing conditionals, comment size, code size, complexity, dead functions, shellcheck warnings). Their freeze files sit at the repo root (comment-size.allow, dead-functions.allow, trailing-conditional.allow, shellcheck-warnings.allow, large-files.allow, doc-dupes-hub.allow). Each is two-way: a new offender fails, and so does a frozen row whose offender is gone. doc-links has no freeze file. large-files grades the index (blob sizes), so core.autocrlf does not change what it reads and an unstaged deletion does not hide a file.

  • The doc-link gate reads the submodules, so a fresh clone needs git submodule update --init first.

  • Hooks. Opt a clone in once:

    git config core.hooksPath "$PWD/third_party/ANTfrastructure/shared/linux/templates/git-hooks"
    

    The path is absolute because a linked worktree without the hub finds no relative hooks directory; the wrapper warns about one. The commit hook runs the wrapper with --staged (the large-file check, a secret scan and the shell line-ending check of the staged blobs), the push hook in full. Without the hooks every local run warns core.hooksPath is unset, and running the wrapper before a push is on you.