Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrisse committed May 9, 2024
2 parents 9acbfc1 + 5393e34 commit c560e47
Show file tree
Hide file tree
Showing 46 changed files with 291 additions and 114 deletions.
3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.6.1"
}
37 changes: 37 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"packages": {
".": {
"release-type": "simple",
"changelog-path": "CHANGELOG.md",
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false }
],
"versioning": "default",
"extra-files": [
"pyproject.toml",
{
"type": "generic",
"path": "**/Chart.yaml",
"glob": true
},
{
"type": "generic",
"path": "**/values.yaml",
"glob": true
},
{
"type": "generic",
"path": "**/zarf.yaml",
"glob": true
},
{
"type": "generic",
"path": "**/uds-bundle.yaml",
"glob": true
}
]
}
}
}
17 changes: 15 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,25 @@ jobs:
docker image prune -af
rm zarf-package-leapfrogai-api-*.tar.zst
- name: Build and Publish UI
run: |
docker buildx build --platform amd64,arm64 -t ghcr.io/defenseunicorns/leapfrogai/leapfrogai-ui:${{ steps.get_version.outputs.version-without-v }} --push src/leapfrogai_ui
zarf package create packages/ui --set=IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture amd64 --confirm
zarf package create packages/ui --set=IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture arm64 --confirm
zarf package publish zarf-package-leapfrogai-ui-amd64-${{ steps.get_version.outputs.version-without-v }}.tar.zst oci://ghcr.io/defenseunicorns/packages/leapfrogai
zarf package publish zarf-package-leapfrogai-ui-arm64-${{ steps.get_version.outputs.version-without-v }}.tar.zst oci://ghcr.io/defenseunicorns/packages/leapfrogai
docker image prune -af
rm zarf-package-leapfrogai-ui-*.tar.zst
- name: Build and Publish repeater
run: |
docker buildx build --platform amd64,arm64 -t ghcr.io/defenseunicorns/leapfrogai/repeater:${{ steps.get_version.outputs.version-without-v }} --push packages/repeater
zarf package create packages/repeater --set=LEAPFROGAI_IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture amd64 --confirm
zarf package create packages/repeater --set=LEAPFROGAI_IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture arm64 --confirm
zarf package create packages/repeater --set=IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture amd64 --confirm
zarf package create packages/repeater --set=IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }} --architecture arm64 --confirm
zarf package publish zarf-package-repeater-amd64-${{ steps.get_version.outputs.version-without-v }}.tar.zst oci://ghcr.io/defenseunicorns/packages/leapfrogai
zarf package publish zarf-package-repeater-arm64-${{ steps.get_version.outputs.version-without-v }}.tar.zst oci://ghcr.io/defenseunicorns/packages/leapfrogai
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/tag-for-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: Tag LeapfrogAI

on:
push:
branches:
- main

jobs:
tag-new-version:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Create release tag
id: tag
uses: google-github-actions/release-please-action@a37ac6e4f6449ce8b3f7607e4d97d0146028dc0b # v4
with:
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

## [0.6.1](https://github.com/defenseunicorns/leapfrogai/compare/v0.6.0...v0.6.1) (2024-04-12)

### Features

### Bug Fixes
* fix: remove hardcoded gpu request value by @YrrepNoj in https://github.com/defenseunicorns/leapfrogai/pull/386

### Miscellaneous
* chore: update version refs to 0.6.1 by @YrrepNoj in https://github.com/defenseunicorns/leapfrogai/pull/389


## [0.6.0](https://github.com/defenseunicorns/leapfrogai/releases/tag/v0.6.0) (2024-04-12)

### Features

### Bug Fixes

### Miscellaneous
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ build-api: local-registry setup-api-deps ## Build the leapfrogai_api container a
uds zarf package create packages/api -o packages/api --registry-override=ghcr.io=localhost:5000 --insecure --set LEAPFROGAI_IMAGE_VERSION=${LOCAL_VERSION} --confirm


build-ui: ## Build the leapfrogai_ui container and Zarf package
## Build the image (and tag it for the local registry)
docker build -t ghcr.io/defenseunicorns/leapfrogai/leapfrogai-ui:${LOCAL_VERSION} src/leapfrogai_ui
docker tag ghcr.io/defenseunicorns/leapfrogai/leapfrogai-ui:${LOCAL_VERSION} localhost:5000/defenseunicorns/leapfrogai/leapfrogai-ui:${LOCAL_VERSION}

## Push the image to the local registry (Zarf is super slow if the image is only in the local daemon)
docker push localhost:5000/defenseunicorns/leapfrogai/leapfrogai-ui:${LOCAL_VERSION}

## Build the Zarf package
uds zarf package create packages/ui -o packages/ui --registry-override=ghcr.io=localhost:5000 --insecure --set IMAGE_VERSION=${LOCAL_VERSION} --confirm


