Skip to content

fix(ci): add changed guard and ct setup to chart-e2e job#289

Open
whg517 wants to merge 1 commit into
zncdatadev:mainfrom
whg517:fix/chart-e2e-add-changed-guard
Open

fix(ci): add changed guard and ct setup to chart-e2e job#289
whg517 wants to merge 1 commit into
zncdatadev:mainfrom
whg517:fix/chart-e2e-add-changed-guard

Conversation

@whg517
Copy link
Copy Markdown
Member

@whg517 whg517 commented May 14, 2026

chart-e2e currently runs on every PR regardless of chart changes. Add ct list-changed guard, helm/ct installation steps, and if conditions to skip e2e when chart is unchanged.

Copilot AI review requested due to automatic review settings May 14, 2026 04:31
Copy link
Copy Markdown

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

This PR updates the chart-e2e GitHub Actions job to avoid running chart end-to-end tests when no Helm chart changes are present, aligning CI cost with actual chart modifications.

Changes:

  • Add full git history checkout (fetch-depth: 0) so ct list-changed can diff correctly.
  • Install Helm + chart-testing dependencies (Helm, Python, helm/chart-testing-action) in the chart-e2e job.
  • Gate Go setup and make chart-e2e behind a ct list-changed result.

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

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs deploy/helm --target-branch ${{ github.event.repository.default_branch }})
Comment on lines +128 to +132
- name: Setup Chart Linting
id: lint
uses: helm/chart-testing-action@v2.8.0

- name: Run chart-testing (list-changed)
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