Skip to content

missing block coverage for functions #27566

Closed
@bcoe

Description

@bcoe
  • Version: v12.1.0
  • Platform: Fedora 28 (Twenty Eight)
  • Subsystem: test

This took me a while to figure out, and is potentially in the V8 engine.

In Node 12, block coverage seems to be dropped for some functions, on some platforms.

Here's an example:

The main difference between the two test runs is that coverage for generateChangelogEntry is missing in the output from Fedora (this is a serious issue, because from a test reporter point of view, generateChangelogEntry will appear as covered).

Additional Information

  • this problem seemed to also occur on 11.14.0 on Fedora on @coreyfarrell's computer, but not 11.15.0; @coreyfarrell was unable to reproduce on >11.10.0 with further testing.

CC: @joyeecheung @hashseed @schuay, was wondering if you might have any thoughts on this one ... I could imagine it possibly being an issue in V8, or potentially a race condition during the bootstrapping of coverage in Node.js.

Metadata

Metadata

Labels

coverageIssues and PRs related to native coverage support.v8 engineIssues and PRs related to the V8 dependency.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions