Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
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
40 changes: 40 additions & 0 deletions .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,23 @@ jobs:


- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run unit tests
run: |
cd engine
Expand All @@ -152,13 +162,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.cortexrc
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
Expand Down Expand Up @@ -414,12 +435,21 @@ jobs:
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run unit tests
run: |
cd engine
Expand All @@ -428,12 +458,22 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.cortexrc
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-cortexso-model-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
cd engine
./build/cortex --version
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
run: |
Expand Down
9 changes: 5 additions & 4 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

# Install cortex.llamacpp engine

echo "apiServerHost: 0.0.0.0" > /root/.cortexrc
echo "enableCors: true" >> /root/.cortexrc
mkdir -p /root/.config/cortexcpp
echo "apiServerHost: 0.0.0.0" > /root/.config/cortexcpp/.cortexrc
echo "enableCors: true" >> /root/.config/cortexcpp/.cortexrc

# Start the cortex server
cortex start
Expand All @@ -15,6 +16,6 @@ cortex engines list


# Keep the container running by tailing the log files
tail -f /root/cortexcpp/logs/cortex.log &
tail -f /root/cortexcpp/logs/cortex-cli.log &
tail -f /root/.local/share/cortexcpp/logs/cortex.log &
tail -f /root/.local/share/cortexcpp/logs/cortex-cli.log &
wait
2 changes: 1 addition & 1 deletion engine/e2e-test/api/engines/test_api_get_list_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setup_and_teardown(self):
def test_api_get_list_engines_successfully(self):
# Data test
engine= "llama-cpp"
name= "linux-amd64-avx-cuda-11-7"
name= "linux-amd64-avx"
version= "v0.1.35-27.10.24"

data = {"version": version, "variant": name}
Expand Down
Loading