Skip to content

CO-17: OCI helm chart support for Bund Q4 offline build - #952

Draft
lwille wants to merge 14 commits into
masterfrom
CO-17-oci-helm-charts
Draft

lwille wants to merge 14 commits into
masterfrom
CO-17-oci-helm-charts

Conversation

@lwille

@lwille lwille commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Fixes https://wearezeta.atlassian.net/browse/CO-17
Supersedes #942 (rebased onto master, including the test-oci-helm-charts nix upgrade it was based on).

Change type

  • Fix
  • Feature
  • Documentation
  • Security / Upgrade

Basic information

  • THIS CHANGE REQUIRES A DEPLOYMENT PACKAGE RELEASE
  • THIS CHANGE REQUIRES A WIRE-DOCS RELEASE

Testing

  • I ran/applied the changes myself, in a test environment.
  • The CI job attached to this repo will test it for me.

Local runs of offline/tasks/proc_pull_charts.sh:

  • 5.34 build.json (WIRE_BUILD= override): all 48 charts pulled.
  • 2026-q4-from-rm build.json without credentials: 19/20 charts pulled; team-settings is private (401) and needs the registry login. The login path is untested locally and needs CI with the QUAY_WIRE_CI_GOV_READONLY_* secrets.

Tracking

  • I added a new entry in an appropriate subdirectory of changelog.d
  • I mentioned this PR in Jira, OR I mentioned the Jira ticket in this PR.
  • I mentioned this PR in one of the issues attached to one of our repositories.

Motivation

For the Bund Q4 delivery, helm charts come from the wire-builds 2026-q4-from-rm build.json (generated by wire-release-manager). Most of its charts are oci:// references on quay.io, some of them private.

Objective

  • proc_pull_charts.sh pulls oci:// charts. The repo field is the full chart reference (e.g. oci://quay.io/wire/charts/dev/wire-server) and is pulled as is. Classic HTTP repos still go through helm repo add.
  • Every chart is extracted to charts/<build.json key>, even when the chart's own name differs (webapp -> wire-webapp). The docs, bin/offline-helm-deprecated.sh and patch-chart-images.sh rely on these directory names.
  • If OCI_REGISTRY_USERNAME/OCI_REGISTRY_PASSWORD are set, the script runs helm registry login once per registry. The offline build jobs get these from the QUAY_WIRE_CI_GOV_READONLY_* secrets.
  • New WIRE_BUILD=<url> argument overrides the build.json source.
  • The default build.json is now refs/heads/2026-q4-from-rm.
  • From the nix upgrade base: newer helm (OCI support), oras, gnupg instead of gnupg1, the old ansible kept via oldpkgs, postgresql package bumps.

Reason

#942 pulled $repo/$name, which produces .../wire-server/wire-server for the release-manager format.

Use case

./offline/tasks/proc_pull_charts.sh OUTPUT_DIR=out \
  WIRE_BUILD=https://raw.githubusercontent.com/wireapp/wire-builds/<ref>/build.json

Open points

  • 2026-q4-from-rm is a moving branch; pin a commit before release.
  • Q4 lists 19 charts (5.34 had 48). The min and demo builds still reference some of the dropped charts (postgresql, rabbitmq, cert-manager, ...); not verified yet.
  • Clean up leftovers from the nix upgrade: commented-out oldpkgs/gnupg1orig in default.nix, ansible --version in default-build/build.sh.
  • Verify the nix upgrade does not break ansible-core or gpg (second TODO on CO-17).

mohitrajain and others added 10 commits November 17, 2026 11:27
The build.json now contains oci:// repo URLs which don't work with
`helm repo add`. Handle OCI repos by pulling directly via the full
URL, while keeping the existing `helm repo add` flow for traditional
HTTP repos.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The release-manager build.json (wire-builds 2026-q4-from-rm) lists OCI
charts with the full chart reference as `repo`
(e.g. oci://quay.io/wire/charts/dev/wire-server), and the chart name can
differ from the build.json key (webapp -> wire-webapp).

- pull OCI charts by `repo` directly instead of `repo/name`
- extract every chart to charts/<build.json key> so the bundle layout
  stays stable
- log in to the OCI registry once when OCI_REGISTRY_USERNAME/PASSWORD
  are set; private charts (e.g. team-settings) need it
- wire QUAY_WIRE_CI_GOV_READONLY_* secrets into the offline builds
- allow overriding the build.json source with WIRE_BUILD=<url>
The Bund Q4 build.json is generated by wire-release-manager on this branch and references OCI charts on quay.io.
Use QUAY_WIRE_ALL_REPOS_READONLY_* for OCI helm charts and for container image pulls (DOCKER_LOGIN) in the offline build steps. Pushing the wire-server-deploy container still uses DOCKER_LOGIN.
Used to inspect and clean up the Hetzner CI project used by offline/cd*.sh.
…w_dispatch

Lets release managers build a bundle for a build.json in wireapp/wire-builds
(e.g. a hotfix release candidate) without committing a new pin to
wire-server-deploy:

  gh workflow run offline.yml --ref <branch> \
    -f profile=min -f wire_build_ref=<wire-builds commit/branch/tag>

- new workflow_dispatch inputs `profile` (same meaning as the build-*
  labels) and `wire_build_ref`
- the ref is turned into the build.json URL and passed via env only, so
  the input is never interpolated into a run script
- proc_pull_charts.sh honours WIRE_BUILD from the environment
- dispatch builds upload as <sha>-wire-builds-<ref> so they don't
  overwrite the regular bundle of the same commit; the verify jobs and
  cd*.sh take the bundle name via COMMIT_HASH
workflow_dispatch builds are handed out to people, so also attach the bundle to the run (actions/upload-artifact@v7, archive: false: downloads as the plain .tgz, kept 14 days). PR and master builds stay S3-only to save Actions storage (bundles are 5-11 GB).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants