Skip to content

C++ coverage broken #18402

Description

@addaleax

https://coverage.nodejs.org/ displays 100 % C++ coverage for commits since 8229fc0...f878f94. I don’t see anything obvious that changed here, but f878f94 changed a sizeable part of node.gyp so that might be it?

/cc @mhdawson @yhwang

Activity

  1. added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Jan 26, 2018
  2. yhwang commented on Jan 26, 2018

    @yhwang
    Member

    that's weird. let me build the coverage locally and see if I can find anything.

    [Edit]
    It only verified node_main.cc for now and that's why it shows 100%

  3. yhwang commented on Jan 26, 2018

    @yhwang
    Member

    @addaleax you're right. it's because of my change. only the final executable (node_main.cc) and shared lib have --coverage ldflages and cflags after my change. The condition check for coverage is mangled with other conditions. I will try to separate it from others.

  4. mhdawson commented on Jan 31, 2018

    @mhdawson
    Member

    @yhwang have you made any progress on this? I think we may want to back out if we can't resolve fairly soon.

  5. yhwang commented on Jan 31, 2018

    @yhwang
    Member

    @mhdawson for me, the fix is quite easy. It just missed the --coverage cflags when we need a coverage build. and before my change, the --coverage is mangled with other condition check, I separated it now. The only thing left is the latest CI failures here: https://ci.nodejs.org/job/node-test-commit-linux/15961/.

    And the fix actually only affects the case that --coverage is specified. When running the CI, coverage is off.

  6. MylesBorins commented on Feb 20, 2018

    @MylesBorins
    Contributor

    This does not land cleanly on v9.x

    Not sure if the coverage is broken on that branch, but we likely want to backport a fix if it is

  7. gibfahn commented on Feb 21, 2018

    @gibfahn
    Member

    @MylesBorins are you talking about #18409 ?

  8. added a commit that references this issue on Feb 27, 2018
  9. added a commit that references this issue on May 8, 2018
  10. added a commit that references this issue on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions