v8 test coverage in jest is incorrect when upgrading to 20.10.0
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 122k
- Forks
- 37.3k
- Ø Merge
- 4 T. 2 Std.
- Gemergte PRs (30 T.)
- 283
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den verlinkten Jest-Reproduktionen und vergleiche das Coverage-Verhalten zwischen Node 20.9.0 und 20.10.0 auf den aufgeführten MacBook- und Ubuntu-Plattformen. Lies die Release Notes zu Node v20.10.0 und ermittle, ob sich die Regression in Node selbst reproduzieren lässt; abgeschlossen bedeutet, dass die Coverage-Ausgabe unter der gemeldeten Bedingung zur Testreihenfolge korrekt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- backend, testing-qa
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 42/100