Skip to content

fix: flaky listLmStudio nonzero-exit integration test#23

Merged
mforce merged 2 commits intomainfrom
fix/flaky-lmstudio-test
May 4, 2026
Merged

fix: flaky listLmStudio nonzero-exit integration test#23
mforce merged 2 commits intomainfrom
fix/flaky-lmstudio-test

Conversation

@mforce
Copy link
Copy Markdown
Owner

@mforce mforce commented May 4, 2026

Fixes the intermittent CI failure in listLmStudio: nonzero exit test.

The test asserted both ls and ps calls were logged, but Promise.all rejects as soon as ls fails — ps (which has .catch()) may not have written to the argv log yet. Now only asserts ls was called.

Test plan

  • npm test — 88 pass (0 fail)
  • CI green on Node 20 + 22

mforce added 2 commits May 3, 2026 20:49
When lms exits nonzero, Promise.all rejects as soon as the ls call
fails. The ps call (which has .catch) may or may not have written to
the argv log yet — it's a race. Only assert that ls was called.
Committed to .hooks/pre-push and activated via git core.hooksPath in
the prepare script. Anyone who clones and runs npm install gets the
hook automatically — no Husky or extra dependencies needed.
@mforce mforce merged commit d636806 into main May 4, 2026
3 checks passed
@mforce mforce deleted the fix/flaky-lmstudio-test branch May 4, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant