Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:32
· 119 commits to main since this release
Immutable release. Only release title and notes can be modified.

Changes

Upgrade notes

  • From 0.3.11, helm upgrade in place. The controller, the web and the
    routers restart once for the new image; the main runner stays as it is.
    The store gets two more columns, which 0.3.11 ignores: a rollback keeps
    working on the same store.
  • The daemons restart once for BuildKit v0.34.2 (a security release,
    see below), one node at a time: the builds running on a node finish
    first (up to terminationGracePeriodSeconds). With the default
    emptyDir storage the restarted daemons start with an empty cache; with
    hostPath they keep it.
  • The component's include changes with the release (its integrity hash
    is in the release notes and the box's NOTES); jobs that keep the old
    include keep working.
  • The component's job now extends a template of its own
    (.cia-checkout-local or .cia-checkout-git). With the default
    local it sets nothing: an extends: you add to the job replaces it
    without changing anything.

Added

  • The CI component builds from a git context with
    context-source: git: the build job checks nothing out, and the build
    node fetches the pipeline's commit itself (only that commit, into a copy
    of the repository it keeps), with the job token as a BuildKit secret.
    Other jobs of the pipeline keep their checkout. Meant for repositories
    with a large history; see the component's README for what a git context
    leaves out (.dockerignore, CI artifacts, Git LFS, private submodules)
    and ADR-0057.
  • The console reads a git context's commit as the build context: a new
    commit is "your change" or not by comparing the commits (which holds in
    full for a git context), and a rebuild of the same commit is the build
    farm's.

Security

  • BuildKit v0.34.2 for the daemons, the CI component's client image and
    the image build, at once under the security-patch rule
    (ADR-0041): it fixes a
    daemon panic when a build resolves the same git source twice
    (GHSA-2fqp-xg6f-v7gj, which git contexts make reachable) and a client of
    the control API setting extended attributes on files outside the state
    directory (GHSA-w26x-xg27-7qjc).

Changed

  • GitLab's comparison of two commits now tells a submodule's new commit
    from a file: it counts for everything the build copies from inside the
    submodule, and for a context folder inside it. Comparisons stored by
    earlier releases are asked again when a git context's rebuild needs
    them.
  • The CI component no longer fails a job after a good build when BuildKit
    prints a step twice (its summary used head under pipefail), and
    refuses a timeout-minutes that is not a whole number before the build.
  • The console's project switch builds its redirect from the checked
    parts of the address it returns to (a CodeQL finding; it could not lead
    elsewhere before either).
  • Renovate has no schedule of its own; the workflow's weekly run decides
    (a run GitHub started late fell outside the old window).

Install

helm install ci-accelerator oci://ghcr.io/hoobiboobi/charts/ci-accelerator --version 0.4.0 ...

The control plane (the console's controller and web) is on by default and needs a default StorageClass (or control-plane.controller.persistence.storageClass); --set control-plane.enabled=false --set global.router.enabled=false leaves it out (the build router is part of it).

To try it on one clean Linux machine (k3s, cert-manager and the box with its console):

curl -fsSLO https://github.com/hoobiboobi/ci-accelerator/releases/download/v0.4.0/quickstart.sh
curl -fsSL https://github.com/hoobiboobi/ci-accelerator/releases/download/v0.4.0/SHA256SUMS | grep quickstart.sh | sha256sum -c -
sudo bash quickstart.sh --gitlab-url https://gitlab.example.com/   # asks for the runner's token

The GitLab CI component (a job that builds and pushes on the build farm; ci/gitlab/README.md):

include:
  - remote: https://raw.githubusercontent.com/hoobiboobi/ci-accelerator/v0.4.0/ci/gitlab/build.yml
    integrity: sha256-Th5CoYA2g9uRP3gWvlve0s/5hmho1UK04sDgK23i8rc=
    inputs:
      runner-tags: [your-runner-tag]

The daemons alone: oci://ghcr.io/hoobiboobi/charts/buildkit --version 0.4.0.
The control plane alone: oci://ghcr.io/hoobiboobi/charts/control-plane --version 0.4.0, image ghcr.io/hoobiboobi/ci-accelerator:v0.4.0.

Verify

Needs cosign 2.6 or newer (the signatures are Sigstore bundles). Every artifact of this release:

for ref in ghcr.io/hoobiboobi/charts/buildkit:0.4.0 ghcr.io/hoobiboobi/charts/control-plane:0.4.0 ghcr.io/hoobiboobi/charts/ci-accelerator:0.4.0 ghcr.io/hoobiboobi/ci-accelerator:v0.4.0; do
  cosign verify $ref \
    --certificate-identity https://github.com/hoobiboobi/ci-accelerator/.github/workflows/release.yml@refs/tags/v0.4.0 \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com
done

The release's files (quickstart.sh, the charts' archives) through their signed checksums:

cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
  --certificate-identity https://github.com/hoobiboobi/ci-accelerator/.github/workflows/release.yml@refs/tags/v0.4.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c --ignore-missing SHA256SUMS

Full changelog: v0.3.11...v0.4.0

Digests

ghcr.io/hoobiboobi/ci-accelerator@sha256:5641f71e255c36f46db112df9b29cf9e470ead0d10f46676c3a4ad8947c97333
ghcr.io/hoobiboobi/charts/buildkit@sha256:91a322d7ee4005b3161035d5892402c7a6ac0e990d8b7f088c13008fc600b4f3
ghcr.io/hoobiboobi/charts/ci-accelerator@sha256:e1123b550b71604be1dabf3b376ba4db78df9ad443dd98850fdcbea4f9efd2d5
ghcr.io/hoobiboobi/charts/control-plane@sha256:e77b8b8fff47a4d52d154bb0d8587a1bd174d1970d5aaf4f625a4d0d58ff5942

To pin the box's images by digest (README, "Install"): --set control-plane.image.digest=sha256:5641f71e255c36f46db112df9b29cf9e470ead0d10f46676c3a4ad8947c97333 (ci-accelerator:v0.4.0) and, for the disk probe next to each daemon (ci-accelerator:v0.3.3), --set buildkit.diskProbe.image.digest=sha256:8103f17d6512ed305f445fc436dfe19cf9669d57745ae95f2cc98756f39b1204. The daemons' BuildKit image is pinned by digest already.