Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936173 - net-libs/nodejs-22.3.0 fails tests on 32-bit: Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
Summary: net-libs/nodejs-22.3.0 fails tests on 32-bit: Error [ERR_INSPECTOR_NOT_AVAILA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-17 04:07 UTC by matoro
Modified: 2024-07-26 19:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,149.18 KB, application/gzip)
2024-07-17 04:07 UTC, matoro
Details
build.log and emerge --info (x86) (build.log.gz,103.43 KB, application/gzip)
2024-07-17 05:23 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-17 04:07:35 UTC
Created attachment 897832 [details]
build.log and emerge --info

[01:17|%  49|+ 1773|-   0]: release test-inspector-already-activated-cli: Skipping as node was compiled without inspector support
[01:18|%  50|+ 1813|-   0]: release test-inspector-port-zero-cluster: Skipping as node was compiled without inspector support
=== release test-process-get-builtin ===                                      
Path: parallel/test-process-get-builtin
node:inspector:23
  throw new ERR_INSPECTOR_NOT_AVAILABLE();
        ^

Error [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
    at node:inspector:23:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
    at requireBuiltin (node:internal/bootstrap/realm:429:14)
    at process.getBuiltinModule (node:internal/modules/helpers:298:25)
    at file:///var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/parallel/test-process-get-builtin.mjs:40:30
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:474:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:109:5) {
  code: 'ERR_INSPECTOR_NOT_AVAILABLE'
}

Node.js v22.3.0
Command: out/Release/node /var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/parallel/test-process-get-builtin.mjs

