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 ( |
|
always, docs-only commits included; no |
Submodule pins |
|
always; no |
Security audit (osv-scanner over |
|
push and PR on |
Code quality measurements ( |
|
every push and PR |
Mutation gates, Python static analysis, PowerShell quality, Renovate entrypoint |
|
push and PR |
Linux x86_64 (build, test, coverage, docs) |
|
push to |
Linux x86_64 GUI input sweep ( |
|
Sundays 03:17 UTC, or by hand with |
Linux x86_64 GPU-assisted validation ( |
|
Sundays 03:17 UTC, or by hand with |
Windows x64 (below) |
|
on request or by hand |
Linux ARM64 (no docs site: the docs steps need |
|
on request or by hand |
Linux riscv64 (below) |
|
on request or by hand; the GPU shards on Saturdays and on dispatch with |
Windows ARM64 (below) |
|
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, sincepaths-ignoreskips 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-testsjob (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
developchanges 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.ymlre-runs a job of the Linux x64, on-request or release run thatprepare-linux-ci-hostrefused 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 logsSYNC-HAZARDorVUID-(the hub’s--fail-on-log-pattern). The GUI input sweep is left out. It is also the only build ofSrc/KomputePlayground(below).gcc: the GCC build, its tests and coverage (Codecov’sgccflag).sanitizers: ASan with the fuzz seeds, then TSan. It empties the compiler-cache directory between the halves, soX64-clang-asanandX64-clang-tsanstay apart.static-analysis: the clang-format check (run-static-analysis-format.sh --only-format-check), onelinux-debug-clangbuild for coverage (Codecov’sclangflag) 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’sverify-elf-hardening.shchecks the .deb’susr/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-framesgrades 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-analysisjob runsscripts/linux/run-cargo-tests.shover the whole OxidANT workspace on both arches. The hub’scargo_test.shrunscargo test --all, which overrides a-p. It runs under Xvfb withKATAGLYPHIS_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 andkataglyphis_gui’s headless devices and the CLI’s GUI test, which also needsKATAGLYPHIS_REQUIRE_GST.arm64 vector width. The script sets
LP_NATIVE_VECTOR_WIDTH=128on 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.shruns the hub’scargo_fmt_clippy.sh:cargo fmt --all --checkpluscargo 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-testsconfigures with-DKATAGLYPHIS_BUILD_KOMPUTE_PLAYGROUND=ONand runsKomputePlayground.ArrayMultiplyon llvmpipe with the other suites. Every other build leaves the option OFF, so none of them fetches Kompute’sfmt. The playground exits 1 on any validation warning or error, sync hazards included: Kompute’s ownVK_EXT_debug_reportcallback logs them at debug level without the id theSYNC-HAZARD|VUID-scan needs. Kompute comes from thethird_party/KOMPUTEsubmodule and keeps exceptions on: its headers throw, and the playground links neithermyproject_optionsnor its-fno-exceptions. The SDK’sglslangValidatorcompiles 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.exefrom the repo root, as ctest’sperf_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.
-StageTestsleaves the Release commit suite indist/windows-x64-tests. The hub’shost-commandruns its GPU suites on lavapipe on the runner host after the container exits (Invoke-LavapipeTests.ps1, about an hour on 4 vCPUs), withKATAGLYPHIS_VULKAN_VALIDATIONset and the layer staged beside the suite.The WebDAV credentials and
MSIX_CERT_PASSWORDreach the container through the hub’sCONTAINER_SECRET_ENVsecret, as an--env-file;Build-Windows.ps1reads them from the environment.KATAGLYPHIS_CI_HAS_GPUcomes from the repository variable throughcontainer-env.The product is
dist/windows-x64: the portable bundle with its DLL closure (the hub’sNew-PortableBundleoverGet-ProductDllSearchPath), the MSI, ZIP and NSIS installer, and the MSIX, which packs that bundle. It uploads asBeschleunigerBallett-windows-x64.BuildIntegrity’s three Windows-list tests read the lane script, not the workflow. The job’s check-run name isBuild, test, package (x64) / build (amd64).BM_RecordCommands*needs a display and a Vulkan device, so on every lane it reportsskippedthroughSkipWithMessage, which the perf gate does not count; a benchmark reportingerror_occurredfails the lane.The
pester-testsjob runsscripts/windows/tests/with a pinned Pester 6.2.0, plus the hub’sRepo.GeneratedArtifacts.Tests.ps1over the pathspecs inscripts/windows/generated-artifacts.txt. A wildcard ending in/matches nothing in git: write**/__pycache__/*.Compare-PerfBaseline.Tests.ps1allocates its fixture with the hub’sNew-TestDirand releases it withRemove-TestDirinAfterAll; 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), intobuild-clangcl-profile-arm64, for-StageTeststo stageperfTestSuite.exe;builds clangcl-debug into
build-clangcl-debug-arm64, for-StageTeststo stage the Debug (ASan) suite, and Release intobuild-clangcl-release-arm64;configures with the hub’s
Get-CrossConfigureArgs -Corrosion -Vulkan, so Corrosion targets aarch64 and FindVulkan takesLib-ARM64/vulkan-1.libinstead of the x64Lib;writes
dist/windows-arm64: the portable bundle (the install tree plus its DLL closure), theaarch64MSI and ZIP, and the arm64 MSIX (manifest token__MSIX_ARCH__).
On windows-11-arm the commit suite runs whole, in two halves:
Staged tests.
-StageTestsbuilds the Release commit suite withKATAGLYPHIS_RELEASE_COMMIT_TESTSand stages it indist\windows-arm64-testswith compiled and local Slang sources, OxidANT’s pinned sources at their canonicalthird_partypath, and test models (Dinosaursincluded, which twoObjParseUnittests parse). The hub’s run job runstests.jsonthrough itsInvoke-StagedTests.ps1: the CPU suites (the commit suite minus the GPU suites and the source-readingBuildIntegrity.*checks),perfTestSuite.exeas anexitcodeentry, and the Debug (ASan) suite. Its/MDdCRT anducrtbased.dllcome from the runner’s own VS and SDK, since neither is redistributable. Every gtest entry carries an emptyallowed_skips, so a skipped test fails the run, named.GPU suites. This repo’s
gpu-suitesjob checks the repo out, puts the staged shaders in it and runs the Release suite’s GPU suites on lavapipe plus the source-readingBuildIntegrity.*checks throughInvoke-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 ignoredlogs/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 --versionand--check_resources: the engine importsvulkan-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.cmakelinks/CETCOMPATon 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=addressskips 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_envwould source the x86_64 SDK’ssetup-env.shand undoriscv64_cross_env’s/opt/vulkan/activepaths.
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 withgpu-testsskips the CPU job and fans out one job per shard. A dispatch’sonly-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-shardsprints the matrix, andRISCV64_GPU_SHARDpicks the shard inside the container. An unknown shard name stops before the build, andctest --no-tests=errorfails a shard whose filter matches nothing.RISCV64_GPU_SHARD=allis the serial lane (CPU suites, then every GPU test), for a local host.The shards:
raster-1toraster-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 forRaytracingFrameSkipsTheRasterPass, the costliest ray-traced one.
How a shard runs.
Integration.andGoldenRender.run serially (-j1) underxvfb-runwith thelibkata_fp16_helpers.soLD_PRELOAD, built fromscripts/riscv64/fp16_helpers.c: riscv64 glibc lacks the fp16 conversion helpers llvmpipe’s ORC JIT calls. The shard re-runs the script’s--gpu-ctestbranch, which runs ctest through the hub’sctest_run_mainwith--fail-on-skipped "${CTEST_GPU_SUITES}", so a skipped GPU test fails the shard (BuildIntegrity.LinuxGpuRunsFailOnASkippedGpuTest). A shard log’scannot be preloadedlines 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-debugcache 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 |
|---|---|
|
133 → 21 |
|
133 → 21 |
|
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) |
|
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
.htaccessand 404 page, and a dead internal link or anchor fails the job (verify_site_links.py).The upload runs only on a push to
developormain, never on a pull request or a dispatch. TheSERVER,USERNAMEandPWsecrets map onto itsFTP_*.release.ymldownloads 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 todevelopcan 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.
lintis oneuses:of the hub’s reusable lane, withsubmodules: 'recursive'andratchets: true. Itsworkflow-conventionsenforces all four of the hub’s conventions (sha-pin,permissions,job-timeout,artifact-error), andrun-lint-gates.shsets the same.powershell-lintcalls the hub’s reusablepowershell-quality.ymlonwindows-2025. Itsanalyzer-strict: falsekeeps the$WebDavPasswordanalyzer 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 ignoredlogs/.
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 aworkflow_call-only workflow such asreusable-linux.yml.Mutation staleness runs the hub’s
verify_mutations.py --stale-checkoverscripts/linux/tests/sponza-mutations.json: a recipe whose find text no longer matches its target exactly once turnsLint gatesred, not only the mutation lane.--ratchetsaddsdoc-links,large-files,doc-dupes --against-huband the--rootmeasurement 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-linkshas no freeze file.large-filesgrades the index (blob sizes), socore.autocrlfdoes 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 --initfirst.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 warnscore.hooksPath is unset, and running the wrapper before a push is on you.