v8 test coverage in jest is incorrect when upgrading to 20.10.0
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
20.10.0
Platform
Macbook Pro M1/M2 / Ubuntu 22.04 x64 (GitHub runner)
Subsystem
V8
What steps will reproduce the bug?
See https://github.com/jestjs/jest/issues/14766
How often does it reproduce? Is there a required condition?
Found a consistent repro, but initially it was flaky because of the order jest was running tests.
What is the expected behavior? Why is that the expected behavior?
20.9.0 just works
20.10.0 fails
So this is a regression.
What do you see instead?
Coverage information is wrong in jest, unclear why, but based what we know Node is the place where this will most likely be fixed.
Additional information
Based on https://nodejs.org/en/blog/release/v20.10.0, cc @joyeecheung as you might be interested/know what's wrong.
Based on https://github.com/jestjs/jest/issues/14764, cc @kwmhp as you experienced the same problem as us, and figure out the version upgrade is what triggers it.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた Jest の再現ケースから始め、記載されている MacBook および Ubuntu プラットフォームで、Node 20.9.0 と 20.10.0 の間のカバレッジ動作を比較します。Node v20.10.0 のリリースノートを読み、リグレッションが Node 自体で再現するかどうかを確認します。完了の条件は、報告されたテスト順序の条件下でカバレッジ出力が正しいことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- backend, testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 42/100