Skip to content

Commit

Permalink
Fix helm chart publishing (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
lferran authored Jan 29, 2024
1 parent a61e6c5 commit 2ab2303
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,19 @@ jobs:
- name: Set helm package image
id: version_step
run: |-
HELM_PACKAGE_VERSION=`cat VERSION`
NUCLIADB_IMAGE_VERSION=${{ steps.env-vars.outputs.short_sha }}
sed -i.bak "s#99999.99999.99999#$NUCLIADB_IMAGE_VERSION#" ./charts/nucliadb/Chart.yaml
echo "helm_package_version=$HELM_PACKAGE_VERSION" >> $GITHUB_OUTPUT
python bump.py --build=${{github.run_number}}
DOCKER_VERSION=`cat VERSION`
# Helm package versioning does not support '.postX'. Convert to '+postX'
HELM_VERSION=`echo $DOCKER_VERSION | sed 's/.post/+post/'`
# Update chart with versions
echo "HELM_VERSION=$HELM_VERSION"
echo "DOCKER_VERSION=$DOCKER_VERSION"
sed -i.bak "s#99999.99999.99999#$HELM_VERSION#" ./charts/nucliadb/Chart.yaml
sed -i.bak "s#88888.88888.88888#$DOCKER_VERSION#" ./charts/nucliadb/Chart.yaml
echo "helm_version=$HELM_VERSION" >> $GITHUB_OUTPUT
- name: Configure Git
run: |
Expand All @@ -194,7 +203,7 @@ jobs:
run: |-
helm lint charts/nucliadb
helm package charts/nucliadb
curl --data-binary "@nucliadb-${{ steps.version_step.outputs.helm_package_version }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
curl --data-binary "@nucliadb-${{ steps.version_step.outputs.helm_version }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
# Not working yet, disabled for now
# - name: Repository Dispatch
Expand Down
2 changes: 1 addition & 1 deletion charts/nucliadb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: NucliaDB Chart for standalone deployment
name: nucliadb
version: 99999.99999.99999
appVersion: 99999.99999.99999
appVersion: 88888.88888.88888
keywords:
- nucliadb
- nuclia
Expand Down
2 changes: 1 addition & 1 deletion charts/nucliadb/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
serviceAccount: {{ .Values.serviceAccount | default "default" }}
containers:
- name: app
image: "{{ .Values.image }}:{{ .Values.imageVersion | default .Chart.Version }}"
image: "{{ .Values.image }}:{{ .Values.imageVersion | default .Chart.AppVersion }}"
securityContext:
privileged: false
imagePullPolicy: {{ .Values.imagePullPolicy }}
Expand Down
2 changes: 1 addition & 1 deletion nucliadb/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ uvicorn<0.19.0
pydantic_argparse
nucliadb-node-binding>=2.26.0

aiohttp>=3.9.0
aiohttp>=3.9.0,<3.9.2
lru-dict>=1.1.7
backoff
aiofiles>=0.8.0
Expand Down
2 changes: 1 addition & 1 deletion nucliadb_utils/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pydantic>=1.8.2,<2.0
aiohttp>=3.9.0
aiohttp>=3.9.0,<3.9.2
prometheus-client>=0.12.0
types-requests>=2.27.7
mmh3>=3.0.0
Expand Down

3 comments on commit 2ab2303

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 2ab2303 Previous: d4afd82 Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 12831.77185423168 iter/sec (stddev: 6.625547646571925e-7) 13028.533525895236 iter/sec (stddev: 4.192637045977425e-7) 1.02

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 2ab2303 Previous: d4afd82 Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 13131.933957936257 iter/sec (stddev: 4.6627113459268064e-7) 13028.533525895236 iter/sec (stddev: 4.192637045977425e-7) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 2ab2303 Previous: d4afd82 Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 12936.07807449228 iter/sec (stddev: 7.847533776183533e-7) 13028.533525895236 iter/sec (stddev: 4.192637045977425e-7) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.