Repository navigation
feat(helm): publish the chart to GHCR and add Docker and Kubernetes docs - #3554
Conversation
Implementation Review SummaryIntent
Findings Addressed
Remaining Items
Verification
Checked: helm_chart_package_test.sh passes with Helm 3.22.1; actionlint passes on release.yml and ci.yml; the setup-helm and attest SHAs resolve to v5.1.0 and the attest pin publish-images already uses; the workflow's digest |
Security and performance reviewNo CRITICAL or HIGH findings, so no fix commits. actionlint (CI shellcheck mode) and shellcheck are clean, and Checked and sound
Remaining items (below the auto-fix threshold)
|
The release workflow pushed the CUDA images but not the chart, and nothing outside the source explained how to run either. A new publish-chart job runs after publish-images has pushed the versioned images for the same tag, packages charts/mlxcel with version and appVersion set to the tag without its leading v, and pushes it to oci://ghcr.io/lablup/charts/mlxcel with a build provenance attestation. Setting the version at package time for every event, instead of failing a release on a stale Chart.yaml, means the published chart's default image tag is always one that publish-images pushed. scripts/ci/helm_chart_package.sh validates the tag with the image tag rule, packages the chart and checks the .tgz itself: helm show chart must report the version for both fields and every image line of a default render must equal docker_image_tags.sh's runtime_tags. helm_chart_package_test.sh covers stable, prerelease and dispatch tags, bad tags, and two packages that must be rejected, and runs in the helm-chart CI job. docs/docker.md and docs/kubernetes.md, with Korean translations, take over the container section of docs/installation.md (now a pointer) and cover tags, host requirements, the cache layout and trust rules with their residuals, HF cache safety, health, shutdown, API keys, router mode, metrics, the OCI install, package visibility and what has not been validated. Validated: actionlint, the packaging test with Helm 3.22.1 and 4.3.2, a push to a local registry:2 read back with helm show, pull and template, an install from it on kind under restricted Pod Security, check_helm_chart.py, env-var docs and cross-repo-ref checks, and a link check of the changed pages. Not validated: a push to ghcr.io, the attestation, and any GPU run. Refs #3487
actions/attest pushes the attestation with credentials read from ~/.docker/config.json (sigstore-js getRegistryCredentials). The publish-chart job only ran `helm registry login`, which writes Helm's own registry config, so the attest step would fail with no credentials right after the chart push, leaving a published chart and a red job. Add the same SHA-pinned docker/login-action step publish-images uses. actionlint (shellcheck at error severity) passes on release.yml. Refs #3487
Adds docs/benchmark_results/helm-chart-oci-publish-2026-11-29.md for the packaging test, the local registry round trip and the restricted-PSS install from it on kind, which docs/kubernetes.md cited without a record, and indexes it. Names the image's uid 65532 account as mlxcel, as in docker/Dockerfile.cuda, and states the kind and Kubernetes versions separately. Refs #3487
Addresses the security review of the chart publish job. The docker login that the attestation needs now runs after the push, so the tag tree's packaging script never runs with a token in ~/.docker/config.json. helm_chart_package.sh requires the chart name to be mlxcel, since the push target, attestation subject and read-back are all ghcr.io/lablup/charts/mlxcel; the test gains a renamed-chart case (16 cases, Helm 3.22.1 and 4.3.2). Docs now say that a chart is published for any tag that published images, including a stable-looking dispatch or an unpromoted release that does not move latest-cuda13, so a bare helm install can pick it; that a 2775 bind mount lets every host member of gid 65532 write /cache with the HuggingFace cache risk; and that --webui adds public static /webui files. Refs #3487
Removes commas after connective endings and replaces figurative predicates in docs/docker.ko.md and docs/kubernetes.ko.md with plain technical verbs (unload, run, report as allocatable). The OCI packaging record now lists 16 test cases, including the renamed-chart rejection added by the security review. Refs #3487
adcde1a to
6620e9e
Compare
Bring in the Chat workspace restructure (#3552) and the Helm chart publishing work (#3554) so the Settings rebuild for #3524 stays mergeable. - Icons: the union of both sides, `forward` and `back` from Settings plus `add`, `parameters` and `privacy` from Chat; the icon count test now expects 30. - Docs: design-system.md lists all 30 glyphs and keeps the Settings note on the re-exported `Icon`; both user guides keep the Settings rows and search paragraph and take Chat's wording that the history and privacy dialog opens from the shield button in Chat's header. - Strings: the fixture merged cleanly to 1040 entries with no key edited on both sides, so `StringCatalog.strings.maxItems` in docs/webui/api.yaml rises from 1024 to 2048; the generated DTO has no drift. - Bundled assets were regenerated with scripts/webui/build_bundle.py rather than hand-merged. Validated with typecheck, lint, the unit suite (843 tests), the theme and agents checks, the bundle verify, the WebUI contract check, and the Chromium settings, chat and shell Playwright specs (39 passed).
Bilingual reports for the eight PRs of epic #3488: #3508 (graceful drain), #3509 (CUDA PTX cache trust), #3530 (ROCm hsaco cache trust), #3540 (NVRTC redistributable headers), #3543 (CUDA container image), #3549 (Helm chart), #3550 (GHCR image publishing) and #3554 (chart OCI publishing and docs). Each report names what the PR record leaves unvalidated: a real GHCR push, a GPU pod on a cluster, the amd64 and debug images. The HuggingFace cache follow-up is #3570.
Summary
Publishes the Helm chart from the release workflow and adds the Docker and Kubernetes user guides, the last unit of epic #3488.
publish-chartinrelease.ymlruns afterpublish-imagessucceeded and actually pushed images for the tag (newpublishedjob output), skips tags whose tree has no chart or packaging script, packagescharts/mlxcelwithversionandappVersionset to the tag withoutv, pushes tooci://ghcr.io/lablup/charts/mlxcel, logs Docker in to GHCR only after the push (the attestation reads~/.docker/config.json; the tag tree's script never runs with it), attests the pushed digest, and reads the chart back from the registry. Actions are SHA-pinned;packages: write,id-token: writeandattestations: writeare job-scoped.Chart.yaml. The version is set at package time for every event, so the published chart's default imagev<appVersion>-cuda13is always onepublish-imagespushed. A notice records a mismatch with the tree.scripts/ci/helm_chart_package.shchecks the packaged.tgz, not the tree:helm show chartversion and appVersion, and every renderedimage:againstdocker_image_tags.sh'sruntime_tags. It also requires the chart namemlxcel, the push and attestation target.helm_chart_package_test.shcovers stable, prerelease and dispatch tags, rejected tags, and three packages that must fail; it runs in thehelm-chartCI job. The run is recorded indocs/benchmark_results/helm-chart-oci-publish-2026-11-29.md.docs/docker.md,docs/kubernetes.mdand their.ko.mdtranslations replace the container section ofdocs/installation.md(now a pointer) and are linked fromREADME.md,docs/README.mdand the chart README. They note that a stable-looking dispatch or an unpromoted release still publishes a chart that a barehelm installmay pick althoughlatest-cuda13did not move.Not done here: the issue's
CLAUDE.md/AGENTS.mdrelease-table row forChart.yamlis left for the maintainer.Changes during review
/webuifiles.Test plan
actionlint(CI mode clean; default mode shows only the 9 findings already onmain)helm_chart_package_test.sh(16 cases) with Helm 3.22.1 and 4.3.2;docker_image_tags_test.shhelm pushto a localregistry:2, thenhelm show chart,helm pull,helm templatefrom it; prerelease-onlyhelm pullwithout--versionfails,--develworkshelm installfrom that registry on kind under restricted Pod Security: pod admitted with the release image in both containers (Pending, image not published)check_helm_chart.py,check_env_var_docs.py,check_cross_repo_refs.py, link check of the changed pagesNot validated: a push to or pull from
ghcr.io, the chart attestation, package visibility, any GPU pod on Kubernetes, anydocker runof the published image, and any amd64 container run.Closes #3487