reportportal / client-javascript

This Client is to communicate with the ReportPortal on Node.js.
https://www.npmjs.com/package/@reportportal/client-javascript
Apache License 2.0
16 stars 51 forks source link

microtime error with the latest version of @reportportal/agent-js-cypress causing test to be unrunnable. #217

Open chelseablake4 opened 1 day ago

chelseablake4 commented 1 day ago

Looking for some help, I have verified two people on my team with M3 macbooks cannot run cypress with reportportal locally with the newest version of @reportportal/agent-js-cypressdue to the error below, The latest version of @reportportal/agent-js-cypress pulls in @reportportal/client-javascript version 5.3.0 which adds microtime. https://github.com/reportportal/client-javascript/compare/v5.2.0...v5.3.0#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R33 Error loading the reporter: @reportportal/agent-js-cypress

We searched for the reporter in these paths:

-/@reportportal/agent-js-cypress

Learn more at https://on.cypress.io/reporters

Error: dlopen(/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node, 0x0001): tried: 'node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node' (code signature in <0597889B-E5ED-385D-B003-3B76F9B3F07C> '/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/cblake/Documents/GitHub/campaigns-web/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node' (no such file), '/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node' (code signature in <0597889B-E5ED-385D-B003-3B76F9B3F07C> '/node_modules/microtime/prebuilds/darwin-x64+arm64/electron.napi.node' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs) at process.func [as dlopen] (node:electron/js2c/node_init:2:2107) at Object. (node:internal/modules/cjs/loader:1356:18) at Object.func [as .node] (node:electron/js2c/node_init:2:2107) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at load (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/node-gyp-build/node-gyp-build.js:22:10) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/microtime/index.js:1:43) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/@reportportal/agent-js-cypress/node_modules/@reportportal/client-javascript/lib/helpers.js:4:19) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/@reportportal/agent-js-cypress/lib/utils/objectCreators.js:18:23) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/@reportportal/agent-js-cypress/lib/utils/index.js:19:24) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/@reportportal/agent-js-cypress/lib/cypressReporter.js:43:5) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object. (/Users/cblake/Documents/GitHub/campaigns-web/node_modules/@reportportal/agent-js-cypress/index.js:1:18) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at PackherdModuleLoader.origLoad (node:electron/js2c/node_init:2:13357) at PackherdModuleLoader.tryLoad (evalmachine.:1:755466) at Function. (evalmachine.:1:765680) at i._load (:2939:67438) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at A.loadReporter (:2944:21800) at C.initializeReporter (:2997:27000) at C.startWebsockets (:2997:27304) at C.open (:2997:25601) at async v.create (:2997:40000) at async R (:2997:79065) at async W (:2997:92854)

AmsterGet commented 1 day ago

Hello @chelseablake4 ! Could you please share the next info to help us reproduce the issue:

  1. The Node.js & npm versions used, your another package manager version if applicable.
  2. MacOS version where the mentioned error occurs
  3. If possible, could you please also share the way you perform the installation of the agent and its submodules (is it a regular)

As a quick workaround and while we are investigating the issue you can downgrade the agent-js-cypress version to 5.3.x.

ssaleh-idexx commented 1 day ago

@AmsterGet

Here is a repository I created with minimal code to trigger the error.

Steps

Node/NPM versions tested (nvm used to manage Node versions)

Machine

I will try upgrading to macOS 15 later today to see if that makes any difference.