Skip to content

Commit 9a5f577

Browse files
authored
ci : remove server job from webui and move slow test (ggml-org#19424)
* remove server job from webui and move slow test * use pip-install option
1 parent 96441c9 commit 9a5f577

File tree

2 files changed

+10
-130
lines changed

2 files changed

+10
-130
lines changed

.github/workflows/server-webui.yml

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
description: 'Commit SHA1 to build'
99
required: false
1010
type: string
11-
slow_tests:
12-
description: 'Run slow tests'
13-
required: true
14-
type: boolean
1511
push:
1612
branches:
1713
- master
@@ -101,119 +97,3 @@ jobs:
10197
if: ${{ always() && steps.playwright.conclusion == 'success' }}
10298
run: npm run test:e2e
10399
working-directory: tools/server/webui
104-
105-
server-build:
106-
runs-on: ubuntu-latest
107-
108-
strategy:
109-
matrix:
110-
sanitizer: [ADDRESS, UNDEFINED] # THREAD is broken
111-
build_type: [RelWithDebInfo]
112-
include:
113-
- build_type: Release
114-
sanitizer: ""
115-
fail-fast: false # While -DLLAMA_SANITIZE_THREAD=ON is broken
116-
117-
steps:
118-
- name: Dependencies
119-
id: depends
120-
run: |
121-
sudo apt-get update
122-
sudo apt-get -y install \
123-
build-essential \
124-
xxd \
125-
git \
126-
cmake \
127-
curl \
128-
wget \
129-
language-pack-en \
130-
libssl-dev
131-
132-
- name: Clone
133-
id: checkout
134-
uses: actions/checkout@v6
135-
with:
136-
fetch-depth: 0
137-
ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}
138-
139-
- name: Python setup
140-
id: setup_python
141-
uses: actions/setup-python@v6
142-
with:
143-
python-version: '3.11'
144-
145-
- name: Tests dependencies
146-
id: test_dependencies
147-
run: |
148-
pip install -r tools/server/tests/requirements.txt
149-
150-
- name: Setup Node.js for WebUI
151-
uses: actions/setup-node@v6
152-
with:
153-
node-version: "22"
154-
cache: "npm"
155-
cache-dependency-path: "tools/server/webui/package-lock.json"
156-
157-
- name: Install WebUI dependencies
158-
run: npm ci
159-
working-directory: tools/server/webui
160-
161-
- name: Build WebUI
162-
run: npm run build
163-
working-directory: tools/server/webui
164-
165-
- name: Build (no OpenMP)
166-
id: cmake_build_no_openmp
167-
if: ${{ matrix.sanitizer == 'THREAD' }}
168-
run: |
169-
cmake -B build \
170-
-DGGML_NATIVE=OFF \
171-
-DLLAMA_BUILD_SERVER=ON \
172-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
173-
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
174-
-DGGML_OPENMP=OFF ;
175-
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
176-
177-
- name: Build (sanitizers)
178-
id: cmake_build_sanitizers
179-
if: ${{ matrix.sanitizer != '' && matrix.sanitizer != 'THREAD' }}
180-
run: |
181-
cmake -B build \
182-
-DGGML_NATIVE=OFF \
183-
-DLLAMA_BUILD_SERVER=ON \
184-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
185-
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
186-
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
187-
188-
- name: Build (sanitizers)
189-
id: cmake_build
190-
if: ${{ matrix.sanitizer == '' }}
191-
run: |
192-
cmake -B build \
193-
-DGGML_NATIVE=OFF \
194-
-DLLAMA_BUILD_SERVER=ON \
195-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ;
196-
cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
197-
198-
- name: Tests
199-
id: server_integration_tests
200-
if: ${{ matrix.sanitizer == '' }}
201-
env:
202-
GITHUB_ACTIONS: "true"
203-
run: |
204-
cd tools/server/tests
205-
./tests.sh
206-
207-
- name: Tests (sanitizers)
208-
id: server_integration_tests_sanitizers
209-
if: ${{ matrix.sanitizer != '' }}
210-
run: |
211-
cd tools/server/tests
212-
LLAMA_SANITIZE=1 ./tests.sh
213-
214-
- name: Slow tests
215-
id: server_integration_tests_slow
216-
if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
217-
run: |
218-
cd tools/server/tests
219-
SLOW_TESTS=1 ./tests.sh

.github/workflows/server.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ jobs:
8888
uses: actions/setup-python@v6
8989
with:
9090
python-version: '3.11'
91-
92-
- name: Tests dependencies
93-
id: test_dependencies
94-
run: |
95-
pip install -r tools/server/tests/requirements.txt
91+
pip-install: -r tools/server/tests/requirements.txt
9692

9793
- name: Tests
9894
id: server_integration_tests
@@ -102,6 +98,14 @@ jobs:
10298
export ${{ matrix.extra_args }}
10399
pytest -v -x -m "not slow"
104100
101+
- name: Slow tests
102+
id: server_integration_tests_slow
103+
if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
104+
run: |
105+
cd tools/server/tests
106+
export ${{ matrix.extra_args }}
107+
SLOW_TESTS=1 pytest -v -x
108+
105109
server-windows:
106110
runs-on: windows-2022
107111

@@ -124,11 +128,7 @@ jobs:
124128
uses: actions/setup-python@v6
125129
with:
126130
python-version: '3.11'
127-
128-
- name: Tests dependencies
129-
id: test_dependencies
130-
run: |
131-
pip install -r tools/server/tests/requirements.txt
131+
pip-install: -r tools/server/tests/requirements.txt
132132

133133
- name: Tests
134134
id: server_integration_tests

0 commit comments

Comments
 (0)