-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* re-enable helm * allow manual triggering * change vespa host * change vespa chart location * update Chart.lock * update ct.yaml with new vespa chart repo * bump vespa to 0.2.5 * update Chart.lock * update to vespa 0.2.6 * bump vespa to 0.2.7 * bump to 0.2.8 * bump version * try appending the ordinal * try new configmap * bump vespa * bump vespa * add debug to see if we can figure out what ct install thinks is failing * add debug flag to helm * try disabling nginx because of KinD * use helm-extra-set-args * try command line * try pointing test connection to the correct service name * bump vespa to 0.2.12 * update chart.lock * bump vespa to 0.2.13 * bump vespa to 0.2.14 * bump vespa * bump vespa * re-enable chart testing only on changes * name the check more specifically than "lint-test" * add some debugging * try setting remote * might have to specify chart dirs directly * add comments --------- Co-authored-by: Richard Kuo <[email protected]>
- Loading branch information
1 parent
cc2f584
commit 9d57f34
Showing
6 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
# This workflow is intentionally disabled while we're still working on it | ||
# It's close to ready, but a race condition needs to be fixed with | ||
# API server and Vespa startup, and it needs to have a way to build/test against | ||
# local containers | ||
|
||
name: Helm - Lint and Test Charts | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
workflow_dispatch: # Allows manual triggering | ||
|
||
jobs: | ||
lint-test: | ||
helm-chart-check: | ||
# See https://runs-on.com/runners/linux/ | ||
runs-on: [runs-on,runner=8cpu-linux-x64,hdd=256,"run-id=${{ github.run_id }}"] | ||
|
||
# fetch-depth 0 is required for helm/chart-testing-action | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -28,7 +24,7 @@ jobs: | |
version: v3.14.4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
@@ -45,24 +41,31 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
# even though we specify chart-dirs in ct.yaml, it isn't used by ct for the list-changed command... | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
echo "default_branch: ${{ github.event.repository.default_branch }}" | ||
changed=$(ct list-changed --remote origin --target-branch ${{ github.event.repository.default_branch }} --chart-dirs deployment/helm/charts) | ||
echo "list-changed output: $changed" | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
# lint all charts if any changes were detected | ||
- name: Run chart-testing (lint) | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --all --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --config ct.yaml --all | ||
# the following would lint only changed charts, but linting isn't expensive | ||
# run: ct lint --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
- name: Create kind cluster | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (install) | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --all --config ct.yaml | ||
# run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --all --helm-extra-set-args="--set=nginx.enabled=false" --debug --config ct.yaml | ||
# the following would install only changed charts, but we only have one chart so | ||
# don't worry about that for now | ||
# run: ct install --target-branch ${{ github.event.repository.default_branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
|
||
# still have to specify this on the command line for list-changed | ||
chart-dirs: | ||
- deployment/helm/charts | ||
|
||
# must be kept in sync with Chart.yaml | ||
chart-repos: | ||
- vespa=https://unoplat.github.io/vespa-helm-charts | ||
- vespa=https://danswer-ai.github.io/vespa-helm-charts | ||
- postgresql=https://charts.bitnami.com/bitnami | ||
|
||
helm-extra-args: --timeout 600s | ||
helm-extra-args: --debug --timeout 600s | ||
|
||
# nginx appears to not work on kind, likely due to lack of loadbalancer support | ||
# helm-extra-set-args also only works on the command line, not in this yaml | ||
# helm-extra-set-args: --set=nginx.enabled=false | ||
|
||
validate-maintainers: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters