Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(ci): Cargo test in zwei Schritte teilen, Waechter faengt Windows-Zeile ab

purple186c49a2552d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9ccaf0b6..9c1a272f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -231,15 +231,18 @@ jobs:
# 35 GB (four tests at 9.18 GB) against the 15 to 30 GB a windows-latest
# runner has free. Linux keeps the parallel default; only the Windows
# lane is forced single-threaded, which caps the same tests at 9.18 GB.
+ # Split into two steps, one per platform, so this stays a literal
+ # `run: cargo test` on the non-Windows lane for tooling that greps
+ # the workflow file for that exact line.
- name: Cargo test
+ if: matrix.platform != 'windows-latest'
working-directory: src-tauri
- shell: bash
- run: |
- if [ "${{ matrix.platform }}" = "windows-latest" ]; then
- cargo test -- --test-threads=1
- else
- cargo test
- fi
+ run: cargo test
+
+ - name: Cargo test (Windows, one thread)
+ if: matrix.platform == 'windows-latest'
+ working-directory: src-tauri
+ run: cargo test -- --test-threads=1
# Runde 3, Nachbesserung 7: the self-heal tests in install/pip.rs
# (a_ssl_collision_is_retried_once_..., a_genuine_ssl_gap_is_not_
diff --git a/src/lib/__tests__/release-rules.test.ts b/src/lib/__tests__/release-rules.test.ts
index dbe6e043..2c362d0c 100644
--- a/src/lib/__tests__/release-rules.test.ts
+++ b/src/lib/__tests__/release-rules.test.ts
@@ -215,6 +215,15 @@ describe('CI runs the Rust tests it has', () => {
expect(ci).toContain('run: cargo test')
})
+ // The Windows lane runs cargo test in a separate step (single-threaded,
+ // see the comment above that step in ci.yml), so the plain 'run: cargo
+ // test' check above only proves coverage on the other platform. This
+ // checks the Windows lane still has its own cargo test step.
+ it('and the Windows lane runs it too, just single-threaded', () => {
+ expect(ci).toContain("if: matrix.platform == 'windows-latest'")
+ expect(ci).toContain('run: cargo test -- --test-threads=1')
+ })
+
it('and is callable as a gate', () => {
expect(ci).toContain('workflow_call:')
})