Closed soobing closed 4 years ago
Hi, is this issue solved? I am facing the same issue on PowerPC ppc64le architecture.
Travis doesn't seem to be able to recreate this with node 10.20.1
: https://travis-ci.org/github/mochajs/mocha/builds/675200024
I can't recreate what you see myself. My system information:
I tried installing node 10.16.3
that you are using, but I also can't recreate what you are seeing locally.
I'm closing this because we can't confirm it. @aishwaryabk If you have any more qualifying information for us with this apparently recent occurrence, please write it in here and we can re-open the issue
@Munter I am trying to build zeromq package from source, which fails due to mocha. So I am building mocha from source. My system information:
OS: rhel 7.6 architecture: ppc64le mocha --version: 7.1.1 node version: v12.16.1 npm version: 6.13.4 gcc version : Red Hat 7.3.1-5 Packages installed: libjpeg-devel, pkgconfig, cairo, giflib-devel.
Would like some help on understanding the same. Thank You.
There isn't really any build step in mocha when you run in node. Are you running in a browser? And which error is it you get from the official releases?
I am running it on a High end VM with good connectivity. The following is the result of npm install and npm test:
Install:
bash-4.2# npm install
npm WARN acorn-jsx@5.2.0 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed.
You must install peer dependencies yourself.
audited 24310 packages in 14.516s
75 packages are looking for funding
run `npm fund` for details
found 6 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Test: test_mocha.log
Running mocha command from the zeromq directory gives the following error:
bash-4.2# cd ../zeromq.node/
bash-4.2# mocha
(node:25424) DeprecationWarning: Configuration via mocha.opts is DEPRECATED and will be removed from a future version of Mocha. Use RC files or package.json instead.
Error: Could not locate the bindings file. Tried:
→ /zeromq.node/build/zmq.node
→ /zeromq.node/build/Debug/zmq.node
→ /zeromq.node/build/Release/zmq.node
→ /zeromq.node/out/Debug/zmq.node
→ /zeromq.node/Debug/zmq.node
→ /zeromq.node/out/Release/zmq.node
→ /zeromq.node/Release/zmq.node
→ /zeromq.node/build/default/zmq.node
→ /zeromq.node/compiled/12.16.1/linux/ppc64/zmq.node
at bindings (/zeromq.node/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/zeromq.node/lib/index.js:6:30)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/zeromq.node/index.js:2:18)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/zeromq.node/test/context.js:1:11)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at requireOrImport (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/esm-utils.js:15:12)
at Object.exports.loadFilesAsync (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/esm-utils.js:28:26)
at Mocha.loadFilesAsync (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/mocha.js:351:19)
at singleRun (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/cli/run-helpers.js:107:15)
at exports.runMocha (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/cli/run-helpers.js:144:11)
at Object.exports.handler (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/cli/run.js:306:11)
at Object.runCommand (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/node_modules/yargs/lib/command.js:242:26)
at Object.parseArgs [as _parseArgs] (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/node_modules/yargs/yargs.js:1113:24)
at Object.parse (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/node_modules/yargs/yargs.js:575:25)
at Object.exports.main (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/lib/cli/cli.js:68:6)
at Object.<anonymous> (/root/.nvm/versions/node/v12.16.1/lib/node_modules/mocha/bin/mocha:133:29)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
@aishwaryabk Your errors in the log you link to are related to your local machine not being able to connect between karma and headless chrome. It's very unlikely to be a mocha issue.
The stack you post when running mocha is not related to mocha either. It's node not being able to require your zeromq node bindings.
I'm going to keep this ticket closed, since none of these errors seem related to neither mocha, or the original error reported in this ticket
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
I Failed Test at
context.spec.js
these two methodsSteps to Reproduce
Expected behavior:
Actual behavior:
Reproduces how often: 100%
Versions
mocha --version
andnode node_modules/.bin/mocha --version
:node --version
: v10.16.3Additional Information
Logged this
then
Error