Repository navigation
Closed
Labels
enhancementNew feature or request
Description
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):
- Validate the chart against the release's binary:
DECDN_CLI=<vX.Y.Z's decdn> make lint-helm. CI never setsDECDN_CLI, socharts/decdn-node/tests/render-test.shskipsdecdn config validate(line 752: "value types are NOT checked"). This gap isn't specific to bumps: any PR that changesvalues.configor the chart's templates merges without the real-binary check too. - 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.pydeliberately skips this because a bare version string is ambiguous.
What would help?
Chart check in CI, not in the bump script
- In the
helmjob ofci.yml, download thedecdntarball of the pinned release (appVersion) for the runner's target. VerifySHA256SUMS.ascagainst the vendoredansible/roles/decdn_node/files/decdn-release-KEYS.asc, then runsha256sum -c --ignore-missingandmake lint-helmwithDECDN_CLIset. 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.shwrites, step 5's "CI has no real binary" in the decdn_node README, and the matching sentences in AGENTS.md andcharts/decdn-node/README.md. - Why not in the bump script:
publish-crates.shruns 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"anddecdn_node_source_ref: vX(both examplehost_vars), plussponsord_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", "todayX", "decdn/decdn vX, decdn/sponsord vY") to name the pin instead, e.g. "the pinneddecdn_node_version", linkingdefaults/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 insponsord_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 andappVersion). - 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.ymlalone. - 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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Fields
Priority
None yet
Activity
ci: validate the chart against the pinned decdn release and drop vers…