Repository navigation
Closed
Description
- Version: master
- Platform: macOS x64
- Subsystem: maybe N-API
What steps will reproduce the bug?
make -j4 test following failures will occur:
=== release test-benchmark-napi ===
Path: benchmark/test-benchmark-napi
/Users/ricky/projj/github.com/rickyes/node/benchmark/napi/function_args/index.js: V8 Binding failed to load
misc/function_call.js Binding failed to load
internal/modules/cjs/loader.js:1084
throw err;
^
Error: Cannot find module './build/Release/addon'
Require stack:
- /Users/ricky/projj/github.com/rickyes/node/benchmark/napi/ref/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1081:15)
at Function.Module._load (internal/modules/cjs/loader.js:927:27)
at Module.require (internal/modules/cjs/loader.js:1141:19)
at require (internal/modules/cjs/helpers.js:75:18)
at Object.<anonymous> (/Users/ricky/projj/github.com/rickyes/node/benchmark/napi/ref/index.js:3:15)
at Module._compile (internal/modules/cjs/loader.js:1252:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1273:10)
at Module.load (internal/modules/cjs/loader.js:1101:32)
at Function.Module._load (internal/modules/cjs/loader.js:966:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/ricky/projj/github.com/rickyes/node/benchmark/napi/ref/index.js'
]
}
assert.js:103
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
1 !== 0
at ChildProcess.<anonymous> (/Users/ricky/projj/github.com/rickyes/node/test/common/benchmark.js:30:12)
at ChildProcess.emit (events.js:314:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual'
}
Command: out/Release/node /Users/ricky/projj/github.com/rickyes/node/test/benchmark/test-benchmark-napi.js
[02:22|% 88|+ 2779|- 1]: Done ^C
make[1]: *** [jstest] Error 1
make: *** [test] Interrupt: 2How often does it reproduce? Is there a required condition?
Always
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Local run test failed[/-][+]Local run test failed: benchmark/test-benchmark-napi[/+]Trott commentedon Jul 20, 2020
make testshould not run the benchmark tests. Are you sure this is how you arrived at this error?The benchmark tests require
bench-addons-buildso as a workaround, runningmake bench-addons-buildshould take care of this. However,bench-addons-buildshould run automatically if you runmake test-benchmarkormake test-ci, so I'm interested to know how this came about....rickyes commentedon Jul 20, 2020
@Trott I've confirmed the following problem with
make test, and by the way,make test-onlywill get the same error.Trott commentedon Jul 20, 2020
I was able to replicate the problem by running
make test-ci-js.bench-addons-buildis a prerequisite fortest-ci, but it should probably be fortest-ci-js. I'll open a PR to fix that at least.Trott commentedon Jul 20, 2020
That's really puzzling. This is an unmodified
masterbranch? I would think to make benchmark tests run withmake test, you'd need to have a modifiedMakefileor a modifiedtools.test.py.rickyes commentedon Jul 20, 2020
Yeah, I haven't changed any of the code to run the
make test.As we discussed on #34321, it should be that make test will not run benchmark.
Follow
node/Makefile
Lines 298 to 301 in a51436c
node/Makefile
Line 497 in a51436c
make testdoes not seem to skip the benchmark.Trott commentedon Jul 20, 2020
Yes. That's an error. 😞 Will fix....
build: do not run benchmark tests on 'make test'
1 remaining item
build: do not run benchmark tests on 'make test'
build: fix test-ci-js task in Makefile
build: do not run benchmark tests on 'make test'
build: fix test-ci-js task in Makefile
build: do not run benchmark tests on 'make test'
build: fix test-ci-js task in Makefile
build: do not run benchmark tests on 'make test'
build: fix test-ci-js task in Makefile
build: do not run benchmark tests on 'make test'
build: fix test-ci-js task in Makefile
build: do not run benchmark tests on 'make test'