Skip to content

ci(lemonade): start server via LemonadeServer.exe --port (shim removed in v10.5) - #1868

Merged
kovtcharov merged 1 commit into
mainfrom
fix/lemonade-shim-removal-start-reset
Jun 25, 2026
Merged

kovtcharov merged 1 commit into
mainfrom
fix/lemonade-shim-removal-start-reset

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Why this matters

The Lemonade Server Smoke Test has been red since Lemonade v10.5 removed the lemonade-server shim. start-lemonade.ps1 hard-exits at lemonade-server not found on PATH or in .venv before it can even start the server, and reset-lemonade.ps1's direct-exe fallback launched LemonadeServer.exe with no --port, so it bound whatever the stale config.json said instead of the requested port. Both now resolve LemonadeServer.exe directly and launch it with a bare --port (there is no serve subcommand in v10.x).

This is the follow-up to #1867, which fixed the same shim-removal breakage in the two Windows integration jobs. That PR's passing run empirically verified on the stx runner that LemonadeServer.exe --port N binds N — so this applies the proven pattern to the remaining two scripts.

Test plan

  • Lemonade Server Smoke Test (stx) passes — log shows [OK] Found server: …LemonadeServer.exe then Server ready, not lemonade-server not found.
  • reset-lemonade.ps1 brings the server up on the requested port (no silent fallback to the config port).

…d in v10.5)

The Lemonade Server Smoke Test has been red since the v10.5 release removed the
`lemonade-server` shim: start-lemonade.ps1 hard-exits at "lemonade-server not
found on PATH or in .venv" before it can start the server, and reset-lemonade.ps1's
direct-exe fallback launched LemonadeServer.exe with no --port (so it bound the
stale-config port, not the requested one).

Both now resolve LemonadeServer.exe directly and launch it with a bare `--port`
(there is no `serve` subcommand in v10.x). This is the same pattern that fixed the
Windows integration jobs in #1867 — empirically verified on the stx runner that
`LemonadeServer.exe --port N` binds N.
@github-actions github-actions Bot added the installer Installer changes label Jun 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve ✅

This unbreaks the Lemonade Server Smoke Test, which has been red since Lemonade v10.5 removed the lemonade-server shim. The two installer PowerShell scripts now find LemonadeServer.exe directly and start it with an explicit --port, applying the same fix #1867 already proved on the stx runner. The bottom line: the start script no longer hard-exits looking for a missing shim, and the reset script no longer silently binds the stale config port instead of the one requested.

Both scripts now share one resolution pattern (env var → known install dirs → wildcard search → loud error), and the error path fails clearly with an actionable message rather than degrading — which matches GAIA's no-silent-fallback rule nicely. Verification is the smoke-test workflow itself, which is the right test surface for installer scripts.

🔍 Technical details

Strengths

  • reset-lemonade.ps1:217 and start-lemonade.ps1:142 both pass an explicit --port "$Port", directly killing the "binds whatever stale config.json says" bug — a real silent-fallback fix, not just a CI green-up.
  • start-lemonade.ps1:90-108 mirrors the resolution logic already present in reset-lemonade.ps1:200-210, so the two scripts stay in sync, and the not-found branch exits 1 with a message that names LEMONADE_SERVER_PATH and the remedy (fail-loudly, actionable).
  • Comments were updated in lockstep with the code (the old "use the shim deliberately" rationale is gone), so the files don't contradict themselves post-change.

🟢 Minor (nit, optional) — start-lemonade.ps1:262 still prints "Re-open the shell ... so the new lemonade-server is picked up.", which references the now-removed shim. Pre-existing and outside the diff, so not blocking — worth a one-line touch-up next time this file is edited.

No 🔴/🟡 findings. Path handling uses Test-Path/Resolve-Path on a fixed candidate list (no untrusted-path traversal concern), and ${env:ProgramFiles(x86)} / Get-ChildItem -ErrorAction SilentlyContinue are correct PowerShell.

@kovtcharov
kovtcharov added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 9d82e9e Jun 25, 2026
36 checks passed
@kovtcharov
kovtcharov deleted the fix/lemonade-shim-removal-start-reset branch June 25, 2026 23:03
pull Bot pushed a commit to bhardwajRahul/gaia that referenced this pull request Jun 26, 2026
## Why this matters

**Upgrades GAIA's pinned Lemonade Server from 10.7.0 to 10.8.1
(latest).** The repo was stuck on 10.7.0 because the auto-bump workflow
failed and every Lemonade entry point assumed the `lemonade-server` shim
that v10.5 removed (fixed in amd#1867 + amd#1868, both now on main). This PR
is the version bump itself: `LEMONADE_VERSION` 10.7.0 → 10.8.1 in
`src/gaia/version.py` plus the matching docs version references.

Validated on a real `stx` runner that **genuinely reconciled 10.7.0 →
10.8.1** (`Post-reconcile version: 10.8.1`, health
`"version":"10.8.1"`): the shim-free `LemonadeServer.exe --port` scripts
start it, the model loads, and the Windows + smoke integration jobs all
pass on 10.8.1.

## Test plan

Validated end-to-end on the self-hosted `stx` runner (the run reconciled
it 10.7.0 → 10.8.1):

- [x] **Test Agent SDK on Windows** — green on 10.8.1
- [x] **Test GAIA CLI on Windows** — green on 10.8.1
- [x] **Lemonade Server Smoke Test** — green (MSI reconcile + model pull
+ load + completion on 10.8.1)
- [x] **Docs Validation** — green (Lemonade version refs bumped in
`docs/cpp/setup.mdx`, `docs/guides/npu.mdx`, `cpp/README.md`)

---------

Co-authored-by: kovtcharov-amd <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

installer Installer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants