Skip to content

Fix CI lint script to lint all charts - #930

Open
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/fix-ci-lint-script
Open

Fix CI lint script to lint all charts#930
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/fix-ci-lint-script

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
  • lint_chart exited the whole script after the first chart, so only charts/sourcegraph was ever linted
  • Lint every chart even after a failure, report per-chart results, and exit with the first failing status

Amp-Thread-ID: https://ampcode.com/threads/T-01a04192-5b1d-7040-9dc3-76f8d5a10ab0

Checklist

Test plan

Before

$ cd deploy-sourcegraph-helm
$ ./scripts/ci/lint.sh
Linting chart sourcegraph


===== Lint Output =====
==> Linting charts/sourcegraph

1 chart(s) linted, 0 chart(s) failed

After

$ cd deploy-sourcegraph-helm
$ ./scripts/ci/lint.sh
Linting chart charts/sourcegraph


===== Lint Output: charts/sourcegraph =====
==> Linting charts/sourcegraph

1 chart(s) linted, 0 chart(s) failed
Linting chart charts/sourcegraph-migrator


===== Lint Output: charts/sourcegraph-migrator =====
==> Linting charts/sourcegraph-migrator

1 chart(s) linted, 0 chart(s) failed
Linting chart charts/sourcegraph-executor/k8s


===== Lint Output: charts/sourcegraph-executor/k8s =====
==> Linting charts/sourcegraph-executor/k8s

1 chart(s) linted, 0 chart(s) failed
Linting chart charts/sourcegraph-executor/dind


===== Lint Output: charts/sourcegraph-executor/dind =====
==> Linting charts/sourcegraph-executor/dind

1 chart(s) linted, 0 chart(s) failed

- lint_chart exited the whole script after the first chart, so only
  charts/sourcegraph was ever linted; migrator and executor were skipped
- charts/sourcegraph-executor is a parent directory of two charts (k8s,
  dind), not a chart, so its lint line would have failed anyway
- Lint each executor chart directly, with --set executor.queueName so the
  templates render instead of warning on empty metadata.name
- Lint every chart even after a failure, report per-chart results, and
  exit with the first failing status

Amp-Thread-ID: https://ampcode.com/threads/T-01a04192-5b1d-7040-9dc3-76f8d5a10ab0
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) August 27, 2026 05:15
@marcleblanc2
marcleblanc2 requested a review from a team August 27, 2026 05:15
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.

1 participant