Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(check-chart-versions-bump): don't fail on new chart #598

Merged

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Aug 12, 2023

This PR fixes the check-chart-versions-bump GitHub Action workflow to not fail if the pull request adds a new chart (ie the corresponding charts/<chart-name>/Chart.yaml file doesn't exist in the target branch) or if the pull request Chart.yaml version isn't set.

It also refactors the workflow to use a multi jobs mechanism similar to #596 and to run only if there are changes in ./charts/**.

Tested on a fork.

Example with a new anewchart chart and a change in accountapp chart for which the version hasn't been bumped:

image image

Info: charts/anewchart/Chart.yaml doesn't exist or a version can't be read from it on the target branch.
Info: the version of the 'anewchart' chart has been bumped from '' to '1.2.3'.

@lemeurherve lemeurherve force-pushed the fix-check-chart-version-bump branch 4 times, most recently from dcdba63 to 0fe6c15 Compare August 12, 2023 17:49
lemeurherve added a commit to lemeurherve/helm-charts that referenced this pull request Aug 12, 2023
lemeurherve added a commit to lemeurherve/helm-charts that referenced this pull request Aug 12, 2023
* feat: test only modified charts with unit tests on pull requests

* run only on charts/** changes

* small improvements replicated from jenkins-infra#598
@lemeurherve lemeurherve changed the title fix(check-chart-versions-bump): don't fail on new chart pull request fix(check-chart-versions-bump): don't fail on new chart Aug 12, 2023
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

LGTM!

Same as #596 (review): not blocking (mostly nitpicking), but the value of using separated jobs is not clear to me.

@dduportal dduportal merged commit dc5d51d into jenkins-infra:main Aug 15, 2023
7 checks passed
@lemeurherve lemeurherve deleted the fix-check-chart-version-bump branch August 20, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants