Skip to content

Fix helm chart validation workflow#4479

Open
nikola-jokic wants to merge 1 commit intomasterfrom
nikola-jokic/fix-helm-test
Open

Fix helm chart validation workflow#4479
nikola-jokic wants to merge 1 commit intomasterfrom
nikola-jokic/fix-helm-test

Conversation

@nikola-jokic
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 2, 2026 15:50
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

Hello! Thank you for your contribution.

Please review our contribution guidelines to understand the project's testing and code conventions.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GHA Helm chart validation pipeline to lint/test the intended set of charts (including experimental ones) and adjusts the testing approach used in CI.

Changes:

  • Add experimental charts to the chart-testing (ct) config so they’re included in linting.
  • Populate the validate-chart job with checkout/helm/python/ct steps and run ct lint.
  • Remove Go-based template tests for experimental charts and run helm-unittest for experimental charts in CI.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
charts/gha-runner-scale-set-experimental/tests/template_test.go Removes Go-based template test for experimental scale-set chart.
charts/gha-runner-scale-set-controller-experimental/tests/template_test.go Removes Go-based template test for experimental controller chart.
charts/.ci/ct-config-gha.yaml Expands ct chart list to include experimental charts.
.github/workflows/gha-validate-chart.yaml Reworks validation workflow: adds dedicated lint job steps and runs helm-unittest for experimental charts; removes some prior CI steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +56 to +60
- name: Run chart-testing (list-changed)
id: list-changed
run: |
ct version
changed=$(ct list-changed --config charts/.ci/ct-config-gha.yaml)
contains(steps.list-changed.outputs.changed_charts, 'charts/gha-runner-scale-set-controller-experimental') ||
contains(steps.list-changed.outputs.changed_charts, 'charts/gha-runner-scale-set-experimental')
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest.git
Comment on lines 110 to 114
- name: Run helm-unittest (gha-runner-scale-set-controller-experimental)
if: contains(steps.list-changed.outputs.changed_charts, 'charts/gha-runner-scale-set-controller-experimental')
run: |
helm unittest ./charts/gha-runner-scale-set-controller-experimental/

- name: Run helm-unittest (gha-runner-scale-set-experimental)
Comment on lines 110 to 113
- name: Run helm-unittest (gha-runner-scale-set-controller-experimental)
if: contains(steps.list-changed.outputs.changed_charts, 'charts/gha-runner-scale-set-controller-experimental')
run: |
helm unittest ./charts/gha-runner-scale-set-controller-experimental/

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