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
33 changes: 23 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ env:
jobs:
frontend-tests:
name: Frontend and browser tests
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
Expand All @@ -62,6 +62,9 @@ jobs:
run: yarn install --frozen-lockfile
- name: Frontend unit tests
run: yarn test:frontend
- name: Prepare Ubuntu package sources
timeout-minutes: 6
run: sudo --preserve-env=GITHUB_ACTIONS /usr/bin/python3 scripts/ci_apt.py
- name: Install Chromium
run: yarn test:ui:install --with-deps
- name: Browser interaction tests
Expand All @@ -83,7 +86,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-24.04, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
Expand All @@ -105,10 +108,14 @@ jobs:
activate-environment: true
- name: File snapshot and conflict tests
run: yarn test:file-service
- name: Prepare Ubuntu package sources
if: runner.os == 'Linux'
timeout-minutes: 6
run: sudo --preserve-env=GITHUB_ACTIONS /usr/bin/python3 scripts/ci_apt.py
- name: Native Linux libraries
timeout-minutes: 10
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev libdbus-1-dev xvfb
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659
Expand All @@ -119,7 +126,7 @@ jobs:
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
workspaces: "desktop/src-tauri -> target"
shared-key: "tauri-native-${{ runner.os }}"
shared-key: "tauri-native-${{ runner.os }}${{ runner.os == 'Linux' && '-ubuntu-24.04' || '' }}"
- name: Prepare resources
run: yarn workspace ssui-desktop copy-resources
- name: Rust command tests
Expand Down Expand Up @@ -165,7 +172,7 @@ jobs:

frontend-e2e:
name: Frontend contracts and Chromium E2E
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- name: Checkout
Expand Down Expand Up @@ -199,6 +206,9 @@ jobs:
# Resolve together so MCP cannot upgrade Starlette past FastAPI's constraint.
run: uv pip install -r tests/mock_api/requirements.txt ".[mcp]"

- name: Prepare Ubuntu package sources
timeout-minutes: 6
run: sudo --preserve-env=GITHUB_ACTIONS /usr/bin/python3 scripts/ci_apt.py
- name: Install Chromium
if: github.event_name != 'schedule'
timeout-minutes: 10
Expand Down Expand Up @@ -260,7 +270,7 @@ jobs:
platform: windows
- os: macOS-latest
platform: macosx
- os: ubuntu-latest
- os: ubuntu-24.04
platform: linux
steps:
- name: Checkout
Expand Down Expand Up @@ -324,20 +334,23 @@ jobs:
timeout-minutes: 20
run: uv pip install -r dependencies/${{ steps.runtime.outputs.lock }} --index-strategy unsafe-best-match --build-constraint dependencies/build-constraints.txt

- name: Prepare Ubuntu package sources
if: runner.os == 'Linux'
timeout-minutes: 6
run: sudo --preserve-env=GITHUB_ACTIONS /usr/bin/python3 scripts/ci_apt.py
- name: Install system dependencies
if: ${{ matrix.platform == 'linux' }}
timeout-minutes: 30
timeout-minutes: 10
run: |
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get -o Acquire::Retries=3 install -y --no-install-recommends libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libglib2.0-dev pkg-config gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-libav
sudo apt-get install -y --no-install-recommends libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libglib2.0-dev pkg-config gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-libav

- name: Restore Rust compilation cache
id: rust-cache
timeout-minutes: 10
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: "desktop/src-tauri -> target"
shared-key: "tauri-release-${{ matrix.platform }}"
shared-key: "tauri-release-${{ matrix.platform }}${{ runner.os == 'Linux' && '-ubuntu-24.04' || '' }}"
cache-on-failure: "true"

