-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jestが突然終了する時がある #9096
Comments
tasukete |
This comment was marked as outdated.
This comment was marked as outdated.
エラーもなんも吐かないから手掛かりが全くない |
This comment was marked as outdated.
This comment was marked as outdated.
ちなみにテストは test/unit 下にあるものしかやらないようにしている |
This comment was marked as outdated.
This comment was marked as outdated.
メモリを少なくとも500MBくらい消費してることが判明した |
ほぼ空のテストファイルでも150MBほどメモリ消費した |
似たような問題が報告されていた |
懸賞金 ¥6000 |
ts-jestやめてesbuild-jestとか使うと解決するかなと思ったけど上手く動かなかった |
あーキャッシュが無い状態でやると必ず再現しそう |
いや関係なかった |
swc使ってみたけど、動くときもあるけどやっぱり突然終了するときもある |
tasukete |
|
懸賞金 ¥7000 |
Chromeのデバッガ繋いだ時に限って再現しなくなる |
ヌァァァァァァァァァァァァァァァァァァァァァァァァァァァァァァァァァァンンンンオオオオンンオンオンオンオンンンンンンンンン゛ン゛!!!!!!!!!!!!!!!! |
This comment was marked as outdated.
This comment was marked as outdated.
ここまで来るとあとはJestのコードリーディングしてプリントデバッグするくらいしかなさそう |
こまこまのこまり |
クラッシュしなかった |
SegfaultはOCI A1 (arm64)特有の問題かもしれない |
ちなみに私はずっとwindows + node 16で検証してました |
ところで: --detectOpenHandles試したことある? |
むしろずっとそれしてたけどパフォーマンスに影響があるらしいからやめた |
いま外出先なのでスクショ貼れないんだけど、--detectOpenHandlesだと必ず最後にhttp2ストリームが残っててなんとかかんとかって言われるので、ky-universalが何か関与してる? |
x64なWSL2 Ubuntuでも再現した |
Note: このコミットで一時的に原因と思われる箇所を消してるので、再現させたい時はこれより前の状態でやった方が良いかも |
そのコミット以降Actions上で一回も異常終了してないからやっぱりjsonldパッケージが原因ということで間違いなさそうになってきた |
yarn: 1.22.19 |
Apple Siliconだと発現しない |
MetaService.tsを複数コピーして( |
クラッシュしなかった |
依然として落ちる環境と落ちない環境の違いがよくわかりませんが、jsonldにパッチを当てたところ落ちなくなった気がするので貼っておきます
|
色々やってたら落ちなくなったので報告します
// 絶対に成功するテスト
it('alwaysCorrectTest', () => {
expect(true).toBe(true);
}); 以下環境です |
MetaServiceで落ちてるのはまた別の問題ですね |
なるほど |
https://qiita.com/kawanet/items/cfedd535990b32710c50 ヒープ領域が不足している可能性があるかもしれないです。 |
起きなくなった気がする? |
起きなくなった 🙏🏻 |
テストの途中で exit status 1 でプロセスが終了することがある(エラーなどは吐かない)
The text was updated successfully, but these errors were encountered: