Skip to content

ci(flyte-binary): check chart README is regenerated with helm-docs#7544

Merged
pingsutw merged 3 commits into
mainfrom
flyte-binary-helm-docs-ci
Jun 17, 2026
Merged

ci(flyte-binary): check chart README is regenerated with helm-docs#7544
pingsutw merged 3 commits into
mainfrom
flyte-binary-helm-docs-ci

Conversation

@pingsutw

Copy link
Copy Markdown
Member

Tracking issue

Related to keeping charts/flyte-binary/README.md in sync with the chart.

Why are the changes needed?

charts/flyte-binary/README.md is generated by helm-docs from the chart's values.yaml and Chart.yaml, but nothing in CI enforces that it stays current. As a result the committed README had drifted from the chart (stale AppVersion badge, a removed flyteconnector requirement, and a values table missing the flyte-core-components.runs/dataproxy/secret/actions keys and still showing flytepropeller instead of flytemanager).

What changes were proposed in this pull request?

  1. New Check Helm Docs workflow (.github/workflows/check-helm-docs.yml): on PRs that touch charts/flyte-binary/** (or the workflow itself), it installs helm-docs (pinned to v1.8.0), runs helm-docs --chart-search-root=charts/flyte-binary, and fails if the regenerated README.md differs from what is committed — printing the exact command to fix it.
  2. Regenerate the stale README so the new check passes. The diff is purely helm-docs output: it syncs the values table with the current values.yaml and drops the AppVersion badge and Requirements section that no longer exist in Chart.yaml.

To regenerate locally:

helm-docs --chart-search-root=charts/flyte-binary

How was this patch tested?

  • Ran helm-docs --chart-search-root=charts/flyte-binary (v1.8.0) locally; the committed README now matches generated output (git diff --exit-code is clean), which is the exact assertion the workflow makes.
  • Confirmed the workflow only triggers on changes under charts/flyte-binary/** and the workflow file, and uses no untrusted event input in run: steps.

Labels

  • added

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Add a Check Helm Docs workflow that runs helm-docs (pinned to v1.8.0)
against charts/flyte-binary on PRs touching the chart and fails when the
committed README.md differs from generated output. This guards against
editing values.yaml/Chart.yaml without regenerating the docs.

Also regenerate the currently-stale README so the new check passes: it
syncs the values table with values.yaml (flyte-core-components.runs/
dataproxy/secret/actions keys, the flytemanager rename) and drops the
no-longer-present AppVersion badge and flyteconnector requirement.

Signed-off-by: Kevin Su <pingsutw@apache.org>
Copilot AI review requested due to automatic review settings June 17, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a CI guard to ensure the charts/flyte-binary/README.md (generated by helm-docs) stays in sync with the Helm chart, and regenerates the committed README so the new check passes.

Changes:

  • Add a new GitHub Actions workflow to run helm-docs on PRs that touch charts/flyte-binary/** and fail if the generated README differs from what’s committed.
  • Regenerate charts/flyte-binary/README.md to match current chart metadata and values.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
charts/flyte-binary/README.md Updates generated helm-docs output to reflect current values.yaml / Chart.yaml.
.github/workflows/check-helm-docs.yml Adds CI workflow to regenerate and diff-check the chart README on relevant PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/check-helm-docs.yml Outdated
Comment thread charts/flyte-binary/README.md
pingsutw added 2 commits June 17, 2026 02:57
The prebuilt helm-docs release binary bakes in a version string and
appends an 'Autogenerated from chart metadata using helm-docs' footer
(gated on .HelmDocsVersion). The committed README is generated by a
go-installed helm-docs, which leaves the version empty and omits the
footer. Install helm-docs the same way in CI so the regenerated README
is byte-identical and the check is reproducible.

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Copilot AI review requested due to automatic review settings June 17, 2026 18:44
@pingsutw pingsutw self-assigned this Jun 17, 2026
@pingsutw pingsutw added this to the V2 GA milestone Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@pingsutw pingsutw merged commit 5c443a5 into main Jun 17, 2026
23 checks passed
@pingsutw pingsutw deleted the flyte-binary-helm-docs-ci branch June 17, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants