mirror of
https://github.com/cline/cline.git
synced 2026-10-25 10:26:36 +08:00
* chore: upgrade Bun toolchain and embedded runtime to 1.4.2 Bun 1.4.1+ writes a valid ad-hoc Mach-O signature for bun build --compile output, so the CLI is no longer SIGKILLed on macOS 27, and 1.4 ships x64 runtimes as baseline-only, so compiled binaries run on pre-AVX2 CPUs. Pins engines.bun, packageManager, .tool-versions, every setup-bun step, and @types/bun. The lockfile only moves @types/bun/bun-types so the AI SDK hoisting is left untouched. * fix(core): swallow reader.cancel() rejection in web_fetch size guard Bun 1.4 rejects cancel() on an errored stream, which surfaced as an unhandled rejection right before the size-limit error was thrown. * build(cli): boot the hub from the compiled binary as a smoke test --version only proves the executable launches. Bun 1.4.1/1.4.2 have a compile-time chunk ordering regression with splitting: true that only shows up once real modules load, so start the hub daemon from the freshly compiled host binary in an isolated data dir and require a healthy status before the build is considered good. * test(core): stop asserting the forced-exit path in hub shutdown e2e Under Bun 1.3 http.Server.close() never settled while a WebSocket was open, so the daemon always exited through the 2s deadline and the e2e asserted the forced-exit log line. Bun 1.4 completes the graceful close (~50ms instead of ~2s in a side-by-side probe), so that line no longer appears. The exit code, timing, discovery cleanup, and endpoint checks still cover the behavior; the forced path stays covered by shutdown-coordinator.test.ts. * build(cli): isolate the smoke test hub from CLINE_HUB_DISCOVERY_PATH The env var overrides the data-dir-derived discovery record, so an inherited value would have pointed hub start/stop at a real hub.
98 lines
3.6 KiB
YAML
98 lines
3.6 KiB
YAML
name: desktop-test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- desktop-experimental
|
|
paths:
|
|
- "apps/examples/desktop-app/package.json"
|
|
- "apps/examples/desktop-app/scripts/dmg-background.ts"
|
|
- "apps/examples/desktop-app/scripts/dmg-background.test.ts"
|
|
- "apps/examples/desktop-app/scripts/windows-installer.test.ts"
|
|
- "apps/examples/desktop-app/src-tauri/nsis/**"
|
|
# windows-installer.test.ts pins the @tauri-apps/cli version bun.lock resolves.
|
|
- "bun.lock"
|
|
- "apps/examples/desktop-app/src-tauri/dmg/background.png"
|
|
- "apps/examples/desktop-app/src-tauri/dmg/background@2x.png"
|
|
- ".github/workflows/desktop-test.yml"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- desktop-experimental
|
|
paths:
|
|
- "apps/examples/desktop-app/package.json"
|
|
- "apps/examples/desktop-app/scripts/dmg-background.ts"
|
|
- "apps/examples/desktop-app/scripts/dmg-background.test.ts"
|
|
- "apps/examples/desktop-app/scripts/windows-installer.test.ts"
|
|
- "apps/examples/desktop-app/src-tauri/nsis/**"
|
|
# windows-installer.test.ts pins the @tauri-apps/cli version bun.lock resolves.
|
|
- "bun.lock"
|
|
- "apps/examples/desktop-app/src-tauri/dmg/background.png"
|
|
- "apps/examples/desktop-app/src-tauri/dmg/background@2x.png"
|
|
- ".github/workflows/desktop-test.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
dmg-background:
|
|
name: Test DMG background tooling
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: apps/examples/desktop-app
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.4.2"
|
|
|
|
# The suite only uses Bun/Node built-ins and committed artwork, so it does
|
|
# not need a workspace dependency install or macOS runner.
|
|
- name: Test DMG background tooling
|
|
run: bun run test:dmg-background
|
|
|
|
windows-installer:
|
|
name: Test x86 installer against x64 sidecars
|
|
runs-on: windows-latest
|
|
timeout-minutes: 10
|
|
defaults:
|
|
run:
|
|
working-directory: apps/examples/desktop-app
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.4.2"
|
|
# This job installs no dependencies, so there is nothing to cache;
|
|
# setup-bun's cache-save post step otherwise hangs on Windows until
|
|
# the job times out, cancelling an already-passed run.
|
|
no-cache: true
|
|
|
|
# Use the same NSIS distribution as the locked Tauri CLI. No workspace
|
|
# install or full desktop build: the test compiles a disposable sidecar.
|
|
# The test asserts makensis reports NSIS_VERSION and that bun.lock still
|
|
# resolves TAURI_CLI_VERSION, so changing this download or bumping the
|
|
# CLI without updating windows-installer.test.ts fails the job.
|
|
- name: Setup NSIS
|
|
shell: pwsh
|
|
run: |
|
|
$zip = Join-Path $env:RUNNER_TEMP 'nsis.zip'
|
|
Invoke-WebRequest 'https://github.com/tauri-apps/binary-releases/releases/download/nsis-3.11/nsis-3.11.zip' -OutFile $zip
|
|
if ((Get-FileHash $zip -Algorithm SHA1).Hash -ne 'EF7FF767E5CBD9EDD22ADD3A32C9B8F4500BB10D') {
|
|
throw 'NSIS distribution checksum mismatch'
|
|
}
|
|
Expand-Archive $zip -DestinationPath $env:RUNNER_TEMP
|
|
"MAKENSIS_PATH=$env:RUNNER_TEMP/nsis-3.11/makensis.exe" >> $env:GITHUB_ENV
|
|
|
|
- name: Test install and uninstall process cleanup
|
|
run: bun run test:windows-installer
|