Skip to content

decdn bump: run the chart's real-binary check in CI and drop version-pinned prose #145

Closed

Description

@thiras

What are you trying to do?

Every decdn bump PR opened by scripts/open-decdn-bump.sh comes with two "Before merging" items that need a human (#144 needed both):

  1. Validate the chart against the release's binary: DECDN_CLI=<vX.Y.Z's decdn> make lint-helm. CI never sets DECDN_CLI, so charts/decdn-node/tests/render-test.sh skips decdn config validate (line 752: "value types are NOT checked"). This gap isn't specific to bumps: any PR that changes values.config or the chart's templates merges without the real-binary check too.
  2. Move the prose that names the old version (checklist step 7 in ansible/roles/decdn_node/README.md). In chore: pin decdn to v0.0.3 #144 that meant 19 lines across 11 files, sorted by hand from decdn/sponsord pins that share the number and from "since v0.0.2" history. bump_decdn.py deliberately skips this because a bare version string is ambiguous.

What would help?

Chart check in CI, not in the bump script

  • In the helm job of ci.yml, download the decdn tarball of the pinned release (appVersion) for the runner's target. Verify SHA256SUMS.asc against the vendored ansible/roles/decdn_node/files/decdn-release-KEYS.asc, then run sha256sum -c --ignore-missing and make lint-helm with DECDN_CLI set. Every chart PR then gets the real-binary check, and a bump PR's CI runs it on the new version.
  • Drop the "Validate the chart" item from the PR body open-decdn-bump.sh writes, step 5's "CI has no real binary" in the decdn_node README, and the matching sentences in AGENTS.md and charts/decdn-node/README.md.
  • Why not in the bump script: publish-crates.sh runs it on whichever machine published the release, which may not have helm, kubeconform and promtool.

Prose: rewrite what is unambiguous, stop repeating the rest

  • bump_decdn.py rewrite: also move the commented examples keyed by a variable name, using its existing match-exactly-once patterns. These are # decdn_node_version: "X" and decdn_node_source_ref: vX (both example host_vars), plus sponsord_onramp_decdn_release: vX (inventory/group_vars/sponsord_onramp_hosts.yml, cloud-init/user-data-publisher.yaml).
  • Reword the prose that only restates the default ("defaults to X", "today X", "decdn/decdn vX, decdn/sponsord vY") to name the pin instead, e.g. "the pinned decdn_node_version", linking defaults/main.yml. Known sites: ansible/README.md, ansible/roles/decdn_node/README.md, ansible/roles/sponsord_onramp/README.md, charts/decdn-node/README.md, compose/README.md, cloud-init/README.md, the comment in sponsord_onramp_hosts.yml.
  • Keep the number in one place, AGENTS.md's "Pinned upstream releases" paragraph. Add it to the pin-agreement check in make test-scripts (which already compares the role default, the onramp pins, the Compose example and appVersion).
  • Shrink checklist step 7 and the PR body's prose item to the changelog entries. Leave history ("the image ships the CLI since v0.0.2") and the schema floor's "taken at" comment in molecule/schema/verify.yml alone.
  • The decdn/sponsord pin has the same prose problem (roles/sponsord/README.md, the galaxy publisher README). Apply the same rewording there, so a future sponsord bump script doesn't inherit it.

Once both are done, a decdn bump PR whose CI is green needs no hand edits.

Deploy path

All / not specific

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. self-assigned this
    on Oct 14, 2026
  3. added a commit that references this issue on Oct 14, 2026
    c8d0a0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions