lydell/run-pty

run-pty --auto-exit: Commands can `exit 0` unexpectedly in GitHub Actions

lydell opened this issue · 3 comments

lydell commented

In another project, I use run-pty --auto-exit to run 5 checks.

Locally, everything (so far) works perfectly.

But in GitHub Actions, some commands can sometimes exit early with code 0, causing lint errors and suchlike not to be caught in CI.

I need to dig deeper into this. First thing is to try to reproduce it in this repo I think, that’ll make debugging much easier.

lydell commented

This seems to be a bug in node-pty (or potentially Node.js 18.18+ and 20.3+): microsoft/node-pty#630

Workaround released in v5.0.0.