Skip to content

test: n-api/addons test change issues #13521

Closed
@mscdex

Description

@mscdex
  • Version: master, v8.x
  • Platform: n/a
  • Subsystem: n-api, test

Is there supposed to be a way to correctly "fix" n-api/addon tests when those tests change? Today was the second time in the past few days I've ran into issues like this:

Building addon /home/mscdex/git/node/test/addons-napi/test_napi_status/
gyp: binding.gyp not found (cwd: /home/mscdex/git/node/test/addons-napi/test_napi_status) while trying to load binding.gyp
Makefile:288: recipe for target 'test/addons-napi/.buildstamp' failed
make[1]: *** [test/addons-napi/.buildstamp] Error 1
Makefile:196: recipe for target 'test' failed
make: *** [test] Error 2

or this (which I originally got earlier today):

=== release testNapiStatus ===                                                 
Path: addons-napi/test_general/testNapiStatus
/home/mscdex/git/node/test/addons-napi/test_general/testNapiStatus.js:7
addon.createNapiError();
      ^

TypeError: addon.createNapiError is not a function
    at Object.<anonymous> (/home/mscdex/git/node/test/addons-napi/test_general/testNapiStatus.js:7:7)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

Performing a make test-addons-clean did not fix the problem. Is there something else we should be doing (in general)?

/cc @nodejs/n-api @nodejs/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    addonsIssues and PRs related to native addons.node-apiIssues and PRs related to the Node-API.questionIssues that look for answers.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions