[Pkg-javascript-devel] Bug#1069888: node-bunyan: FTBFS: failing tests

Santiago Vila sanvila at debian.org
Fri Apr 26 13:43:27 BST 2024


Package: src:node-bunyan
Version: 2.0.5+~cs4.4.3-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Link node_modules/exeunt -> ../exeunt
Link node_modules/mv -> ../mv
Link node_modules/safe-json-stringify -> ../safejsonstringify
    dh_auto_build --buildsystem=nodejs
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
    dh_auto_test --buildsystem=nodejs
	ln -s ../. node_modules/bunyan
	/bin/sh -ex debian/tests/pkg-js/test
+ tap -R tap -J --no-cov test/add-stream.test.js test/buffer.test.js test/child-behaviour.test.js test/cli-client-req.test.js test/cli-res.test.js test/cli.test.js test/ctor.test.js test/cycles.test.js test/error-event.test.js test/level.test.js test/log.test.js test/other-api.test.js test/process-exit.test.js test/raw-stream.test.js test/ringbuffer.test.js test/safe-json-stringify.test.js test/serializers.test.js test/src.test.js test/stream-levels.test.js
TAP version 13
# Subtest: test/add-stream.test.js
     # Subtest: non-writables passed as stream
         ok 1 - "stream" stream is not writable
         ok 2 - "stream" stream is not writable
         1..2
     ok 1 - non-writables passed as stream # time=18.713ms
     
     # Subtest: proper stream
         ok 1 - expect truthy value
         1..1
     ok 2 - proper stream # time=4.908ms
     
     1..2
     # time=46.964ms
ok 1 - test/add-stream.test.js # time=46.964ms

