asar icon indicating copy to clipboard operation
asar copied to clipboard

Tests failing on ppc64le architecture for v3.0.3

Open SunidhiGaonkar opened this issue 2 years ago • 0 comments

Hi, I am trying to port this package to ppc64le architecture and some of the tests are failing. Attached below is the log for the output I get when I run the tests.

> [email protected] test
> npm run lint && npm run mocha


> [email protected] lint /home/user9/homes/tester/asar
> tsd && standard


> [email protected] mocha /home/user9/homes/tester/asar
> xvfb-maybe electron-mocha --reporter spec && mocha --reporter spec



  api
    1) should create archive from directory
    2) should create archive from directory (without hidden files)
    3) should create archive from directory (with transformed files)
    4) should create archive from directory (with nothing packed)
    ✓ should list files/dirs in archive
    ✓ should list files/dirs in archive with option
    ✓ should extract a text file from archive
    ✓ should extract a binary file from archive
    ✓ should extract a binary file from archive with unpacked files
    ✓ should extract an archive
    ✓ should extract an archive with unpacked files
    ✓ should extract a binary file from archive with unpacked files
    ✓ should extract an archive with unpacked dirs
    5) should handle multibyte characters in paths
    ✓ should extract a text file from archive with multibyte characters in path

  command line interface
    6) should create archive from directory
    7) should create archive from directory without hidden files
    8) should create archive from directory with unpacked files
    ✓ should list files/dirs in archive (86ms)
    ✓ should list files/dirs in archive with unpacked files (86ms)
    ✓ should list files/dirs with multibyte characters in path (85ms)
    ✓ should extract an archive (83ms)
    ✓ should extract an archive with unpacked files (83ms)
    9) should create archive from directory with unpacked dirs
    10) should create archive from directory with unpacked dirs specified by glob pattern
    11) should create archive from directory with unpacked dirs specified by globstar pattern
    ✓ should create archive from directory with unpacked dirs specified by foo/{bar,baz} style pattern (105ms)
    ✓ should list files/dirs in archive with unpacked dirs (83ms)
    ✓ should list files/dirs in archive with unpacked dirs & is-pack option (83ms)
    ✓ should extract an archive with unpacked dirs (81ms)
    12) should create archive from directory with unpacked dirs and files
    ✓ should create archive from directory with unpacked subdirs and files (99ms)


  20 passing (2s)
  12 failing

  1) api
       should create archive from directory:
     Error: ENOENT,  not found in tmp/packthis-api.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/api-spec.js:25:12)
      at processTicksAndRejections (internal/process/task_queues.js:85:5)

  2) api
       should create archive from directory (without hidden files):
     Error: ENOENT,  not found in tmp/packthis-without-hidden-api.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/api-spec.js:35:12)
      at processTicksAndRejections (internal/process/task_queues.js:85:5)

  3) api
       should create archive from directory (with transformed files):
     Error: ENOENT,  not found in tmp/packthis-api-transformed.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/api-spec.js:39:12)
      at processTicksAndRejections (internal/process/task_queues.js:85:5)

  4) api
       should create archive from directory (with nothing packed):
     Error: ENOENT,  not found in tmp/packthis-api-unpacked.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/api-spec.js:43:11)

  5) api
       should handle multibyte characters in paths:
     Error: ENOENT,  not found in tmp/packthis-unicode-path.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/api-spec.js:90:12)
      at processTicksAndRejections (internal/process/task_queues.js:85:5)

  6) command line interface
       should create archive from directory:
     Error: ENOENT,  not found in tmp/packthis-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:31:11)

  7) command line interface
       should create archive from directory without hidden files:
     Error: ENOENT,  not found in tmp/packthis-without-hidden-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:41:11)

  8) command line interface
       should create archive from directory with unpacked files:
     Error: ENOENT,  not found in tmp/packthis-unpack-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:46:11)

  9) command line interface
       should create archive from directory with unpacked dirs:
     Error: ENOENT,  not found in tmp/packthis-unpack-dir-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:90:12)

  10) command line interface
       should create archive from directory with unpacked dirs specified by glob pattern:
     Error: ENOENT,  not found in tmp/packthis-unpack-dir-glob-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:98:12)

  11) command line interface
       should create archive from directory with unpacked dirs specified by globstar pattern:
     Error: ENOENT,  not found in tmp/packthis-unpack-dir-globstar-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:108:12)

  12) command line interface
       should create archive from directory with unpacked dirs and files:
     Error: ENOENT,  not found in tmp/packthis-unpack-dir-file-cli.asar
      at createError (electron/js2c/asar.js:111:17)
      at Object.fs.readFile (electron/js2c/asar.js:508:23)
      at internal/util.js:286:30
      at new Promise (<anonymous>)
      at Object.readFile (internal/util.js:285:12)
      at module.exports (test/util/compareFiles.js:7:52)
      at Context.<anonymous> (test/cli-spec.js:131:12)



Failed with exit code: 12
Output:

npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! [email protected] mocha: `xvfb-maybe electron-mocha --reporter spec && mocha --reporter spec`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the [email protected] mocha script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user9/.npm/_logs/2022-04-21T07_33_23_391Z-debug.log

These are the steps I followed for both ppc64le and intel to reach here. I have also tried running these tests on intel platform and got this error:

> [email protected] test /root/sunidhi/home/tester/asar
> npm run lint && npm run mocha


> [email protected] lint /root/sunidhi/home/tester/asar
> tsd && standard


> [email protected] mocha /root/sunidhi/home/tester/asar
> xvfb-maybe electron-mocha --reporter spec && mocha --reporter spec

/usr/bin/xvfb-run: line 186: kill: (2550164) - No such process
Failed with exit code: 1
Output:

npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! [email protected] mocha: `xvfb-maybe electron-mocha --reporter spec && mocha --reporter spec`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the [email protected] mocha script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-04-21T07_26_03_864Z-debug.log
npm ERR! Test failed.  See above for more details.

I have installed the dependencies listed for linux. Unable to understand what is causing this error, not sure if I am missing something, would like some help.

Some additional information: OS : Red Hat Enterprise Linux 8.5 Arch : ppc64le Node : v12.22.4 npm : v8.7.0

SunidhiGaonkar avatar Apr 21 '22 12:04 SunidhiGaonkar