Repository navigation
fix: Refuse helm chart publish when version already exists - #331
VedantMadane wants to merge 3 commits into
Conversation
Rosetta Triage ReviewSummary: Adds a "Refuse overwrite of existing chart version" step to the Findings:
Caveats:
Suggestions:
Questions:
Automated triage by Rosetta agent |
- fail publish when chart version already exists (no silent overwrite) Fixes griddynamics#324 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
b703124 to
2ab3025
Compare
isolomatov-gd
left a comment
There was a problem hiding this comment.
@VedantMadane thank you for picking this up.
The new step needs three fixes before it can merge:
- Read
versionandnamefromsrc/helm-charts/rosetta-mcp-server/Chart.yaml. The step runs at the repo root, where there is noChart.yaml. Withset -euo pipefail, thegrepfails and every chart publish stops at this step. - Check the registry that the workflow pushes to:
oci://registry-1.docker.io/griddynamics/<chart name>. The step checksghcr.io/<owner>/charts/$(basename $(pwd)). That path resolves to.../charts/rosetta. The chart name isrosetta-mcp-helm-chart, and the project does not publish to GHCR. So an existing version is never found. - Keep registry errors visible.
2>/dev/nullmakes a network or auth failure look like "version not published", and the push then overwrites the chart.
Use the check_version and Fail if version exists steps in publish-rosetta-cli.yml as the pattern. Read CHART_PATH the same way the existing push step does.
The publish job runs only on main, so PR CI never runs this step. Please run the check locally against the current chart version (0.4.3, which is already published) and paste the output. The expected result is "already published".
Read Chart.yaml from src/helm-charts/rosetta-mcp-server; probe oci://registry-1.docker.io/griddynamics/<name>; keep pull errors visible; mirror check_version/Fail if exists pattern. Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
|
Addressed @isolomatov-gd review:
Local check (current chart So the check correctly treats 0.4.3 as already published. Head: |
|
Hi @isolomatov-gd — gentle re-review bump. Head 6d621ca addresses the three points (Chart.yaml path, Docker Hub OCI probe, visible helm pull errors). Local helm pull … --version 0.4.3 confirmed already-published. Thanks! |
|
Verified CR items on head
|
Rosetta Triage ReviewSummary: This PR adds a pre-publish Helm OCI probe and fails when the chart version is already published, preventing an in-place overwrite. Findings:
Suggestions:
Automated triage by Rosetta agent |
Summary
Refuse helm chart publish when version already exists
Changes
Fixes #324