You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(gateway): inject platform into isMuslLibc, broaden exit-as-failure
Address review feedback on #36:
- isMuslLibc(platform = process.platform): accept the platform as an
argument so tests don't need to mutate process.platform (which is
non-configurable in some Node versions and would have thrown there).
All 6 tests now pass the platform explicitly.
- Spawn 'exit' handler: previously only recorded spawnFailure when
code !== 0 && code !== null, so exits via signal (code===null, e.g.
OOM) or a clean exit-0 before readiness still fell through to the
generic 30s timeout. Now records spawnFailure for any exit-before-
ready, with the descriptor adapting to "code N" vs "signal X". Also
guarded against overwriting a spawn-error reason that already populated
spawnFailure.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments