[Pkg-javascript-devel] Bug#1009534: node-bunyan: FTBFS: ERROR: Coverage for statements (60.48%) does not meet global threshold (100%)
Lucas Nussbaum
lucas at debian.org
Tue Apr 12 20:18:15 BST 2022
Source: node-bunyan
Version: 2.0.5+~cs4.4.3-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> 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 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
> (node:280244) DeprecationWarning: ifError() is deprecated, use error() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:280253) DeprecationWarning: ifError() is deprecated, use error() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:280246) DeprecationWarning: ifError() is deprecated, use error() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> ok 1 - test/add-stream.test.js # time=170.035ms {
> # 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=100.014ms
>
> # Subtest: proper stream
> ok 1 - expect truthy value
> 1..1
> ok 2 - proper stream # time=7.192ms
>
> 1..2
> # time=170.035ms
> }
>
> ok 2 - test/buffer.test.js # time=86.813ms {
> # 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=24.925ms
>
> 1..1
> # time=86.813ms
> }
>
> ok 3 - test/child-behaviour.test.js # time=70.369ms {
> # 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=13.007ms
>
> # 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.525ms
>
> # 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=2.542ms
>
> # 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.91ms
>
> 1..4
> # time=70.369ms
> }
>
> ok 4 - test/cli-client-req.test.js # time=1625.354ms {
> # 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=1190.976ms
>
> # 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=424.57ms
>
> 1..2
> # time=1625.354ms
> }
>
> ok 5 - test/cli-res.test.js # time=1763.508ms {
> # 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=1129.885ms
>
> # Subtest: res without "header"
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 2 - res without "header" # time=596.853ms
>
> 1..2
> # time=1763.508ms
> }
>
> (node:280404) DeprecationWarning: ifError() is deprecated, use error() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:280433) DeprecationWarning: ifError() is deprecated, use error() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> ok 6 - test/cli.test.js # time=11544.929ms {
> # Subtest: --version
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 1 - --version # time=1228.181ms
>
> # Subtest: --help
> ok 1 - should not error
> ok 2 - expect truthy value
> 1..2
> ok 2 - --help # time=438.769ms
>
> # Subtest: -h
> ok 1 - should not error
> ok 2 - expect truthy value
> 1..2
> ok 3 - -h # time=432.865ms
>
> # Subtest: --bogus
> ok 1 - should error out
> ok 2 - ... with exit code 1
> 1..2
> ok 4 - --bogus # time=426.324ms
>
> # Subtest: simple.log
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 5 - simple.log # time=405.434ms
>
> # Subtest: cat simple.log
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 6 - cat simple.log # time=386.524ms
>
> # Subtest: time TZ tests
> 1..0
> ok 7 - time TZ tests # time=23.855ms
>
> # Subtest: simple.log with color
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 8 - simple.log with color # time=293.408ms
>
> # Subtest: extrafield.log
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 9 - extrafield.log # time=257.231ms
>
> # Subtest: extrafield.log with color
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 10 - extrafield.log with color # time=259.843ms
>
> # Subtest: bogus.log
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 11 - bogus.log # time=258.382ms
>
> # Subtest: bogus.log -j
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 12 - bogus.log -j # time=252.685ms
>
> # Subtest: all.log
> ok 1 - should not error
> 1..1
> ok 13 - all.log # time=257.902ms
>
> # Subtest: simple.log doesnotexist1.log doesnotexist2.log
> ok 1 - expect truthy value
> ok 2 - should be equal
> ok 3 - should be equal
> ok 4 - stderr matches /^bunyan: ENOENT.*?, open '.*?doesnotexist1.log'/m, stderr="bunyan: ENOENT: no such file or directory, open 'doesnotexist1.log'\\nbunyan: ENOENT: no such file or directory, open 'doesnotexist2.log'\\n"
> ok 5 - stderr matches /^bunyan: ENOENT.*?, open '.*?doesnotexist2.log'/m, stderr="bunyan: ENOENT: no such file or directory, open 'doesnotexist1.log'\\nbunyan: ENOENT: no such file or directory, open 'doesnotexist2.log'\\n"
> 1..5
> ok 14 - simple.log doesnotexist1.log doesnotexist2.log # time=274.495ms
>
> # Subtest: multiple logs
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 15 - multiple logs # time=259.849ms
>
> # Subtest: multiple logs, bunyan format
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 16 - multiple logs, bunyan format # time=261.3ms
>
> # Subtest: log1.log.gz
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 17 - log1.log.gz # time=418.384ms
>
> # 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=269.053ms
>
> # 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=515.1ms
>
> # 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=601.781ms
>
> # Subtest: --condition "this.level === TRACE
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 21 - --condition "this.level === TRACE # time=337.4ms
>
> # Subtest: multiple --conditions
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 22 - multiple --conditions # time=263.572ms
>
> # Subtest: robust req handling
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 23 - robust req handling # time=310.592ms
>
> # 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=1717.896ms
>
> # 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=275.954ms
>
> # 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=267.95ms
>
> # 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=271.943ms
>
> # 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=298.415ms
>
> # 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=261.181ms
>
> 1..29
> # time=11544.929ms
> }
>
> ok 7 - test/ctor.test.js # time=142.666ms {
> # 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=32.549ms
>
> # 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=13.18ms
>
> # 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=8.017ms
>
> # 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=7.713ms
>
> # 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=2.986ms
>
> 1..5
> # time=142.666ms
> }
>
> ok 8 - test/cycles.test.js # time=27.871ms {
> # 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=10.576ms
>
> 1..1
> # time=27.871ms
> }
>
> ok 9 - test/error-event.test.js # time=70.856ms {
> # 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=51.967ms
>
> # 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=4.038ms
>
> # 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.931ms
>
> # 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.389ms
>
> # 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=1.115ms
>
> # 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.637ms
>
> 1..6
> # time=70.856ms
> }
>
> ok 10 - test/level.test.js # time=71.738ms {
> # Subtest: log.level() -> level num
> ok 1 - should be equal
> 1..1
> ok 1 - log.level() -> level num # time=6.921ms
>
> # Subtest: log.level(<const>)
> ok 1 - should be equal
> 1..1
> ok 2 - log.level(<const>) # time=1.462ms
>
> # Subtest: log.level(<num>)
> ok 1 - should be equal
> 1..1
> ok 3 - log.level(<num>) # time=1.049ms
>
> # Subtest: log.level(<name>)
> ok 1 - should be equal
> 1..1
> ok 4 - log.level(<name>) # time=1.055ms
>
> # Subtest: log.level(FATAL + 1)
> ok 1 - should be equal
> 1..1
> ok 5 - log.level(FATAL + 1) # time=1.036ms
>
> # 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.032ms
>
> # 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=10.766ms
>
> 1..7
> # time=71.738ms
> }
>
> ok 11 - test/log.test.js # time=178.189ms {
> # 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=19.646ms
>
> # 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=7.468ms
>
> # 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=6.409ms
>
> # 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=1.656ms
>
> # 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=3.44ms
>
> # 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=1.956ms
>
> # 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=2.686ms
>
> # 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.172ms
>
> # 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=7.144ms
>
> # 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=2.007ms
>
> # 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=2.953ms
>
> # 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.601ms
>
> # 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=6.643ms
>
> # 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.317ms
>
> # 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.609ms
>
> # 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=1.77ms
>
> # 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=1.85ms
>
> 1..17
> # time=178.189ms
> }
>
> ok 12 - test/other-api.test.js # time=50.09ms {
> # 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=7.819ms
>
> # 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=4.461ms
>
> 1..2
> # time=50.09ms
> }
>
> ok 13 - test/process-exit.test.js # time=413.491ms {
> # 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=402.943ms
>
> 1..1
> # time=413.491ms
> }
>
> ok 14 - test/raw-stream.test.js # time=53.141ms {
> # 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=11.035ms
>
> # 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=5.721ms
>
> # 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=2.456ms
>
> 1..3
> # time=53.141ms
> }
>
> ok 15 - test/ringbuffer.test.js # time=42.641ms {
> # 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=13.541ms
>
> 1..1
> # time=42.641ms
> }
>
> ok 16 - test/safe-json-stringify.test.js # time=1281.373ms {
> # Subtest: __defineGetter__ boom
> ok 1 - should not error
> ok 2 - should be equal
> 1..2
> ok 1 - __defineGetter__ boom # time=418.063ms
>
> # 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=301.959ms
>
> # 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=278.298ms
>
> # 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=275.085ms
>
> 1..4
> # time=1281.373ms
> }
>
> ok 17 - test/serializers.test.js # time=112.096ms {
> # 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.168ms
>
> # 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=14.319ms
>
> # 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=8.592ms
>
> # 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=3.918ms
>
> # 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=3.139ms
>
> # 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=11.036ms
>
> # 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.408ms
>
> 1..7
> # time=112.096ms
> }
>
> ok 18 - test/src.test.js # time=28.784ms {
> # 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=11.371ms
>
> 1..1
> # time=28.784ms
> }
>
> ok 19 - test/stream-levels.test.js # time=69.454ms {
> # Subtest: default stream log level
> ok 1 - should be equal
> ok 2 - should be equal
> 1..2
> ok 1 - default stream log level # time=8.255ms
>
> # 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=1.716ms
>
> # 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=1.855ms
>
> # Subtest: stream & level="trace" specified
> ok 1 - should be equal
> ok 2 - should be equal
> 1..2
> ok 4 - stream & level="trace" specified # time=1.857ms
>
> # 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.815ms
>
> # 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.718ms
>
> # 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.907ms
>
> # 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=2.933ms
>
> # 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=4.257ms
>
> # 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.352ms
>
> # 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.007ms
>
> 1..11
> # time=69.454ms
> }
>
> 1..19
> # time=12238.413ms
> ERROR: Coverage for lines (61.14%) does not meet global threshold (100%)
> ERROR: Coverage for functions (49.48%) does not meet global threshold (100%)
> ERROR: Coverage for branches (55.5%) does not meet global threshold (100%)
> ERROR: Coverage for statements (60.48%) does not meet global threshold (100%)
> -------------------|---------|----------|---------|---------|---------------------------------------
> File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
> -------------------|---------|----------|---------|---------|---------------------------------------
> All files | 60.48 | 55.5 | 49.48 | 61.14 |
> exeunt/lib | 47.36 | 29.41 | 20 | 47.36 |
> exeunt.js | 47.36 | 29.41 | 20 | 47.36 | 18-20,48,53-85
> lib | 64.86 | 60.73 | 57.74 | 65.34 |
> bunyan.js | 64.86 | 60.73 | 57.74 | 65.34 | ...1548,1574,1585-1587,1591-1592,1596
> mv | 9.23 | 0 | 0 | 9.83 |
> index.js | 9.23 | 0 | 0 | 9.83 | 10-103
> safejsonstringify | 81.25 | 71.42 | 100 | 81.25 |
> index.js | 81.25 | 71.42 | 100 | 81.25 | 17,29,39,44-46
> -------------------|---------|----------|---------|---------|---------------------------------------
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2022/04/12/node-bunyan_2.0.5+~cs4.4.3-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-javascript-devel
mailing list