setup-llama-cpp-python-deps: sdk-wheel ## Download the wheels for the optional 'llama-cpp-python' dependencies
-rm packages/llama-cpp-python/build/*.whl
python -m pip wheel packages/llama-cpp-python -w packages/llama-cpp-python/build --find-links=${SDK_DEST}
Expand Down
2 changes: 2 additions & 0 deletions packages/api/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# x-release-please-start-version
version: 0.6.1
# x-release-please-end

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions packages/api/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
image:
# x-release-please-start-version
lfaiAPITag: 0.6.1
# x-release-please-end
kiwigridTag: 1.23.3

api:
Expand Down
2 changes: 2 additions & 0 deletions packages/api/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ components:
- name: leapfrogai
namespace: leapfrogai
localPath: chart
# x-release-please-start-version
version: 0.6.1
# x-release-please-end
valuesFiles:
- "lfai-values.yaml"
images:
Expand Down
2 changes: 2 additions & 0 deletions packages/llama-cpp-python/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# x-release-please-start-version
version: 0.6.1
# x-release-please-end

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions packages/llama-cpp-python/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ image:
repository: "ghcr.io/defenseunicorns/leapfrogai/llama-cpp-python"
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
# x-release-please-start-version
tag: 0.6.1
# x-release-please-end

nameOverride: llama-cpp-python
fullnameOverride: ""
Expand Down
5 changes: 4 additions & 1 deletion packages/llama-cpp-python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[project]
name = "lfai-llama-cpp-python"
version = "0.6.1"
description = "A LeapfrogAI API-compatible llama-cpp-python wrapper for quantized and un-quantized model inferencing on CPU infrastructures."

# x-release-please-start-version
version = "0.6.1"
# x-release-please-end

dependencies = [
"llama-cpp-python == 0.2.28",
"leapfrogai-sdk",
Expand Down
2 changes: 2 additions & 0 deletions packages/llama-cpp-python/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ components:
namespace: leapfrogai
localPath: chart
releaseName: llama-cpp-python-model
# x-release-please-start-version
version: 0.6.1
# x-release-please-end
valuesFiles:
- "llama-cpp-python-values.yaml"
images:
Expand Down
2 changes: 2 additions & 0 deletions packages/repeater/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# x-release-please-start-version
version: 0.6.1
# x-release-please-end

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions packages/repeater/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ image:
repository: "ghcr.io/defenseunicorns/leapfrogai/repeater"
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
# x-release-please-start-version
tag: 0.6.1
# x-release-please-end

nameOverride: repeater
fullnameOverride: ""
Expand Down
5 changes: 4 additions & 1 deletion packages/repeater/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[project]
name = "lfai-repeater"
version = "0.6.1"
description = "A LeapfrogAI API-compatible pseudo-model for testing the API."

# x-release-please-start-version
version = "0.6.1"
# x-release-please-end

dependencies = [
"leapfrogai-sdk",
]
Expand Down
2 changes: 2 additions & 0 deletions packages/repeater/zarf-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package:
create:
set:
image_repository: "ghcr.io/defenseunicorns/leapfrogai/repeater"
# x-release-please-start-version
image_version: 0.6.1
# x-release-please-end
name: repeater
max_package_size: "1000000000"
deploy:
Expand Down
2 changes: 2 additions & 0 deletions packages/repeater/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ components:
namespace: leapfrogai
localPath: chart
releaseName: repeater
# x-release-please-start-version
version: 0.6.1
# x-release-please-end
valuesFiles:
- "repeater-values.yaml"
images:
Expand Down
2 changes: 2 additions & 0 deletions packages/text-embeddings/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# x-release-please-start-version
version: 0.6.1
# x-release-please-end

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions packages/text-embeddings/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ image:
repository: "ghcr.io/defenseunicorns/leapfrogai/text-embeddings"
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
# x-release-please-start-version
tag: 0.6.1
# x-release-please-end

nameOverride: text-embeddings
fullnameOverride: ""
Expand Down
5 changes: 4 additions & 1 deletion packages/text-embeddings/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[project]
name = "lfai-text-embeddings"
version = "0.6.1"
description = "A LeapfrogAI API-compatible embeddings library wrapper for text-based embedding generation."

# x-release-please-start-version
version = "0.6.1"
# x-release-please-end

dependencies = [
"InstructorEmbedding >= 1.0.1",
"torch == 2.1.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/text-embeddings/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ components:
namespace: leapfrogai
localPath: chart
releaseName: text-embeddings-model
# x-release-please-start-version
version: 0.6.1
# x-release-please-end
valuesFiles:
- "embedding-values.yaml"
images:
Expand Down
6 changes: 4 additions & 2 deletions packages/ui/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
# x-release-please-start-version
version: 0.6.1
# x-release-please-end

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: '0.1.8'
appVersion: "0.1.8"
4 changes: 3 additions & 1 deletion packages/ui/chart/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ spec:
spec:
containers:
- name: {{ .Values.package.name }}
image: 'ghcr.io/defenseunicorns/leapfrogai/leapfrogai-ui:###ZARF_CONST_IMAGE_VERSION###'
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 3000
env:
Expand All @@ -41,6 +42,7 @@ spec:
secretKeyRef:
name: supabase-bootstrap-jwt
key: anon-key
optional: true
{{ end }}
- name: PUBLIC_DISABLE_KEYCLOAK
value: '###ZARF_VAR_DISABLE_KEYCLOAK###'
Expand Down
12 changes: 12 additions & 0 deletions packages/ui/chart/ui-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image:
repository: "ghcr.io/defenseunicorns/leapfrogai/leapfrogai-ui"
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: '###ZARF_CONST_IMAGE_VERSION###'

package:
name: lfaiui
host: lfaiui
supabase_url: '###ZARF_VAR_SUPABASE_URL###'
supabase_anon_key: '###ZARF_VAR_SUPABASE_ANON_KEY###'
message_length_limit: '###ZARF_VAR_MESSAGE_LENGTH_LIMIT###'
6 changes: 0 additions & 6 deletions packages/ui/chart/values.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions packages/ui/zarf-config.yaml

This file was deleted.

Loading

0 comments on commit c560e47

Please sign in to comment.