Skip to content

Commit

Permalink
Merge branch 'main' into RAG_server_patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bangqipropel authored Jan 10, 2025
2 parents aa99611 + b4d9a85 commit adae440
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 11 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: publish_helm_chart

on:
repository_dispatch:
types: [ create-release ]
types: [ publish-helm-chart ]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -36,3 +36,15 @@ jobs:
charts_dir: charts/kaito
target_dir: charts/kaito
linting: off

create-release:
runs-on: ubuntu-latest
needs: [ publish-helm ]
steps:
- name: 'Dispatch release tag to create a release'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: create-release
client-payload: '{"tag": "${{ github.event.client_payload.tag }}"}'

6 changes: 3 additions & 3 deletions .github/workflows/publish-workspace-mcr-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
VERSION: ${{ needs.get-tag.outputs.release-tag }}
REGISTRY: ${{ secrets.KAITO_MCR_REGISTRY }}/public/aks/kaito

create-release:
publish-helm-chart:
runs-on: ubuntu-latest
needs: [ build-publish-mcr-image ]
steps:
- name: 'Dispatch release tag'
- name: 'Dispatch release tag for helm chart'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: create-release
event-type: publish-helm-chart
client-payload: '{"tag": "${{ github.event.client_payload.tag }}"}'
7 changes: 7 additions & 0 deletions .github/workflows/unit-tests-ragengine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ jobs:
- name: Run unit tests
run: |
make rag-service-test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}

- name: Generate APIs
run: |
make generate
- name: Run unit tests & Generate coverage
run: |
make unit-test
Expand Down
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,24 @@ unit-test: ## Run unit tests.
.PHONY: rag-service-test
rag-service-test:
pip install -r presets/ragengine/requirements.txt
pytest -o log_cli=true -o log_cli_level=INFO presets/ragengine/tests
pip install pytest-cov
pytest --cov -o log_cli=true -o log_cli_level=INFO presets/ragengine/tests

.PHONY: tuning-metrics-server-test
tuning-metrics-server-test:
pip install -r ./presets/workspace/dependencies/requirements-test.txt
pytest -o log_cli=true -o log_cli_level=INFO presets/workspace/tuning/text-generation/metrics
pip install pytest-cov
pytest --cov -o log_cli=true -o log_cli_level=INFO presets/workspace/tuning/text-generation/metrics

## --------------------------------------
## E2E tests
## --------------------------------------

inference-api-e2e:
pip install -r ./presets/workspace/dependencies/requirements-test.txt
pytest -o log_cli=true -o log_cli_level=INFO presets/workspace/inference/vllm
pytest -o log_cli=true -o log_cli_level=INFO presets/workspace/inference/text-generation
pip install pytest-cov
pytest --cov -o log_cli=true -o log_cli_level=INFO presets/workspace/inference/vllm
pytest --cov -o log_cli=true -o log_cli_level=INFO presets/workspace/inference/text-generation

# Ginkgo configurations
GINKGO_FOCUS ?=
Expand Down Expand Up @@ -241,8 +244,8 @@ docker-build-ragengine: docker-buildx
--tag $(REGISTRY)/$(RAGENGINE_IMG_NAME):$(RAGENGINE_IMG_TAG) .

.PHONY: docker-build-rag-service
docker-build-ragservice: docker buildx
docker buildx build \
docker-build-ragservice: docker-buildx
docker buildx build \
--platform="linux/$(ARCH)" \
--output=$(OUTPUT_TYPE) \
--file ./docker/ragengine/service/Dockerfile \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![GitHub Release](https://img.shields.io/github/v/release/kaito-project/kaito)
[![Go Report Card](https://goreportcard.com/badge/github.com/kaito-project/kaito)](https://goreportcard.com/report/github.com/kaito-project/kaito)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/kaito-project/kaito)
[![codecov](https://codecov.io/gh/Azure/kaito/graph/badge.svg?token=XAQLLPB2AR)](https://codecov.io/gh/Azure/kaito)
[![codecov](https://codecov.io/gh/kaito-project/kaito/graph/badge.svg?token=XAQLLPB2AR)](https://codecov.io/gh/kaito-project/kaito)

| ![notification](docs/img/bell.svg) What is NEW! |
|-------------------------------------------------|
Expand Down
Empty file added codecov.yml
Empty file.

0 comments on commit adae440

Please sign in to comment.