Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/preview-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ jobs:
run: |
RUNTIME_API_VERSION=$(yq '.version' charts/runtime-api/Chart.yaml)
RUNTIME_API_PREVIEW="${RUNTIME_API_VERSION}-alpha.${{ github.event.pull_request.number }}"
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
RUNTIME_API_PREVIEW_REPOSITORY="oci://ghcr.io/${REPO_OWNER}/helm-charts"

yq -i "(.dependencies[] | select(.name == \"runtime-api\")).version = \"${RUNTIME_API_PREVIEW}\"" charts/openhands/Chart.yaml
yq -i "(.dependencies[] | select(.name == \"runtime-api\")).repository = \"${RUNTIME_API_PREVIEW_REPOSITORY}\"" charts/openhands/Chart.yaml

- name: Update automation dependency version
if: steps.check.outputs.should_publish == 'true' && matrix.chart.name == 'openhands' && needs.detect-changes.outputs.automation == 'true'
Expand Down Expand Up @@ -319,9 +322,12 @@ jobs:
run: |
RUNTIME_API_VERSION=$(yq '.version' charts/runtime-api/Chart.yaml)
RUNTIME_API_PREVIEW="${RUNTIME_API_VERSION}-alpha.${{ github.event.pull_request.number }}"
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
RUNTIME_API_PREVIEW_REPOSITORY="oci://ghcr.io/${REPO_OWNER}/helm-charts"

echo "Updating openhands runtime-api dependency to ${RUNTIME_API_PREVIEW}"
echo "Updating openhands runtime-api dependency to ${RUNTIME_API_PREVIEW} from ${RUNTIME_API_PREVIEW_REPOSITORY}"
yq -i "(.dependencies[] | select(.name == \"runtime-api\")).version = \"${RUNTIME_API_PREVIEW}\"" charts/openhands/Chart.yaml
yq -i "(.dependencies[] | select(.name == \"runtime-api\")).repository = \"${RUNTIME_API_PREVIEW_REPOSITORY}\"" charts/openhands/Chart.yaml

- name: Update automation dependency version for openhands
if: matrix.chart.name == 'openhands' && needs.detect-changes.outputs.automation == 'true'
Expand Down
2 changes: 1 addition & 1 deletion charts/openhands/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
version: 1.9.0
- name: runtime-api
repository: oci://ghcr.io/all-hands-ai/helm-charts
version: 0.3.3
version: 0.3.4
- name: automation
repository: oci://ghcr.io/all-hands-ai/helm-charts
version: 0.1.8
Expand Down
4 changes: 2 additions & 2 deletions charts/openhands/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: OpenHands is an AI-driven autonomous software engineer
name: openhands
appVersion: cloud-1.29.1
version: 0.7.17
version: 0.7.18
maintainers:
- name: rbren
- name: xingyao
Expand Down Expand Up @@ -38,7 +38,7 @@ dependencies:
condition: replicated.enabled
- name: runtime-api
repository: oci://ghcr.io/all-hands-ai/helm-charts
version: 0.3.3
version: 0.3.4
condition: runtime-api.enabled
- name: automation
repository: oci://ghcr.io/all-hands-ai/helm-charts
Expand Down
2 changes: 1 addition & 1 deletion charts/runtime-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: runtime-api
description: A Helm chart for the FastAPI application
version: 0.3.3 # Change this to trigger a new helm chart version being published
version: 0.3.4 # Change this to trigger a new helm chart version being published
appVersion: "1.0.0"
dependencies:
- name: postgresql
Expand Down
2 changes: 2 additions & 0 deletions charts/runtime-api/templates/_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
- name: RUNTIME_IDLE_SECONDS
value: {{ .Values.cleanup.idle_seconds | default 1200 | quote }}
- name: RUNTIME_DEAD_SECONDS
value: {{ printf "%.0f" .Values.cleanup.dead_seconds | quote }}
{{- if .Values.runtimeInSameCluster }}
Expand Down
2 changes: 0 additions & 2 deletions charts/runtime-api/templates/cleanup-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ spec:
value: {{ .Values.database.poolSize.cronjobs | default 2 | quote }}
- name: DB_MAX_OVERFLOW
value: {{ .Values.database.maxOverflow.cronjobs | default 5 | quote }}
- name: RUNTIME_IDLE_SECONDS
value: {{ .Values.cleanup.idle_seconds | default 1800 | quote }}
{{- if .Values.ingressBase.enabled }}
volumeMounts:
- name: ingress-base-config
Expand Down
Loading