Repository navigation
👷 ci(release): derive the chart OCI coordinate once and publish it under charts/ - #351
Merged
Merged
Conversation
ADR-0709 moves the Helm chart to ghcr.io/<owner>/charts/kollect while the controller image stays at ghcr.io/<owner>/kollect. The release workflow derives the chart coordinate three times independently -- for helm push, for cosign sign, and (from env.IMAGE_NAME, the image variable) for the Artifact Hub metadata tag -- so editing one leaves the others pointing at the old path. The metadata step is continue-on-error, so that drift is invisible at release time. The gate executes the three run: bodies against stub helm/cosign/oras with a synthetic registry, owner and chart name, and asserts the references those tools actually receive. Hardcoded or re-derived coordinates therefore red, and a step that takes github.repository_owner or env.IMAGE_NAME fails by name. Red against the current workflow.
The Helm chart moves to ghcr.io/<owner>/charts/kollect. The controller image stays at ghcr.io/<owner>/kollect with its v-prefixed tags: its digest is pinned immutably in already-merged OLM bundles. The coordinate was derived three times independently -- once for `helm push`, again from scratch for `cosign sign`, and a third time for the Artifact Hub metadata tag, which built it from env.IMAGE_NAME (the *image* variable, which happens to share the string "kollect"). Editing one left the others pointing at the old path, and the metadata step is continue-on-error, so its copy could strand at the image repository and quietly cost Verified Publisher while the release went green. The `chart` step is now the only derivation. It emits two outputs from one base: `oci` (the parent path, because `helm push` appends the chart name) and `repository` (the full chart repository). helm push, cosign sign, the oras metadata push and the release notes all read them. The publish step additionally parses the reference out of the `helm push` output and fails if it is not under the derived chart repository, so a future desync cannot be signed and shipped silently. env.CHART_NAME is added so the chart's name stops sharing a variable with the controller image's. The DR-FIND-07 collision guard is retained unchanged; only its comments are corrected -- the bare 0.14.0-0.19.0 chart tags stay in the image repository permanently, so the collision it describes is still reachable there.
resolve_expr() was called through `$( )`, so fail()'s `exit 1` only killed the command substitution: a step that took github.repository_owner or env.IMAGE_NAME printed the right diagnostic and the simulation then carried on with an empty value, reporting an unrelated failure instead. Mutation-testing the gate against the pre-ADR-0709 metadata step surfaced it. It now assigns into a global from a loop that runs in the gate's own shell.
The comment explaining why the controller image is never tagged bare said the chart is pushed to the same OCI repository. After ADR-0709 it is not. The omission is still correct, but for a different reason: the pre-move chart tags 0.14.0-0.19.0 stay in the image repository permanently, so a bare image tag could still land on a chart manifest.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Two blind spots found in review.
The helm stub emitted a test-chosen "Pushed:" line and the assertion was a
substring match, so changing the push target from ${CHART_OCI} to
oci://${CHART_REPOSITORY} -- which publishes the chart to .../charts/<chart>/<chart>
-- passed the gate green. Real helm would have caught it, but only mid-release,
after the images are pushed and signed, which is the lateness this lane exists to
remove. The stub now derives the pushed reference from the target it was actually
given, and the target assertion is exact rather than a substring: the parent path
is a prefix of the child, so a substring test cannot tell them apart. Deriving it
also exercises the workflow's own post-push assertion end to end on the happy
path. STUB_HELM_FORCE_REF keeps the negative case able to simulate a push
somewhere else entirely.
env.CHART_NAME was unanchored. It now must equal the name declared in the single
Chart.yaml under charts/, located by searching rather than by looking under
charts/${CHART_NAME}, which would have been circular. The publish step builds
dist/${CHART_NAME}-${VERSION}.tgz and helm package names that tarball from
Chart.yaml, so a divergence points the push at a file that was never produced.
The section-5 publish run redirected the run_step call with 2>&1 into a temp
file, but fail() writes to stderr and then exits, so every rejection raised
while preparing that step -- github.repository_owner (the central assertion),
env.IMAGE_NAME, an unknown expression, ${{ }} in the body, an empty body --
landed in a file the EXIT trap immediately deleted. The operator saw a green
ok - line, then rc=1, and nothing else: that reads as a broken gate, so the next
person debugs the gate instead of their change. Second instance of the class
fixed in a1bc7bf.
Redirection now belongs to run_step and applies to the step body alone, passed
as optional arguments; callers no longer redirect. The publish step's stderr is
captured separately and quoted in the failure message.
Also hardens the helm stub, which read its target and package positionally: a
benign `helm push --debug ...` would have shifted both and produced a false red
blaming the tarball. It now scans argv for the oci:// target and the .tgz, and
records the target only for `push` and by appending, so a second push or an
added `helm registry login` cannot silently decide what the assertion reads.
|
konih
added a commit
that referenced
this pull request
Sep 1, 2026
A single transient `curl: (7) Failed to connect to get.helm.sh` reddened kind-smoke -- one of four REQUIRED checks -- on PR #351 (a bash-only diff) after 46s, blocking the merge queue. The failure was an asymmetry inside one composite step. In .github/actions/kind-e2e-setup the `kind` download already ran in a three-attempt loop with `--proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL --retry 5 --retry-delay 5 --connect-timeout 30`; the very next line, `bash hack/install-helm.sh`, issued two BARE `curl -fsSL` calls. Both are now routed through one `fetch_with_retry` helper carrying the same flag set, so the checksum fetch is hardened exactly like the tarball fetch and the two cannot drift apart again. curl's own `--retry` does not cover a failed connect unless `--retry-connrefused`/`--retry-all-errors` is passed, so the outer loop is the half that covers the class of failure actually observed. Unlike the kind loop it is modelled on, the helper returns non-zero when its attempts are exhausted instead of falling through to a confusing downstream error. Security properties are unchanged or stronger: * the retry loop wraps the TRANSPORT only. A digest mismatch, an empty body or a non-digest body all fail hard on the first occurrence -- retrying a content failure would turn a deterministic integrity check into a flaky one, which is strictly worse because it gets re-run until green. * the checksum lands in a file rather than a command substitution, so a later refactor into `local`/`export` cannot silently swallow the fetch's exit status under `set -e`. * the checksum body must now be a bare 64-character lowercase digest; an interception page is reported as "not a sha256 digest" instead of being carried into the comparison and misreported as a corrupt tarball. The installer also takes an optional install prefix (defaulting to /usr/local/bin, so every existing call site is unaffected), which is what lets the new gate execute it for real without touching a system path. hack/test/ci_install_helm_hardening_test.sh asserts the flags statically over a comment-stripped, continuation-joined view of the source, then asserts the behaviour against a stub curl on PATH: both fetches retry, retries are bounded at three, a mismatch is fetched exactly once, an empty checksum never reaches the tarball download, and a permanent failure is raised at the fetch that failed. It is wired explicitly into the lint job -- the dist_* and sonar_ko_* globs do not match this name -- ahead of the Install Helm step.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…he closing diagnosis Three review findings, all of them assertions that passed for less than they claimed. The direct-fetcher scan led with `(^|[^[:alnum:]_./-])`, which excludes / and - from the character allowed before the command name, so a PATH-QUALIFIED fetcher was invisible to it. A reviewer changed hack/install-polaris.sh's tarball fetch to `/usr/bin/curl -fsSL` and the gate stayed green: the positive assertions still passed because the CHECKSUM fetch in the same file still called fetch_to. That is the PR #351 shape exactly -- one hardened fetch and one bare one beside it -- surviving the assertion whose contract is 'no direct fetcher invocation at all'. The pattern is now defined once, shared by the installer and action scans, and admits an optional path prefix and the `$(command -v curl)` spelling. It is deliberately NOT used for the flag assertions on the helper: fetch_to's own diagnostic contains the words '(curl exit ${status})', which the wider pattern matches, so curl_command_lines stays narrow and gains only the path prefix. Case C counted sleep INVOCATIONS, so KOLLECT_FETCH_RETRY_DELAY=0 -- a backoff that does not back off -- survived the whole suite under a failure message that claimed to forbid it. It now asserts the delay. Deleting fetch_to's closing summary also survived: the per-attempt retry messages already name the host and carry curl's exit code, so nothing pinned the last-attempt diagnosis -- the one thing this lane advertises as the answer to CI-KINDLOOP-01's `chmod: No such file or directory`. Case D now reads the LAST line of stderr and requires it to name the host, carry the exit code, and not promise another attempt. fetch_to's header now records that it takes ownership of its destination path: on any failure it deletes the file, which is strictly more destructive than `curl -f -o`. No caller is exposed today, but that is a property of the callers, not of the helper. 38 mutants, 38 killed, each verified by message text.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…the pattern CORRECTING TWO CLAIMS FROM THE LAST COMMIT FIRST. It said fetcher_selftest makes re-running prior mutants 'a property of the file rather than a claim in a commit message'. That was true of the regex and false of the pipeline that applies it: the harness re-implemented the sentinel with its own printf instead of calling fetcher_lines. Delete the sed from fetcher_lines and every self-test assertion still passed while a bare `curl -fsSL` at column 0 in an installer -- the literal PR #351 defect -- shipped green. Verified against the previous commit: that mutant exits 0 and prints 'All CI-FETCHLIB-01 tests passed'. It is the same failure mode as the round before it, reproduced one layer up, inside the mechanism added to prevent it. The corpus now writes to a real file and calls fetcher_lines, which covers logical_lines too, and its first entry sits at column 0 so the sentinel is load-bearing in the suite that guards it. It also said the grep portability problem 'cost real time'. Overstated. The divergence is real but was observed in this agent's own zsh, where grep is a harness shell function execing a ugrep-compatible binary. No ugrep is on PATH; /usr/bin/grep and /bin/grep are both GNU 3.12, and gate scripts run under bash, so no gate on this machine ever resolved grep to anything but GNU. Both of the previous commit's 'two engine' sweeps were GNU grep twice over. The construct is still worth dropping -- POSIX leaves ^ undefined outside the leading position -- but the honest argument for the sentinel form is that it matches 14/14 of the corpus where v1 managed 6/14 and v2 7/14, not that it fixed a live bug. The comment now says only that, notes that the divergence is specific to alternating ^ with a NEGATED bracket expression, and no longer condemns the (^|[[:space:]]) form this same file still uses safely. The helm gate's twin scan inlined the same sentinel with no self-test at all; it now has OTHER_FETCHER_RE, other_fetcher_lines and its own corpus, column-0 entry included. Also: the corpus sampled neither aria2c nor the optional 3 in python3?, so narrowing the alternation to drop either passed every assertion -- both are covered now, with env and eval spellings alongside. And the KNOWN PERMISSIVE note gains the second false positive it was missing: the trailing-comment strip skips quoted lines, so a quoted line with a trailing comment naming a path that ends in a fetcher reds this gate. 52 mutants, 52 killed, including the neutered-sentinel escape in isolation and combined with the column-0 curl. No source file changed.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
CI-FETCHLIB-01. PR #351's REQUIRED kind-smoke check went red on a bash-only diff with `curl: (7) Failed to connect to get.helm.sh`. CI-HELMDL-01 fixed hack/install-helm.sh and kept its retry helper local by design, leaving seven sibling installers with the same bare `curl -fsSL`. hack/lib/fetch.sh is the single home for the flag list those call sites will share. fetch_to pairs curl's own --retry (a flaky origin that answers: 408/429/5xx) with an outer bash loop (the connect/DNS/TLS/dropped-connection class curl's --retry does NOT cover without --retry-connrefused). It pins the scheme on the request and the redirect chain, bounds the connect and the transfer, discards partial downloads, and fails at the fetch naming the host and curl's exit code rather than falling through. The gate proves each property against a real local HTTPS origin with a self-signed cert -- one that genuinely refuses connections, returns 503 before 200, drops a connection mid-request, redirects https->http and truncates a body -- because a stubbed curl can only prove that certain words appeared on a command line.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…fetch helper CI-FETCHLIB-01. All eight hack/install-*.sh scripts now source hack/lib/fetch.sh and fetch through fetch_to. Seven of them were still issuing the bare `curl -fsSL` that reddened the REQUIRED kind-smoke check on PR #351; install-helm.sh drops its local fetch_with_retry, whose own header named this refactor as the work it could not do. Semantics preserved at every call site. The four installers that resolved a digest with `EXPECTED_SHA256="$(curl ... | awk ...)"` now fetch the checksum body to a file and awk that: the pipe form propagated a dead network under set -e only because it was a BARE assignment, so any later refactor into a function would have silently left the `[[ -z ]]` guard as the only thing catching it. Every existing digest check, and the order that puts it before the install, is untouched. The repo-wide gate enumerates hack/install-*.sh from the filesystem rather than a list, so installer number nine is covered the day it lands, and it records in code that git-cliff and helm-docs verify no digest today -- a gap this lane does not close but refuses to leave undocumented. It is reached in CI through the already-wired ci_install_helm_hardening_test.sh, which now also follows the flag assertions into the shared helper.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
CI-KINDLOOP-01. The three-attempt loop in .github/actions/kind-e2e-setup fell through after its last failed attempt onto `chmod +x` of a file that had never been written. It was never a false green -- set -euo pipefail still failed the job -- but an unreachable kind.sigs.k8s.io was reported as "No such file or directory", and the loop burned a pointless 10s sleep after its final attempt on a job already doomed. This is the loop that looks hardened, so it is the one that gets copied; CI-HELMDL-01 declined to imitate it for exactly this reason. Rather than repair it in place, the step now calls fetch_to from hack/lib/fetch.sh, the same helper the installers use, so the kind and helm downloads inside this one step cannot drift apart again -- the drift that left the helm side bare and reddened kind-smoke on PR #351. The helper is sourced via GITHUB_WORKSPACE rather than a relative path; the step already required the checkout, since it runs hack/install-helm.sh. The gate asserts the loop and the sleep are gone rather than merely bypassed: a leftover loop is what a later editor reattaches a body to.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…he closing diagnosis Three review findings, all of them assertions that passed for less than they claimed. The direct-fetcher scan led with `(^|[^[:alnum:]_./-])`, which excludes / and - from the character allowed before the command name, so a PATH-QUALIFIED fetcher was invisible to it. A reviewer changed hack/install-polaris.sh's tarball fetch to `/usr/bin/curl -fsSL` and the gate stayed green: the positive assertions still passed because the CHECKSUM fetch in the same file still called fetch_to. That is the PR #351 shape exactly -- one hardened fetch and one bare one beside it -- surviving the assertion whose contract is 'no direct fetcher invocation at all'. The pattern is now defined once, shared by the installer and action scans, and admits an optional path prefix and the `$(command -v curl)` spelling. It is deliberately NOT used for the flag assertions on the helper: fetch_to's own diagnostic contains the words '(curl exit ${status})', which the wider pattern matches, so curl_command_lines stays narrow and gains only the path prefix. Case C counted sleep INVOCATIONS, so KOLLECT_FETCH_RETRY_DELAY=0 -- a backoff that does not back off -- survived the whole suite under a failure message that claimed to forbid it. It now asserts the delay. Deleting fetch_to's closing summary also survived: the per-attempt retry messages already name the host and carry curl's exit code, so nothing pinned the last-attempt diagnosis -- the one thing this lane advertises as the answer to CI-KINDLOOP-01's `chmod: No such file or directory`. Case D now reads the LAST line of stderr and requires it to name the host, carry the exit code, and not promise another attempt. fetch_to's header now records that it takes ownership of its destination path: on any failure it deletes the file, which is strictly more destructive than `curl -f -o`. No caller is exposed today, but that is a property of the callers, not of the helper. 38 mutants, 38 killed, each verified by message text.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…the pattern CORRECTING TWO CLAIMS FROM THE LAST COMMIT FIRST. It said fetcher_selftest makes re-running prior mutants 'a property of the file rather than a claim in a commit message'. That was true of the regex and false of the pipeline that applies it: the harness re-implemented the sentinel with its own printf instead of calling fetcher_lines. Delete the sed from fetcher_lines and every self-test assertion still passed while a bare `curl -fsSL` at column 0 in an installer -- the literal PR #351 defect -- shipped green. Verified against the previous commit: that mutant exits 0 and prints 'All CI-FETCHLIB-01 tests passed'. It is the same failure mode as the round before it, reproduced one layer up, inside the mechanism added to prevent it. The corpus now writes to a real file and calls fetcher_lines, which covers logical_lines too, and its first entry sits at column 0 so the sentinel is load-bearing in the suite that guards it. It also said the grep portability problem 'cost real time'. Overstated. The divergence is real but was observed in this agent's own zsh, where grep is a harness shell function execing a ugrep-compatible binary. No ugrep is on PATH; /usr/bin/grep and /bin/grep are both GNU 3.12, and gate scripts run under bash, so no gate on this machine ever resolved grep to anything but GNU. Both of the previous commit's 'two engine' sweeps were GNU grep twice over. The construct is still worth dropping -- POSIX leaves ^ undefined outside the leading position -- but the honest argument for the sentinel form is that it matches 14/14 of the corpus where v1 managed 6/14 and v2 7/14, not that it fixed a live bug. The comment now says only that, notes that the divergence is specific to alternating ^ with a NEGATED bracket expression, and no longer condemns the (^|[[:space:]]) form this same file still uses safely. The helm gate's twin scan inlined the same sentinel with no self-test at all; it now has OTHER_FETCHER_RE, other_fetcher_lines and its own corpus, column-0 entry included. Also: the corpus sampled neither aria2c nor the optional 3 in python3?, so narrowing the alternation to drop either passed every assertion -- both are covered now, with env and eval spellings alongside. And the KNOWN PERMISSIVE note gains the second false positive it was missing: the trailing-comment strip skips quoted lines, so a quoted line with a trailing comment naming a path that ends in a fetcher reds this gate. 52 mutants, 52 killed, including the neutered-sentinel escape in isolation and combined with the column-0 curl. No source file changed.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
CI-FETCHLIB-01. PR #351's REQUIRED kind-smoke check went red on a bash-only diff with `curl: (7) Failed to connect to get.helm.sh`. CI-HELMDL-01 fixed hack/install-helm.sh and kept its retry helper local by design, leaving seven sibling installers with the same bare `curl -fsSL`. hack/lib/fetch.sh is the single home for the flag list those call sites will share. fetch_to pairs curl's own --retry (a flaky origin that answers: 408/429/5xx) with an outer bash loop (the connect/DNS/TLS/dropped-connection class curl's --retry does NOT cover without --retry-connrefused). It pins the scheme on the request and the redirect chain, bounds the connect and the transfer, discards partial downloads, and fails at the fetch naming the host and curl's exit code rather than falling through. The gate proves each property against a real local HTTPS origin with a self-signed cert -- one that genuinely refuses connections, returns 503 before 200, drops a connection mid-request, redirects https->http and truncates a body -- because a stubbed curl can only prove that certain words appeared on a command line.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…fetch helper CI-FETCHLIB-01. All eight hack/install-*.sh scripts now source hack/lib/fetch.sh and fetch through fetch_to. Seven of them were still issuing the bare `curl -fsSL` that reddened the REQUIRED kind-smoke check on PR #351; install-helm.sh drops its local fetch_with_retry, whose own header named this refactor as the work it could not do. Semantics preserved at every call site. The four installers that resolved a digest with `EXPECTED_SHA256="$(curl ... | awk ...)"` now fetch the checksum body to a file and awk that: the pipe form propagated a dead network under set -e only because it was a BARE assignment, so any later refactor into a function would have silently left the `[[ -z ]]` guard as the only thing catching it. Every existing digest check, and the order that puts it before the install, is untouched. The repo-wide gate enumerates hack/install-*.sh from the filesystem rather than a list, so installer number nine is covered the day it lands, and it records in code that git-cliff and helm-docs verify no digest today -- a gap this lane does not close but refuses to leave undocumented. It is reached in CI through the already-wired ci_install_helm_hardening_test.sh, which now also follows the flag assertions into the shared helper.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
CI-KINDLOOP-01. The three-attempt loop in .github/actions/kind-e2e-setup fell through after its last failed attempt onto `chmod +x` of a file that had never been written. It was never a false green -- set -euo pipefail still failed the job -- but an unreachable kind.sigs.k8s.io was reported as "No such file or directory", and the loop burned a pointless 10s sleep after its final attempt on a job already doomed. This is the loop that looks hardened, so it is the one that gets copied; CI-HELMDL-01 declined to imitate it for exactly this reason. Rather than repair it in place, the step now calls fetch_to from hack/lib/fetch.sh, the same helper the installers use, so the kind and helm downloads inside this one step cannot drift apart again -- the drift that left the helm side bare and reddened kind-smoke on PR #351. The helper is sourced via GITHUB_WORKSPACE rather than a relative path; the step already required the checkout, since it runs hack/install-helm.sh. The gate asserts the loop and the sleep are gone rather than merely bypassed: a leftover loop is what a later editor reattaches a body to.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…he closing diagnosis Three review findings, all of them assertions that passed for less than they claimed. The direct-fetcher scan led with `(^|[^[:alnum:]_./-])`, which excludes / and - from the character allowed before the command name, so a PATH-QUALIFIED fetcher was invisible to it. A reviewer changed hack/install-polaris.sh's tarball fetch to `/usr/bin/curl -fsSL` and the gate stayed green: the positive assertions still passed because the CHECKSUM fetch in the same file still called fetch_to. That is the PR #351 shape exactly -- one hardened fetch and one bare one beside it -- surviving the assertion whose contract is 'no direct fetcher invocation at all'. The pattern is now defined once, shared by the installer and action scans, and admits an optional path prefix and the `$(command -v curl)` spelling. It is deliberately NOT used for the flag assertions on the helper: fetch_to's own diagnostic contains the words '(curl exit ${status})', which the wider pattern matches, so curl_command_lines stays narrow and gains only the path prefix. Case C counted sleep INVOCATIONS, so KOLLECT_FETCH_RETRY_DELAY=0 -- a backoff that does not back off -- survived the whole suite under a failure message that claimed to forbid it. It now asserts the delay. Deleting fetch_to's closing summary also survived: the per-attempt retry messages already name the host and carry curl's exit code, so nothing pinned the last-attempt diagnosis -- the one thing this lane advertises as the answer to CI-KINDLOOP-01's `chmod: No such file or directory`. Case D now reads the LAST line of stderr and requires it to name the host, carry the exit code, and not promise another attempt. fetch_to's header now records that it takes ownership of its destination path: on any failure it deletes the file, which is strictly more destructive than `curl -f -o`. No caller is exposed today, but that is a property of the callers, not of the helper. 38 mutants, 38 killed, each verified by message text.
konih
added a commit
that referenced
this pull request
Sep 2, 2026
…the pattern CORRECTING TWO CLAIMS FROM THE LAST COMMIT FIRST. It said fetcher_selftest makes re-running prior mutants 'a property of the file rather than a claim in a commit message'. That was true of the regex and false of the pipeline that applies it: the harness re-implemented the sentinel with its own printf instead of calling fetcher_lines. Delete the sed from fetcher_lines and every self-test assertion still passed while a bare `curl -fsSL` at column 0 in an installer -- the literal PR #351 defect -- shipped green. Verified against the previous commit: that mutant exits 0 and prints 'All CI-FETCHLIB-01 tests passed'. It is the same failure mode as the round before it, reproduced one layer up, inside the mechanism added to prevent it. The corpus now writes to a real file and calls fetcher_lines, which covers logical_lines too, and its first entry sits at column 0 so the sentinel is load-bearing in the suite that guards it. It also said the grep portability problem 'cost real time'. Overstated. The divergence is real but was observed in this agent's own zsh, where grep is a harness shell function execing a ugrep-compatible binary. No ugrep is on PATH; /usr/bin/grep and /bin/grep are both GNU 3.12, and gate scripts run under bash, so no gate on this machine ever resolved grep to anything but GNU. Both of the previous commit's 'two engine' sweeps were GNU grep twice over. The construct is still worth dropping -- POSIX leaves ^ undefined outside the leading position -- but the honest argument for the sentinel form is that it matches 14/14 of the corpus where v1 managed 6/14 and v2 7/14, not that it fixed a live bug. The comment now says only that, notes that the divergence is specific to alternating ^ with a NEGATED bracket expression, and no longer condemns the (^|[[:space:]]) form this same file still uses safely. The helm gate's twin scan inlined the same sentinel with no self-test at all; it now has OTHER_FETCHER_RE, other_fetcher_lines and its own corpus, column-0 entry included. Also: the corpus sampled neither aria2c nor the optional 3 in python3?, so narrowing the alternation to drop either passed every assertion -- both are covered now, with env and eval spellings alongside. And the KNOWN PERMISSIVE note gains the second false positive it was missing: the trailing-comment strip skips quoted lines, so a quoted line with a trailing comment naming a path that ends in a fetcher reds this gate. 52 mutants, 52 killed, including the neutered-sentinel escape in isolation and combined with the column-0 curl. No source file changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Part 2 of 3 for DIST-AH-03 (P0), implementing step 2 of the ADR-0709 migration runbook. Moves the Helm chart to
ghcr.io/platformrelay/charts/kollect; the controller image does not move.The defect
The chart coordinate was derived three independent times in the
releasejob:id: chartoci://${REGISTRY}/${OWNER}—helm pushappends the chart namePublish and sign Helm chart${REGISTRY}/${OWNER}/kollect@${DIGEST}from scratchPush Artifact Hub metadataenv.IMAGE_NAME— the image variableEditing only the first would have left
cosign signsigning the old path and the Artifact Hub metadata pushing to it. The metadata step iscontinue-on-error: true, so that failure would have surfaced as a::warning::on a green release — and Verified Publisher would have broken silently.The change
A new
CHART_NAMEenv, separate fromIMAGE_NAME, with a comment on why they must not share a variable. Thechartstep is now the only derivation: it buildsCHART_BASEonce and emitsoci(the parent, forhelm push) andrepository(the full chart repo, for signing and metadata) from it. Both downstream steps read those outputs and have no${{ }}left in theirrun:bodies — the repo's script-injection posture (githubactions:S7636) is preserved.Added a post-push assertion: the publish step parses
Pushed:out ofhelm pushoutput and exits non-zero if the reference is not under the expected repository, beforecosign signruns. That is the guard against a future silent desync.The DR-FIND-07 collision guard is retained with its logic unchanged. Only stale comments were corrected: the chart no longer shares the image path, but bare
0.14.0–0.19.0chart tags stay in the image repository permanently, so the collision it describes is still reachable there.The gate
New
hack/test/dist_release_chart_path_test.sh(auto-registered by thedist_*_test.shglob). It does not grep for the path. It executes the threerun:bodies underenv -iagainst stubhelm/cosign/orasand asserts the references those tools actually receive — using a synthetic registry, owner and chart name so any hardcodedghcr.io,platformrelayorkollectreds, then a second production-shaped run pinning the exact ADR coordinate.Mutation-tested against five regressions, each rejected with the intended message: metadata push reverted to
${IMAGE_NAME}; publish step re-deriving fromrepository_owner;CHART_BASEmissing thechartssegment; post-push assertion deleted;cosignref hardcoded.Gates
dist_release_chart_path_test.sh,dist_artifacthub_release_test.sh,dist_ci_wiring_test.sh,dist_artifacthub_chart_test.sh,dist_olm_image_digest_test.sh,dist_adr_0709_indexed_test.sh,hack/lint-shell.sh, YAML parse — all green.Note for reviewers
.github/release-notes-install.mdis a fourth consumer. It needs no edit — it appends/kollecttoCHART_OCI— but it hardcodes that segment rather than reading a variable, so it will not follow a future chart rename.Refs: DIST-AH-03, DR-FIND-07