# Subtest: test/buffer.test.js
     # Subtest: log.info(BUFFER)
         ok 1 - log.trace msg is inspect(BUFFER)
         ok 2 - no "0" array index key in record: undefined
         ok 3 - no "parent" array index key in record: undefined
         ok 4 - log.trace(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         ok 5 - log.debug msg is inspect(BUFFER)
         ok 6 - no "0" array index key in record: undefined
         ok 7 - no "parent" array index key in record: undefined
         ok 8 - log.debug(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         ok 9 - log.info msg is inspect(BUFFER)
         ok 10 - no "0" array index key in record: undefined
         ok 11 - no "parent" array index key in record: undefined
         ok 12 - log.info(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         ok 13 - log.warn msg is inspect(BUFFER)
         ok 14 - no "0" array index key in record: undefined
         ok 15 - no "parent" array index key in record: undefined
         ok 16 - log.warn(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         ok 17 - log.error msg is inspect(BUFFER)
         ok 18 - no "0" array index key in record: undefined
         ok 19 - no "parent" array index key in record: undefined
         ok 20 - log.error(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         ok 21 - log.fatal msg is inspect(BUFFER)
         ok 22 - no "0" array index key in record: undefined
         ok 23 - no "parent" array index key in record: undefined
         ok 24 - log.fatal(BUFFER, "bar") msg is inspect(BUFFER) + " bar"
         1..24
     ok 1 - log.info(BUFFER) # time=15.595ms
     
     1..1
     # time=36.998ms
ok 2 - test/buffer.test.js # time=36.998ms

# Subtest: test/child-behaviour.test.js
     # Subtest: child can add stream
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         1..4
     ok 1 - child can add stream # time=8.798ms
     
     # Subtest: child can set level of inherited streams
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 2 - child can set level of inherited streams # time=2.496ms
     
     # Subtest: child can set level of inherited streams and add streams
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         1..6
     ok 3 - child can set level of inherited streams and add streams # time=5.594ms
     
     # Subtest: child should not lose parent "hostname"
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         1..4
     ok 4 - child should not lose parent "hostname" # time=1.888ms
     
     1..4
     # time=43.011ms
ok 3 - test/child-behaviour.test.js # time=43.011ms

(node:558561) DeprecationWarning: ifError() is deprecated, use error() instead
(Use `node --trace-deprecation ...` to show where the warning was created)
# Subtest: test/cli-client-req.test.js
     # Subtest: client_req extra newlines, client_res={} (pull \#252)
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 1 - client_req extra newlines, client_res={} (pull \#252) # time=210.2ms
     
     # Subtest: client_req.address is not used for Host header in 2.x (issue \#504)
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 2 - client_req.address is not used for Host header in 2.x (issue \#504) # time=202.419ms
     
     1..2
     # time=419.141ms
ok 4 - test/cli-client-req.test.js # time=419.141ms

(node:558595) DeprecationWarning: ifError() is deprecated, use error() instead
(Use `node --trace-deprecation ...` to show where the warning was created)
# Subtest: test/cli-res.test.js
     # Subtest: res with "header" string (issue \#444)
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 1 - res with "header" string (issue \#444) # time=224.569ms
     
     # Subtest: res without "header"
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 2 - res without "header" # time=222.341ms
     
     1..2
     # time=452.876ms
ok 5 - test/cli-res.test.js # time=452.876ms

(node:558627) DeprecationWarning: ifError() is deprecated, use error() instead
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:558846) DeprecationWarning: ifError() is deprecated, use error() instead
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:558967) DeprecationWarning: ifError() is deprecated, use error() instead
(Use `node --trace-deprecation ...` to show where the warning was created)
# Subtest: test/cli.test.js
     # Subtest: --version
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 1 - --version # time=237.591ms
     
     # Subtest: --help
         ok 1 - should not error
         ok 2 - expect truthy value
         1..2
     ok 2 - --help # time=207.259ms
     
     # Subtest: -h
         ok 1 - should not error
         ok 2 - expect truthy value
         1..2
     ok 3 - -h # time=195.229ms
     
     # Subtest: --bogus
         ok 1 - should error out
         ok 2 - ... with exit code 1
         1..2
     ok 4 - --bogus # time=196.929ms
     
     # Subtest: simple.log
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 5 - simple.log # time=202.82ms
     
     # Subtest: cat simple.log
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 6 - cat simple.log # time=231.029ms
     
     # Subtest: time TZ tests
         1..0
     ok 7 - time TZ tests # time=17.643ms
     
     # Subtest: simple.log with color
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 8 - simple.log with color # time=205.306ms
     
     # Subtest: extrafield.log
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 9 - extrafield.log # time=196.271ms
     
     # Subtest: extrafield.log with color
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 10 - extrafield.log with color # time=211.84ms
     
     # Subtest: bogus.log
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 11 - bogus.log # time=210.895ms
     
     # Subtest: bogus.log -j
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 12 - bogus.log -j # time=199.132ms
     
     # Subtest: all.log
         ok 1 - should not error
         1..1
     ok 13 - all.log # time=192.438ms
     
     # Subtest: simple.log doesnotexist1.log doesnotexist2.log
         not ok 1 - expect truthy value
           ---
           at:
             line: 224
             column: 15
             file: test/cli.test.js
           stack: |
             test/cli.test.js:224:15
           source: |2
                     function (err, stdout, stderr) {
                         t.ok(err)
             --------------^
                         t.equal(err.code, 2)
                         t.equal(stdout,
           ...
         
         not ok 2 - Cannot read properties of null (reading 'code')
           ---
           stack: |
             test/cli.test.js:225:25
           at:
             line: 225
             column: 25
             file: test/cli.test.js
           type: TypeError
           tapCaught: uncaughtException
           test: simple.log doesnotexist1.log doesnotexist2.log
           source: |2
                         t.ok(err)
                         t.equal(err.code, 2)
             ------------------------^
                         t.equal(stdout,
                             /* JSSTYLED */
           ...
         
         1..2
         # failed 2 of 2 tests
     not ok 14 - simple.log doesnotexist1.log doesnotexist2.log # time=231.198ms
     
     # Subtest: multiple logs
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 15 - multiple logs # time=200.047ms
     
     # Subtest: multiple logs, bunyan format
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 16 - multiple logs, bunyan format # time=203.534ms
     
     # Subtest: log1.log.gz
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 17 - log1.log.gz # time=222.744ms
     
     # Subtest: mixed text and gzip logs
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 18 - mixed text and gzip logs # time=201.004ms
     
     # Subtest: --level 40
         ok 1 - should not error
         ok 2 - should be equal
         ok 3 - should not error
         ok 4 - should be equal
         1..4
     ok 19 - --level 40 # time=395.304ms
     
     # Subtest: --condition "this.level === 10 && this.pid === 123"
         ok 1 - should not error
         ok 2 - should be equal
         ok 3 - should not error
         ok 4 - should be equal
         1..4
     ok 20 - --condition "this.level === 10 && this.pid === 123" # time=387.089ms
     
     # Subtest: --condition "this.level === TRACE
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 21 - --condition "this.level === TRACE # time=192.029ms
     
     # Subtest: multiple --conditions
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 22 - multiple --conditions # time=224.551ms
     
     # Subtest: robust req handling
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 23 - robust req handling # time=199.042ms
     
     # Subtest: should not crash on corpus/old-crashers/*.log
         ok 1 - should not error
         1..1
     ok 24 - should not crash on corpus/old-crashers/*.log # time=958.905ms
     
     # Subtest: should only show nonempty response bodies
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 25 - should only show nonempty response bodies # time=135.638ms
     
     # Subtest: time: simple.log local long
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 26 - time: simple.log local long # time=143.75ms
     
     # Subtest: time: simple.log utc long
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 27 - time: simple.log utc long # time=131.621ms
     
     # Subtest: time: simple.log local short
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 28 - time: simple.log local short # time=135.851ms
     
     # Subtest: time: simple.log utc short
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 29 - time: simple.log utc short # time=135.653ms
     
     1..29
     # failed 1 of 29 tests
     # time=6616.878ms
not ok 6 - test/cli.test.js # time=6616.878ms
   ---
   env: {}
   file: test/cli.test.js
   timeout: 30000
   command: /usr/bin/node
   args:
     - test/cli.test.js
   stdio:
     - 0
     - pipe
     - 2
   cwd: /<<PKGBUILDDIR>>
   exitCode: 1
   ...

# Subtest: test/ctor.test.js
     # Subtest: ensure Logger creation options
         ok 1 - no options should throw
         ok 2 - no options.name should throw
         ok 3 - just options.name should be sufficient
         ok 4 - cannot use "stream" and "streams"
         ok 5 - "streams" must be an array
         ok 6 - "serializers" cannot be a string
         ok 7 - "serializers" cannot be an array
         1..7
     ok 1 - ensure Logger creation options # time=15.77ms
     
     # Subtest: ensure Logger constructor is safe without new
         ok 1 - constructor should call self with new if necessary
         1..1
     ok 2 - ensure Logger constructor is safe without new # time=2.743ms
     
     # Subtest: ensure Logger creation options (createLogger)
         ok 1 - no options should throw
         ok 2 - no options.name should throw
         ok 3 - just options.name should be sufficient
         ok 4 - cannot use "stream" and "streams"
         ok 5 - "streams" must be an array
         ok 6 - "serializers" cannot be a string
         ok 7 - "serializers" cannot be an array
         1..7
     ok 3 - ensure Logger creation options (createLogger) # time=5.171ms
     
     # Subtest: ensure Logger child() options
         ok 1 - no options should be fine
         ok 2 - empty options should be fine too
         ok 3 - child cannot change name
         ok 4 - cannot use "stream" and "streams"
         ok 5 - "streams" must be an array
         ok 6 - "serializers" cannot be a string
         ok 7 - "serializers" cannot be an array
         1..7
     ok 4 - ensure Logger child() options # time=3.331ms
     
     # Subtest: ensure Logger() rejects non-Logger parents
         ok 1 - Logger arguments must be valid
         ok 2 - Logger allows Logger instance as parent
         1..2
     ok 5 - ensure Logger() rejects non-Logger parents # time=1.157ms
     
     1..5
     # time=56.749ms
ok 7 - test/ctor.test.js # time=56.749ms

# Subtest: test/cycles.test.js
     # Subtest: cycles
         ok 1 - expect truthy value
         ok 2 - log record 0 matches
         ok 3 - log record 1 matches
         ok 4 - log record 2 matches
         1..4
     ok 1 - cycles # time=9.04ms
     
     1..1
     # time=15.717ms
ok 8 - test/cycles.test.js # time=15.717ms

# Subtest: test/error-event.test.js
     # Subtest: error event on file stream (reemitErrorEvents=undefined)
         ok 1 - got err in error event: Error: ENOENT: no such file or directory, open '/this/path/is/bogus.log'
         ok 2 - error code is ENOENT
         ok 3 - got a stream argument
         ok 4 - should be equal
         ok 5 - should be equal
         1..5
     ok 1 - error event on file stream (reemitErrorEvents=undefined) # time=32.541ms
     
     # Subtest: error event on file stream (reemitErrorEvents=true)
         ok 1 - got err in error event: Error: ENOENT: no such file or directory, open '/this/path/is/bogus.log'
         ok 2 - error code is ENOENT
         ok 3 - got a stream argument
         ok 4 - should be equal
         ok 5 - should be equal
         1..5
     ok 2 - error event on file stream (reemitErrorEvents=true) # time=3.538ms
     
     # Subtest: error event on file stream (reemitErrorEvents=false)
         ok 1 - got error event on the file stream
         1..1
     ok 3 - error event on file stream (reemitErrorEvents=false) # time=1.518ms
     
     # Subtest: error event on raw stream (reemitErrorEvents=undefined)
         ok 1 - got error event on the raw stream
         1..1
     ok 4 - error event on raw stream (reemitErrorEvents=undefined) # time=1.124ms
     
     # Subtest: error event on raw stream (reemitErrorEvents=false)
         ok 1 - got error event on the raw stream
         1..1
     ok 5 - error event on raw stream (reemitErrorEvents=false) # time=0.802ms
     
     # Subtest: error event on raw stream (reemitErrorEvents=true)
         ok 1 - got err in error event: Error: boom
         ok 2 - should be equal
         ok 3 - got a stream argument
         ok 4 - expect truthy value
         ok 5 - should be equal
         1..5
     ok 6 - error event on raw stream (reemitErrorEvents=true) # time=1.623ms
     
     1..6
     # time=49.345ms
ok 9 - test/error-event.test.js # time=49.345ms

# Subtest: test/level.test.js
     # Subtest: log.level() -> level num
         ok 1 - should be equal
         1..1
     ok 1 - log.level() -> level num # time=6.085ms
     
     # Subtest: log.level(<const>)
         ok 1 - should be equal
         1..1
     ok 2 - log.level(<const>) # time=1.439ms
     
     # Subtest: log.level(<num>)
         ok 1 - should be equal
         1..1
     ok 3 - log.level(<num>) # time=1.399ms
     
     # Subtest: log.level(<name>)
         ok 1 - should be equal
         1..1
     ok 4 - log.level(<name>) # time=1.163ms
     
     # Subtest: log.level(FATAL + 1)
         ok 1 - should be equal
         1..1
     ok 5 - log.level(FATAL + 1) # time=1.029ms
     
     # Subtest: log.level(<weird numbers>)
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 6 - log.level(<weird numbers>) # time=1.841ms
     
     # Subtest: log.level(<invalid values>)
         ok 1 - expected to throw
         ok 2 - expected to throw
         ok 3 - expected to throw
         ok 4 - expected to throw
         ok 5 - expected to throw
         ok 6 - expected to throw
         1..6
     ok 7 - log.level(<invalid values>) # time=6.816ms
     
     1..7
     # time=53.816ms
ok 10 - test/level.test.js # time=53.816ms

# Subtest: test/log.test.js
     # Subtest: log.LEVEL() -> boolean
         ok 1 - log1.trace() is false
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         ok 7 - should be equal
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - should be equal
         ok 11 - should be equal
         ok 12 - should be equal
         1..12
     ok 1 - log.LEVEL() -> boolean # time=10.938ms
     
     # Subtest: log.info(undefined, <msg>)
         ok 1 - log.trace(undefined, "some message")
         ok 2 - log.debug(undefined, "some message")
         ok 3 - log.info(undefined, "some message")
         ok 4 - log.warn(undefined, "some message")
         ok 5 - log.error(undefined, "some message")
         ok 6 - log.fatal(undefined, "some message")
         1..6
     ok 2 - log.info(undefined, <msg>) # time=4.575ms
     
     # Subtest: log.info(<fields>, undefined)
         ok 1 - log.trace msg: expect "undefined", got "undefined"
         ok 2 - should be equal
         ok 3 - log.debug msg: expect "undefined", got "undefined"
         ok 4 - should be equal
         ok 5 - log.info msg: expect "undefined", got "undefined"
         ok 6 - should be equal
         ok 7 - log.warn msg: expect "undefined", got "undefined"
         ok 8 - should be equal
         ok 9 - log.error msg: expect "undefined", got "undefined"
         ok 10 - should be equal
         ok 11 - log.fatal msg: expect "undefined", got "undefined"
         ok 12 - should be equal
         1..12
     ok 3 - log.info(<fields>, undefined) # time=4.214ms
     
     # Subtest: log.info(null, <msg>)
         ok 1 - log.trace msg is "some message"
         ok 2 - log.debug msg is "some message"
         ok 3 - log.info msg is "some message"
         ok 4 - log.warn msg is "some message"
         ok 5 - log.error msg is "some message"
         ok 6 - log.fatal msg is "some message"
         1..6
     ok 4 - log.info(null, <msg>) # time=2.207ms
     
     # Subtest: log.info(<fields>, null)
         ok 1 - log.trace msg: expect "null", got "null"
         ok 2 - should be equal
         ok 3 - log.debug msg: expect "null", got "null"
         ok 4 - should be equal
         ok 5 - log.info msg: expect "null", got "null"
         ok 6 - should be equal
         ok 7 - log.warn msg: expect "null", got "null"
         ok 8 - should be equal
         ok 9 - log.error msg: expect "null", got "null"
         ok 10 - should be equal
         ok 11 - log.fatal msg: expect "null", got "null"
         ok 12 - should be equal
         1..12
     ok 5 - log.info(<fields>, null) # time=4.119ms
     
     # Subtest: log.info(<str>)
         ok 1 - log.trace msg is "some message"
         ok 2 - log.debug msg is "some message"
         ok 3 - log.info msg is "some message"
         ok 4 - log.warn msg is "some message"
         ok 5 - log.error msg is "some message"
         ok 6 - log.fatal msg is "some message"
         1..6
     ok 6 - log.info(<str>) # time=2.144ms
     
     # Subtest: log.info(<fields>, <str>)
         ok 1 - log.trace msg: got "some message"
         ok 2 - should be equal
         ok 3 - log.debug msg: got "some message"
         ok 4 - should be equal
         ok 5 - log.info msg: got "some message"
         ok 6 - should be equal
         ok 7 - log.warn msg: got "some message"
         ok 8 - should be equal
         ok 9 - log.error msg: got "some message"
         ok 10 - should be equal
         ok 11 - log.fatal msg: got "some message"
         ok 12 - should be equal
         1..12
     ok 7 - log.info(<fields>, <str>) # time=3.386ms
     
     # Subtest: log.info(<bool>)
         ok 1 - log.trace msg is "true"
         ok 2 - log.debug msg is "true"
         ok 3 - log.info msg is "true"
         ok 4 - log.warn msg is "true"
         ok 5 - log.error msg is "true"
         ok 6 - log.fatal msg is "true"
         1..6
     ok 8 - log.info(<bool>) # time=2.03ms
     
     # Subtest: log.info(<fields>, <bool>)
         ok 1 - log.trace msg: got "true"
         ok 2 - should be equal
         ok 3 - log.debug msg: got "true"
         ok 4 - should be equal
         ok 5 - log.info msg: got "true"
         ok 6 - should be equal
         ok 7 - log.warn msg: got "true"
         ok 8 - should be equal
         ok 9 - log.error msg: got "true"
         ok 10 - should be equal
         ok 11 - log.fatal msg: got "true"
         ok 12 - should be equal
         1..12
     ok 9 - log.info(<fields>, <bool>) # time=5.968ms
     
     # Subtest: log.info(<num>)
         ok 1 - log.trace msg: got "3.14"
         ok 2 - log.debug msg: got "3.14"
         ok 3 - log.info msg: got "3.14"
         ok 4 - log.warn msg: got "3.14"
         ok 5 - log.error msg: got "3.14"
         ok 6 - log.fatal msg: got "3.14"
         1..6
     ok 10 - log.info(<num>) # time=6.908ms
     
     # Subtest: log.info(<fields>, <num>)
         ok 1 - log.trace msg: got "3.14"
         ok 2 - should be equal
         ok 3 - log.debug msg: got "3.14"
         ok 4 - should be equal
         ok 5 - log.info msg: got "3.14"
         ok 6 - should be equal
         ok 7 - log.warn msg: got "3.14"
         ok 8 - should be equal
         ok 9 - log.error msg: got "3.14"
         ok 10 - should be equal
         ok 11 - log.fatal msg: got "3.14"
         ok 12 - should be equal
         1..12
     ok 11 - log.info(<fields>, <num>) # time=3.769ms
     
     # Subtest: log.info(<function>)
         ok 1 - log.trace msg: got "[Function: func1]"
         ok 2 - log.debug msg: got "[Function: func1]"
         ok 3 - log.info msg: got "[Function: func1]"
         ok 4 - log.warn msg: got "[Function: func1]"
         ok 5 - log.error msg: got "[Function: func1]"
         ok 6 - log.fatal msg: got "[Function: func1]"
         1..6
     ok 12 - log.info(<function>) # time=3.025ms
     
     # Subtest: log.info(<fields>, <function>)
         ok 1 - log.trace msg: got "[Function: func2]"
         ok 2 - should be equal
         ok 3 - log.debug msg: got "[Function: func2]"
         ok 4 - should be equal
         ok 5 - log.info msg: got "[Function: func2]"
         ok 6 - should be equal
         ok 7 - log.warn msg: got "[Function: func2]"
         ok 8 - should be equal
         ok 9 - log.error msg: got "[Function: func2]"
         ok 10 - should be equal
         ok 11 - log.fatal msg: got "[Function: func2]"
         ok 12 - should be equal
         1..12
     ok 13 - log.info(<fields>, <function>) # time=3.25ms
     
     # Subtest: log.info(<array>)
         ok 1 - log.trace msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 2 - log.debug msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 3 - log.info msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 4 - log.warn msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 5 - log.error msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 6 - log.fatal msg: got "[ 'a', 1, { two: 'deux' } ]"
         1..6
     ok 14 - log.info(<array>) # time=4.187ms
     
     # Subtest: log.info(<fields>, <array>)
         ok 1 - log.trace msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 2 - should be equal
         ok 3 - log.debug msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 4 - should be equal
         ok 5 - log.info msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 6 - should be equal
         ok 7 - log.warn msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 8 - should be equal
         ok 9 - log.error msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 10 - should be equal
         ok 11 - log.fatal msg: got "[ 'a', 1, { two: 'deux' } ]"
         ok 12 - should be equal
         1..12
     ok 15 - log.info(<fields>, <array>) # time=3.923ms
     
     # Subtest: log.info(null)
         ok 1 - log.trace msg: got ""
         ok 2 - log.debug msg: got ""
         ok 3 - log.info msg: got ""
         ok 4 - log.warn msg: got ""
         ok 5 - log.error msg: got ""
         ok 6 - log.fatal msg: got ""
         1..6
     ok 16 - log.info(null) # time=8.544ms
     
     # Subtest: log.info(null, <msg>)
         ok 1 - log.trace msg: got "my message"
         ok 2 - log.debug msg: got "my message"
         ok 3 - log.info msg: got "my message"
         ok 4 - log.warn msg: got "my message"
         ok 5 - log.error msg: got "my message"
         ok 6 - log.fatal msg: got "my message"
         1..6
     ok 17 - log.info(null, <msg>) # time=7.947ms
     
     1..17
     # time=144.313ms
ok 11 - test/log.test.js # time=144.313ms

# Subtest: test/other-api.test.js
     # Subtest: bunyan.<LEVEL>s
         ok 1 - TRACE
         ok 2 - DEBUG
         ok 3 - INFO
         ok 4 - WARN
         ok 5 - ERROR
         ok 6 - FATAL
         1..6
     ok 1 - bunyan.<LEVEL>s # time=8.19ms
     
     # Subtest: bunyan.resolveLevel()
         ok 1 - TRACE
         ok 2 - TRACE
         ok 3 - DEBUG
         ok 4 - DEBUG
         ok 5 - INFO
         ok 6 - INFO
         ok 7 - WARN
         ok 8 - WARN
         ok 9 - ERROR
         ok 10 - ERROR
         ok 11 - FATAL
         ok 12 - FATAL
         1..12
     ok 2 - bunyan.resolveLevel() # time=5.314ms
     
     1..2
     # time=36.702ms
ok 12 - test/other-api.test.js # time=36.702ms

# Subtest: test/process-exit.test.js
     # Subtest: log with rotating file stream will terminate
         ok 1 - should not error
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 1 - log with rotating file stream will terminate # time=241.428ms
     
     1..1
     # time=248.695ms
ok 13 - test/process-exit.test.js # time=248.695ms

# Subtest: test/raw-stream.test.js
     # Subtest: raw stream
         ok 1 - should be equal
         ok 2 - first rec is an object
         ok 3 - "two" field made it through
         1..3
     ok 1 - raw stream # time=12.591ms
     
     # Subtest: raw streams and regular streams can mix
         ok 1 - should be equal
         ok 2 - first rawRec is an object
         ok 3 - "two" field made it through
         ok 4 - should be equal
         ok 5 - first nonRawRec is a string
         1..5
     ok 2 - raw streams and regular streams can mix # time=4.504ms
     
     # Subtest: child adding a non-raw stream works
         ok 1 - rawRecs length should be 1 (is 1)
         ok 2 - rawRec entry is an object
         ok 3 - "two" field made it through
         ok 4 - should be equal
         ok 5 - first nonRawRec is a string
         1..5
     ok 3 - child adding a non-raw stream works # time=6.163ms
     
     1..3
     # time=52.729ms
ok 14 - test/raw-stream.test.js # time=52.729ms

# Subtest: test/ringbuffer.test.js
     # Subtest: ringbuffer
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         ok 7 - should be equal
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - should be equal
         1..10
     ok 1 - ringbuffer # time=10.968ms
     
     1..1
     # time=30.995ms
ok 15 - test/ringbuffer.test.js # time=30.995ms

# Subtest: test/safe-json-stringify.test.js
     # Subtest: __defineGetter__ boom
         ok 1 - should not error
         ok 2 - should be equal
         1..2
     ok 1 - __defineGetter__ boom # time=234.164ms
     
     # Subtest: __defineGetter__ boom, without safe-json-stringify
         ok 1 - should not error
         ok 2 - expect truthy value
         ok 3 - expect truthy value
         1..3
     ok 2 - __defineGetter__ boom, without safe-json-stringify # time=214.369ms
     
     # Subtest: defineProperty boom
         ok 1 - should not error
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 3 - defineProperty boom # time=220.91ms
     
     # Subtest: defineProperty boom, without safe-json-stringify
         ok 1 - should not error
         ok 2 - expect truthy value
         ok 3 - should be equal
         ok 4 - expect truthy value
         ok 5 - should be equal
         1..5
     ok 4 - defineProperty boom, without safe-json-stringify # time=226.193ms
     
     1..4
     # time=901.839ms
ok 16 - test/safe-json-stringify.test.js # time=901.839ms

# Subtest: test/serializers.test.js
     # Subtest: req serializer
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         ok 7 - should be equal
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - should be equal
         ok 11 - should be equal
         1..11
     ok 1 - req serializer # time=56.504ms
     
     # Subtest: req serializer - express.originalUrl
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         1..4
     ok 2 - req serializer - express.originalUrl # time=5.698ms
     
     # Subtest: res serializer
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         ok 7 - should be equal
         ok 8 - should be equal
         ok 9 - should be equal
         1..9
     ok 3 - res serializer # time=5.088ms
     
     # Subtest: err serializer
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - should be equal
         ok 6 - should be equal
         ok 7 - should be equal
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - should be equal
         1..10
     ok 4 - err serializer # time=2.895ms
     
     # Subtest: err serializer: custom serializer
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         1..4
     ok 5 - err serializer: custom serializer # time=1.615ms
     
     # Subtest: err serializer: long stack
         ok 1 - Just a VError
         ok 2 - Just a VError
         ok 3 - Just a VError
         ok 4 - Just a WError
         ok 5 - Just a WError
         ok 6 - Just a WError
         ok 7 - WError <- TypeError
         ok 8 - WError <- TypeError
         ok 9 - WError <- TypeError
         ok 10 - WError <- WError
         ok 11 - WError <- WError
         ok 12 - WError <- WError
         ok 13 - WError <- WError <- TypeError
         ok 14 - WError <- WError <- TypeError
         ok 15 - WError <- WError <- TypeError
         ok 16 - WError <- WError <- WError
         ok 17 - WError <- WError <- WError
         ok 18 - WError <- WError <- WError
         1..18
     ok 6 - err serializer: long stack # time=8.297ms
     
     # Subtest: do not apply serializers if no record key
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         ok 4 - should be equal
         1..4
     ok 7 - do not apply serializers if no record key # time=1.143ms
     
     1..7
     # time=88.078ms
ok 17 - test/serializers.test.js # time=88.078ms

# Subtest: test/src.test.js
     # Subtest: src
         ok 1 - should be equal
         ok 2 - expect truthy value
         ok 3 - should be equal
         ok 4 - should be equal
         ok 5 - expect truthy value
         ok 6 - should be equal
         ok 7 - expect truthy value
         ok 8 - should be equal
         ok 9 - should be equal
         ok 10 - expect truthy value
         ok 11 - should be equal
         ok 12 - expect truthy value
         ok 13 - should be equal
         ok 14 - should be equal
         1..14
     ok 1 - src # time=13.247ms
     
     1..1
     # time=33.441ms
ok 18 - test/src.test.js # time=33.441ms

# Subtest: test/stream-levels.test.js
     # Subtest: default stream log level
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 1 - default stream log level # time=9.775ms
     
     # Subtest: default stream, level=DEBUG specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 2 - default stream, level=DEBUG specified # time=2.453ms
     
     # Subtest: default stream, level="trace" specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 3 - default stream, level="trace" specified # time=2.415ms
     
     # Subtest: stream & level="trace" specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 4 - stream & level="trace" specified # time=2.113ms
     
     # Subtest: one stream, default level
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 5 - one stream, default level # time=1.759ms
     
     # Subtest: one stream, top-"level" specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 6 - one stream, top-"level" specified # time=1.502ms
     
     # Subtest: one stream, stream-"level" specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 7 - one stream, stream-"level" specified # time=1.442ms
     
     # Subtest: one stream, both-"level" specified
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 8 - one stream, both-"level" specified # time=1.671ms
     
     # Subtest: two streams, both-"level" specified
         ok 1 - log.level()
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 9 - two streams, both-"level" specified # time=2.248ms
     
     # Subtest: two streams, one with "level" specified
         ok 1 - should be equal
         ok 2 - should be equal
         ok 3 - should be equal
         1..3
     ok 10 - two streams, one with "level" specified # time=1.897ms
     
     # Subtest: log level 0 to turn on all logging
         ok 1 - should be equal
         ok 2 - should be equal
         1..2
     ok 11 - log level 0 to turn on all logging # time=1.226ms
     
     1..11
     # time=77.985ms
ok 19 - test/stream-levels.test.js # time=77.985ms

1..19
# failed 1 of 19 tests
# time=8056.837ms
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202404/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a reduced
chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug
happens 73% of the time.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list