- name: Report Rust cache status
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/windows-arm64-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- 'scripts/audit_native_binaries.py'
- 'scripts/runtime_config.py'
- 'scripts/check_runtime.py'
- 'scripts/ci_apt.py'
- '.github/workflows/windows-arm64-wheels.yml'
- '.github/workflows/macos-intel-wheels.yml'
- 'scripts/build_macos_intel_wheels.py'
Expand All @@ -27,6 +28,7 @@ on:
- 'scripts/audit_native_binaries.py'
- 'scripts/runtime_config.py'
- 'scripts/check_runtime.py'
- 'scripts/ci_apt.py'
- '.github/workflows/windows-arm64-wheels.yml'
- '.github/workflows/macos-intel-wheels.yml'
- 'scripts/build_macos_intel_wheels.py'
Expand Down Expand Up @@ -108,10 +110,14 @@ jobs:
- name: Install pinned standalone Python
timeout-minutes: 15
run: node dependencies/bootstrap.cjs --github-env
- name: Prepare Ubuntu package sources
if: runner.os == 'Linux'
timeout-minutes: 6
run: sudo --preserve-env=GITHUB_ACTIONS /usr/bin/python3 scripts/ci_apt.py
- name: Install Linux native build dependencies
timeout-minutes: 10
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libx11-dev
- name: Download verified Intel wheels
if: matrix.id == 'macos-x86_64'
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ desktop/src-tauri/workflow/txt2img/
# Native test build cache (directory or local symlink)
/desktop/src-tauri/target
/.yarn-cache/

# Local model validation caches and retained media
/.runtime-cache/
/artifacts/
34 changes: 34 additions & 0 deletions dependencies/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ common:
safetensors: ">=0.4.5"
scipy: ">=1.15.2"
spandrel: ">=0.4.1"
# Voice adapters encode WAV on every platform, including contract tests.
soundfile: ">=0.12.1"
tokenizers: ">=0.20.0"
torchsde: "==0.2.6"
transformers: ">=4.51.3,<5"
Expand Down Expand Up @@ -251,3 +253,35 @@ overrides:
# Last Numba/LLVM pair with official CPython 3.12 macOS Intel wheels.
numba: '==0.62.1'
llvmlite: '==0.45.1'

# CosyVoice2 inference dependencies share the root CUDA runtime.
# Other profiles retain their platform-specific wheels and constraints.
- when:
os: [linux, windows]
arch: x64
backend: cuda
packages:
onnxruntime: null
onnxruntime-gpu: "==1.22.0"
HyperPyYAML: "==1.2.2"
# HyperPyYAML 1.2.2 needs the pre-0.19 loader API.
ruamel.yaml: "==0.18.6"
conformer: ">=0.3.2"
librosa: "==0.11.0"
openai-whisper: "==20240930"
inflect: ">=7.3.1"
WeTextProcessing: "@ https://github.com/sunxfancy/pynini-2.1.6.post1/releases/download/2.1.6.post1/WeTextProcessing-1.0.4-py3-none-any.whl"
hydra-core: "==1.3.2"
lightning: ">=2.2.4"
rich: ">=13.7.1"
gdown: ">=5.1.0"
wget: ">=3.2"
# Newer PyArrow wheels require NumPy 2; retain Torch 2.4 compatibility.
pyarrow: "==20.0.0"
- when:
os: linux
arch: x64
backend: cuda
packages:
pynini: "==2.1.6.post1"
pyworld: "==0.3.5"
23 changes: 23 additions & 0 deletions dependencies/dependency_config.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,26 @@ test('generated lock graph preserves uv root and reverse-dependency annotations'
assert.ok(cuda.requirements.some(line => line.startsWith('nvdiffrast @ ') && line.includes('/v0.3.3.1/')));
assert.ok(!cuda.requirements.some(line => line.startsWith('natten ')));
});

test('CosyVoice CUDA dependencies use one ONNX runtime and retain native platform wheels', () => {
const spec = loadConfig();
for (const os of ['linux', 'windows']) {
const { requirements } = resolveDependencies({ os, arch: 'x64', backend: 'cuda' }, spec);
assert.ok(requirements.includes('onnxruntime-gpu==1.22.0'));
assert.ok(!requirements.some(line => /^onnxruntime[<>=@]/.test(line)));
assert.ok(requirements.includes('HyperPyYAML==1.2.2'));
assert.ok(requirements.includes('ruamel.yaml==0.18.6'));
assert.ok(requirements.includes('pyarrow==20.0.0'));
const pynini = requirements.find(line => line.startsWith('pynini'));
assert.ok(os === 'windows' ? pynini.includes('win_amd64.whl') : pynini === 'pynini==2.1.6.post1');
}
});