[02:02|%  88|+ 3148|-   1]: release test-warn-sigprof: Skipping as node was compiled without inspector support
=== release test-watch-mode ===                                               
Path: sequential/test-watch-mode
TAP version 13
# Subtest: watch mode
    # Subtest: should watch changes to a file
    ok 1 - should watch changes to a file
      ---
      duration_ms: 506.242834
      ...
    # Subtest: should watch changes to a file - event loop ended
    ok 2 - should watch changes to a file - event loop ended
      ---
      duration_ms: 499.171083
      ...
    # Subtest: should watch changes to a failing file
    ok 3 - should watch changes to a failing file
      ---
      duration_ms: 501.216565
      ...
    # Subtest: should watch changes to a file with watch-path
    ok 4 - should watch changes to a file with watch-path # SKIP
      ---
      duration_ms: 0.786946
      ...
    # Subtest: should watch when running an non-existing file - when specified under --watch-path
    ok 5 - should watch when running an non-existing file - when specified under --watch-path # SKIP
      ---
      duration_ms: 0.443232
      ...
    # Subtest: should watch when running an non-existing file - when specified under --watch-path with equals
    ok 6 - should watch when running an non-existing file - when specified under --watch-path with equals # SKIP
      ---
      duration_ms: 0.798345
      ...
    # Subtest: should watch changes to a file - event loop blocked
    ok 7 - should watch changes to a file - event loop blocked
      ---
      duration_ms: 492.767559
      ...
    # Subtest: should watch changes to dependencies - cjs
    ok 8 - should watch changes to dependencies - cjs
      ---
      duration_ms: 500.492218
      ...
    # Subtest: should watch changes to dependencies - esm
    ok 9 - should watch changes to dependencies - esm
      ---
      duration_ms: 556.007569
      ...
    # Subtest: should restart multiple times
    ok 10 - should restart multiple times
      ---
      duration_ms: 2999.596652
      ...
    # Subtest: should pass arguments to file
    ok 11 - should pass arguments to file
      ---
      duration_ms: 522.269783
      ...
    # Subtest: should load --require modules in the watched process, and not in the orchestrator process
    ok 12 - should load --require modules in the watched process, and not in the orchestrator process
      ---
      duration_ms: 504.424507
      ...
    # Subtest: should load --import modules in the watched process, and not in the orchestrator process
    ok 13 - should load --import modules in the watched process, and not in the orchestrator process
      ---
      duration_ms: 543.130163
      ...
    # Subtest: should not watch when running an missing file
    ok 14 - should not watch when running an missing file # SKIP
      ---
      duration_ms: 0.462591
      ...
    # Subtest: should not watch when running an missing mjs file
    ok 15 - should not watch when running an missing mjs file # SKIP
      ---
      duration_ms: 0.226636
      ...
    # Subtest: should watch changes to previously missing dependency
    ok 16 - should watch changes to previously missing dependency # SKIP
      ---
      duration_ms: 0.210636
      ...
    # Subtest: should watch changes to previously missing ESM dependency
    ok 17 - should watch changes to previously missing ESM dependency # SKIP
      ---
      duration_ms: 0.253915
      ...
    # Subtest: should clear output between runs
    ok 18 - should clear output between runs
      ---
      duration_ms: 496.236496
      ...
    # Subtest: should preserve output when --watch-preserve-output flag is passed
    ok 19 - should preserve output when --watch-preserve-output flag is passed
      ---
      duration_ms: 501.674837
      ...
    # Subtest: should run when `--watch-path=./foo --require ./bar.js`
    ok 20 - should run when `--watch-path=./foo --require ./bar.js` # SKIP
      ---
      duration_ms: 0.292394
      ...
    # Subtest: should run when `--watch-path=./foo --require=./bar.js`
    ok 21 - should run when `--watch-path=./foo --require=./bar.js` # SKIP
      ---
      duration_ms: 0.236995
      ...
    # Subtest: should run when `--watch-path ./foo --require ./bar.js`
    ok 22 - should run when `--watch-path ./foo --require ./bar.js` # SKIP
      ---
      duration_ms: 0.222756
      ...
    # Subtest: should run when `--watch-path=./foo --require=./bar.js`
    ok 23 - should run when `--watch-path=./foo --require=./bar.js` # SKIP
      ---
      duration_ms: 0.198916
      ...
    # Subtest: should run when `--watch --inspect`
    not ok 24 - should run when `--watch --inspect`
      ---
      duration_ms: 35.578593
      location: '/var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/sequential/test-watch-mode.mjs:538:3'
      failureType: 'testCodeFailure'
      error: |-
        The input did not match the regular expression /listening on ws:\/\//. Input:
        
        '/var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/out/Release/node: bad option: --inspect\n'
        
      code: 'ERR_ASSERTION'
      name: 'AssertionError'
      expected:
      actual: |-
        /var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/out/Release/node: bad option: --inspect
        
      operator: 'match'
      stack: |-
        TestContext.<anonymous> (file:///var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/sequential/test-watch-mode.mjs:543:12)
        process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        async Test.run (node:internal/test_runner/test:857:9)
        async Suite.processPendingSubtests (node:internal/test_runner/test:565:7)
      ...
    # Subtest: should run when `--watch -r ./foo.js`
    ok 25 - should run when `--watch -r ./foo.js`
      ---
      duration_ms: 507.430493
      ...
    # Subtest: should pass IPC messages from a spawning parent to the child and back
    ok 26 - should pass IPC messages from a spawning parent to the child and back
      ---
      duration_ms: 510.503196
      ...
    1..26
not ok 1 - watch mode
  ---
  duration_ms: 9690.521137
  type: 'suite'
  location: '/var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/sequential/test-watch-mode.mjs:104:1'
  failureType: 'subtestsFailed'
  error: '1 subtest failed'
  code: 'ERR_TEST_FAILURE'
  ...
1..1
# tests 26
# suites 1
# pass 14
# fail 1
# cancelled 0
# skipped 11
# todo 0
# duration_ms 9717.672283
Command: out/Release/node /var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/sequential/test-watch-mode.mjs
 
[04:11|% 100|+ 3571|-   1]: Done                                              
 
Failed tests:
out/Release/node /var/tmp/portage/net-libs/nodejs-22.3.0/work/node-v22.3.0/test/parallel/test-process-get-builtin.mjs
Comment 1 matoro archtester 2024-07-17 05:23:52 UTC
Created attachment 897833 [details]
build.log and emerge --info (x86)

On x86 as well actually, so presumably all 32-bit.
Comment 2 Larry the Git Cow gentoo-dev 2024-07-18 18:15:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f10a0c27cb0eb0e52d3c7e81ddff6cdc6b48a5

commit 55f10a0c27cb0eb0e52d3c7e81ddff6cdc6b48a5
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2024-07-18 18:11:42 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2024-07-18 18:14:29 +0000

    net-libs/nodejs: drop failing test for 32 bit platforms
    
    Bug: https://bugs.gentoo.org/936173
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 net-libs/nodejs/nodejs-22.4.1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-07-26 19:11:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef9de16e9f04183d6266d33b9b810d574aa61514

commit ef9de16e9f04183d6266d33b9b810d574aa61514
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-07-26 19:00:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-26 19:11:00 +0000

    net-libs/nodejs: disable tests requiring USE=inspector
    
    Closes: https://bugs.gentoo.org/936173
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nodejs/nodejs-22.3.0.ebuild    | 1 +
 net-libs/nodejs/nodejs-22.4.0.ebuild    | 1 +
 net-libs/nodejs/nodejs-22.4.1-r1.ebuild | 1 +
 net-libs/nodejs/nodejs-99999999.ebuild  | 1 +
 4 files changed, 4 insertions(+)