Skip to content

Architecture decision records

Short records of the decisions that shape the charts: context, decision, consequences. Dates are when the decision was taken; several come from measurements on a local cluster or from the production setup this project is derived from.

ADR Decision
0001 An umbrella chart over standalone subcharts
0002 Helm 3 and 4, schemas, GitOps-friendly
0003 The runner integration is a contract
0004 Shared contracts live in global values
0005 Build nodes are marked with our own label and taint
0006 Rootful, privileged daemons by default
0007 Storage modes and their guard rails
0008 A typed buildkitd.toml core with an escape hatch
0009 The chart always renders the full GC policy set
0010 One box namespace and a separate jobs namespace
0011 Same-node routing with fallback
0012 Probes with an empty environment and tolerant timings
0013 A pod template that chart releases do not change
0014 Draining builds on shutdown
0015 Everything pinned and verified
0016 Mutual TLS is mandatory
0017 cert-manager is a prerequisite, never a subchart
0018 Metrics and traces only via OTLP push
0019 A NetworkPolicy for daemons and builds; no per-step network
0020 Bundled metrics and traces storage (superseded by 0039)
0021 Builds can reach the observability data (accepted for v0.1; ended by 0039)
0022 Apache License 2.0
0023 Values compatibility from 0.1.0 on
0024 CI on GitHub Actions with the same make targets
0025 Releases as OCI charts on ghcr.io
0026 The runner sets every job’s trace context
0027 In-place upgrades, short-lived branches, releases when they matter
0028 One trace per job (supersedes the trace-id layout of 0026)
0029 Console: GitLab sign-in, job data from pods, Dockerfiles and logs kept
0030 Console store: SQLite, a content-addressed step graph, daily output files
0031 Console packaging: one pod, its own certificate, the runner’s URL once
0032 Console pages: the agreed design, live data, a GitLab token for now
0033 Console: GitLab says how jobs went; pipelines without builds (superseded by 0037)
0034 Console: sign-in through GitLab, inside the console
0035 Runner cache in S3, and runner tiers rendered by the box
0036 Terraform, OpenTofu and Terragrunt runs in the console (superseded by 0037)
0037 Console v2: image builds only, five sections, five outcomes
0038 Files or node: settled with GitLab’s comparison of two commits
0039 No bundled metrics and traces storage
0040 Vulnerability checks in CI
0041 Security patches skip the two-weeks wait
0042 A GitLab CI component, included by URL from the release tag
0043 The daemons’ priority, default requests and disk probe
0044 The control plane: a controller and a web, new names, no in-place upgrade from 0.2.x
0045 The build router: each job to the daemon where its project is warm
0046 Cache shared across projects; no per-project namespaces
0047 Figures the console shows: measured, recountable, from enough builds
0048 Logs: one JSON line per event, info bounded by the work, no secrets
0049 CI runs what a change touches; one aggregating result per workflow
0050 The CI component is tested in a real GitLab, at the oldest supported version and a current one
0051 A build record is stored once; repairs keep the schema version
0052 What a build’s steps used and what a node carries: BuildKit’s readings and the probe’s, nothing estimated
0053 A running build shows live on its job’s page: its job from the build’s options, its progress while someone looks
0054 Shared console links show a preview card: the page’s title and sentence, one static image, no project behind sign-in
0055 Renovate, self-hosted as a GitHub App, keeps the pins current; the checksums are recomputed from upstream
0056 “Build farm” only when it is proven: no change in the repository is not no change in the context, witnesses need the same context folder
0057 Builds from a git context: the component’s context-source: git lets the build node fetch the commit; the console reads the commit as the build context
0058 Cache-mount hints: steps that install packages without a working cache mount get a ready fragment, with measured figures; read from BuildKit’s records
0059 An OpenAPI contract for the console API: written by hand, the responses checked against it, breaking changes against the last release’s caught by oasdiff
0060 An SBOM on the ci-accelerator image: SPDX per platform from BuildKit, checked before the release signs
0061 A daemon drains before SIGTERM and the collector reads a leaving daemon to the end: builds that finish during a rollout are stored