Skip to content

benchmark test is failing with "Error: Cannot find module './build/Release/addon'" #47837

@ArchanaWind

Description

@ArchanaWind

Version

v18.14.2

Platform

Linux 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

$ cd node
$ /usr/bin/python3 tools/test.py  --mode=release benchmark

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

All benchmark test should get pass

What do you see instead?

$ /usr/bin/python3 tools/test.py  --mode=release benchmark
=== release test-benchmark-napi ===
Path: benchmark/test-benchmark-napi
node/benchmark/napi/function_args/index.js: V8 Binding failed to load
misc/function_call.js Binding failed to load
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module './build/Release/addon'
Require stack:
- node/benchmark/napi/ref/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (node/benchmark/napi/ref/index.js:3:15)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'node/benchmark/napi/ref/index.js' ]
}

Node.js v18.14.2
node:assert:124
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

1 !== 0

    at ChildProcess.<anonymous> (/node/test/common/benchmark.js:28:12)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 1,
  expected: 0,
  operator: 'strictEqual'
}

Node.js v18.14.2
Command: out/Release/node  node/test/benchmark/test-benchmark-napi.js


[02:48|% 100|+  35|-   1]: Done

Failed tests:
out/Release/node node/test/benchmark/test-benchmark-napi.js

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchmarkIssues and PRs related to the benchmark subsystem.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