test('all supported profiles include the shared Voice WAV dependency', () => {
const spec = loadConfig();
for (const profile of config.profiles) {
const { requirements } = resolveDependencies(profile, spec);
assert.ok(requirements.some(line => /^soundfile[<>=@]/i.test(line)));
}
});
6 changes: 6 additions & 0 deletions dependencies/linux-amdgpu-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ cffi:
dependents:
- argon2-cffi-bindings
- sounddevice
- soundfile
charset-normalizer:
version: "2.1.1"
dependents:
Expand Down Expand Up @@ -568,6 +569,7 @@ numpy:
- rembg
- scikit-image
- scipy
- soundfile
- spandrel
- tifffile
- torchsde
Expand Down Expand Up @@ -941,6 +943,9 @@ sounddevice:
version: "0.5.5"
dependents:
- mediapipe
soundfile:
version: "0.14.0"
isRoot: true
soupsieve:
version: "2.8.4"
dependents:
Expand Down Expand Up @@ -1091,6 +1096,7 @@ typing-extensions:
- pyvista
- referencing
- rich-toolkit
- soundfile
- spandrel
- starlette
- torch
Expand Down
7 changes: 6 additions & 1 deletion dependencies/linux-amdgpu.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile dependencies\requirements-linux-amdgpu.txt -o dependencies\linux-amdgpu.lock --python-platform x86_64-unknown-linux-gnu --python-version 3.12.8
# uv pip compile dependencies/requirements-linux-amdgpu.txt -o dependencies/linux-amdgpu.lock --python-platform x86_64-unknown-linux-gnu --python-version 3.12.8
absl-py==2.4.0
# via mediapipe
accelerate==1.14.0
Expand Down Expand Up @@ -63,6 +63,7 @@ cffi==2.0.0
# via
# argon2-cffi-bindings
# sounddevice
# soundfile
charset-normalizer==2.1.1
# via requests
click==8.4.2
Expand Down Expand Up @@ -383,6 +384,7 @@ numpy==2.4.4
# rembg
# scikit-image
# scipy
# soundfile
# spandrel
# tifffile
# torchsde
Expand Down Expand Up @@ -660,6 +662,8 @@ six==1.17.0
# rfc3339-validator
sounddevice==0.5.5
# via mediapipe
soundfile==0.14.0
# via -r dependencies/requirements-linux-amdgpu.txt
soupsieve==2.8.4
# via beautifulsoup4
spandrel==0.4.2
Expand Down Expand Up @@ -775,6 +779,7 @@ typing-extensions==4.15.0
# pyvista
# referencing
# rich-toolkit
# soundfile
# spandrel
# starlette
# torch
Expand Down
5 changes: 5 additions & 0 deletions dependencies/linux-arm64.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ cffi==2.1.1
# argon2-cffi-bindings
# cryptography
# sounddevice
# soundfile
charset-normalizer==3.5.2
# via requests
click==8.5.0
Expand Down Expand Up @@ -397,6 +398,7 @@ numpy==2.5.4
# rembg
# scikit-image
# scipy
# soundfile
# spandrel
# tifffile
# torchsde
Expand Down Expand Up @@ -683,6 +685,8 @@ six==1.17.0
# rfc3339-validator
sounddevice==0.5.6
# via mediapipe
soundfile==0.14.0
# via -r dependencies/requirements-linux-arm64.txt
soupsieve==3.0.4
# via beautifulsoup4
spandrel==0.4.2
Expand Down Expand Up @@ -810,6 +814,7 @@ typing-extensions==4.16.0
# pyvista-validation
# referencing
# rich-toolkit
# soundfile
# spandrel
# starlette
# torch
Expand Down
Loading
Loading