Skip to content

Improve error message for helm chart version#320

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
SgtCoDFish:helm-chart-version-warn
Aug 11, 2025
Merged

Improve error message for helm chart version#320
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
SgtCoDFish:helm-chart-version-warn

Conversation

@SgtCoDFish
Copy link
Copy Markdown
Member

@SgtCoDFish SgtCoDFish commented Aug 11, 2025

The following error is common if a repo does not locally contain any tags:

$ make test-e2e
make/_shared/helm///helm.mk:35: *** helm_chart_version "aaaaaaaaaaaaaa-dirty" should start with a "v".  Stop.

This is because makefile-modules uses tag-based logic to determine the chart version. Without tags, it defaults to a hash which fails the check edited by this commit.

This commit adds a hint about pulling remote tags to help users diagnose this issue and fix it.


I tested this locally and it produced the error as expected (I was just checking for like syntax errors or something like that):

$ make test-e2e
make/_shared/helm///helm.mk:35: *** helm_chart_version "47dac174b6f5c3-dirty" should start with a "v" - did you forget to pull tags from the remote repository?.  Stop.

@cert-manager-prow cert-manager-prow Bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Aug 11, 2025
The following error is common if a repo does not locally contain any
tags:

```console
$ make test-e2e
make/_shared/helm///helm.mk:35: *** helm_chart_version "1bdf96cfeb0fa2-dirty" should start with a "v".  Stop.
```

This is because makefile-modules uses tag-based logic to determine
the chart version. Without tags, it defaults to a hash which fails
the check edited by this commit.

This commit adds a hint about pulling remote tags to help users diagnose
this issue and fix it.

Signed-off-by: Ashley Davis <ashley.davis@cyberark.com>
@SgtCoDFish SgtCoDFish force-pushed the helm-chart-version-warn branch from f00a85e to 655d43c Compare August 11, 2025 10:07
@cert-manager-prow cert-manager-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 11, 2025
Copy link
Copy Markdown
Member

@erikgb erikgb left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2025
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: erikgb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2025
@cert-manager-prow cert-manager-prow Bot merged commit dec7779 into cert-manager:main Aug 11, 2025
4 checks passed
@SgtCoDFish SgtCoDFish deleted the helm-chart-version-warn branch August 11, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants