-
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.
* first cut at redis * fix startup dependencies on redis * kombu cleanup - fail silently * mypy * add redis_host environment override * update REDIS_HOST env var in docker-compose.dev.yml * update the rest of the docker files * update contributing guide * renaming cache to cache_volume * add redis password to various deployments * try setting up pr testing for helm * fix indent * hopefully this release version actually exists * fix command line option to --chart-dirs * fetch-depth 0 * edit values.yaml * try setting ct working directory * bypass testing only on change for now * move files and lint them * update helm testing * some issues suggest using --config works * add vespa repo * add postgresql repo * increase timeout * try amd64 runner * fix redis password reference * add comment to helm chart testing workflow * rename helm testing workflow to disable it --------- Co-authored-by: Richard Kuo <rkuo@rkuo.com>
- Loading branch information
1 parent
aeb6060
commit 2933c35
Showing
43 changed files
with
268 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 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 ] | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: Amd64 | ||
|
||
# fetch-depth 0 is required for helm/chart-testing-action | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v4.2.0 | ||
with: | ||
version: v3.14.4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
cache-dependency-path: | | ||
backend/requirements/default.txt | ||
backend/requirements/dev.txt | ||
backend/requirements/model_server.txt | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install -r backend/requirements/default.txt | ||
pip install -r backend/requirements/dev.txt | ||
pip install -r backend/requirements/model_server.txt | ||
|
||
- name: Set up chart-testing | ||
uses: helm/chart-testing-action@v2.6.1 | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
|
||
- 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 }} | ||
|
||
- name: Create kind cluster | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/kind-action@v1.10.0 | ||
|
||
- 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 }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
|
||
chart-dirs: | ||
- deployment/helm/charts | ||
|
||
chart-repos: | ||
- vespa=https://unoplat.github.io/vespa-helm-charts | ||
- postgresql=https://charts.bitnami.com/bitnami | ||
|
||
helm-extra-args: --timeout 900s | ||
|
||
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
Oops, something went wrong.