[Pkg-javascript-devel] Bug#1009513: node-object-inspect: FTBFS: ERROR: Coverage for statements (60.76%) does not meet global threshold (100%)

Lucas Nussbaum lucas at debian.org
Tue Apr 12 20:20:09 BST 2022


Source: node-object-inspect
Version: 1.11.0+~cs1.8.1-2
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/@types/object-inspect -> ../../types-object-inspect
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	ln -s ../. node_modules/object-inspect
> 	/bin/sh -ex debian/tests/pkg-js/test
> + find test -maxdepth 1 -name *.js -and -not -name fn.js
> + tap -R spec test/toStringTag.js test/undef.js test/lowbyte.js test/err.js test/element.js test/inspect.js test/number.js test/indent-option.js test/deep.js test/circular.js test/has.js test/fakes.js test/values.js test/quoteStyle.js test/bigint.js test/holes.js
> 
> test/toStringTag.js
> 
>   ✓ object, no Symbol.toStringTag
> 
>   ✓ object with Symbol.toStringTag
> 
>   ✓ null object with Symbol.toStringTag
> 
>   ✓ null object with Symbol.toStringTag
> 
>   ✓ instance, no toStringTag, Object.prototype.toString
> 
>   ✓ instance, no toStringTag
> 
>   ✓ instance, with toStringTag, Object.prototype.toString
> 
>   ✓ instance, with toStringTag
> test/undef.js
> 
>   ✓ should be strictly equal
> test/lowbyte.js
> 
>   ✓ should be strictly equal
> test/err.js
> 
>   ✓ should be strictly equal
> test/element.js
> 
>   ✓ should be deeply equivalent
> 
>   ✓ should be deeply equivalent
> 
>   ✓ should be deeply equivalent
> 
>   ✓ should be deeply equivalent
> 
>   ✓ should be deeply equivalent
> 
>   ✓ should be deeply equivalent
> test/inspect.js
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ `customInspect` must be a boolean or the string "symbol"
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ object with symbols
> 
>   ✓ object with symbols in array
> 
>   ✓ maxStringLength must be >= 0, or Infinity, not negative
> 
>   ✓ maxStringLength option limits output
> 
>   ✓ maxStringLength option accepts `null`
> 
>   ✓ maxStringLength option accepts ∞
> test/number.js
> 
>   ✓ inspect(0) === "0"
> 
>   ✓ inspect(Object(0)) === "Object(0)"
> 
>   ✓ inspect(-0) === "-0"
> 
>   ✓ inspect(Object(-0)) === "Object(-0)"
> test/indent-option.js
> 
>   ✓ undefined is invalid
> 
>   ✓ true is invalid
> 
>   ✓ false is invalid
> 
>   ✓ -1 is invalid
> 
>   ✓ 1.2 is invalid
> 
>   ✓ Infinity is invalid
> 
>   ✓ -Infinity is invalid
> 
>   ✓ NaN is invalid
> 
>   ✓ two
> 
>   ✓ tabs
> 
>   ✓ two
> 
>   ✓ tabs
> 
>   ✓ two
> 
>   ✓ tabs
> 
>   ✓ two
> 
>   ✓ tabs
> 
>   ✓ two
> 
>   ✓ tabs
> 
>   ✓ Map keys are not indented (two)
> 
>   ✓ Map keys are not indented (tabs)
> 
>   ✓ Map keys are not indented (tabs + double quotes)
> 
>   ✓ empty Map should show as empty (two)
> 
>   ✓ empty Map should show as empty (tabs)
> 
>   ✓ Map containing a Map should work (two)
> 
>   ✓ Map containing a Map should work (tabs)
> 
>   ✓ new Set([{ a: 1 }, ["b"]]) should show size and contents (two)
> 
>   ✓ new Set([{ a: 1 }, ["b"]]) should show size and contents (tabs)
> 
>   ✓ empty Set should show as empty (two)
> 
>   ✓ empty Set should show as empty (tabs)
> 
>   ✓ Set containing a Set should work (two)
> 
>   ✓ Set containing a Set should work (tabs)
> test/deep.js
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> test/circular.js
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> test/has.js
> 
>   ✓ should be strictly equal
> test/fakes.js
> 
>   ✓ faker masquerading as Array is not shown as one
> 
>   ✓ faker masquerading as Boolean is not shown as one
> 
>   ✓ faker masquerading as Date is not shown as one
> 
>   ✓ faker masquerading as Error is not shown as one
> 
>   ✓ faker masquerading as Number is not shown as one
> 
>   ✓ faker masquerading as RegExp is not shown as one
> 
>   ✓ faker masquerading as String is not shown as one
> test/values.js
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ Symbol("foo") should be "Symbol(foo)"
> 
>   ✓ Object(Symbol("foo")) should be "Object(Symbol(foo))"
> 
>   ✓ object lying about being a Symbol inspects as an object
> 
>   ✓ new Map([[{ a: 1 }, ["b"]], [3, NaN]]) should show size and contents
> 
>   ✓ empty Map should show as empty
> 
>   ✓ Map containing a Map should work
> 
>   ✓ new WeakMap([[{ a: 1 }, ["b"]]]) should not show size or contents
> 
>   ✓ empty WeakMap should not show as empty
> 
>   ✓ new Set([{ a: 1 }, ["b"]]) should show size and contents
> 
>   ✓ empty Set should show as empty
> 
>   ✓ Set containing a Set should work
> 
>   ✓ new WeakSet([{ a: 1 }]) should not show size or contents
> 
>   ✓ empty WeakSet should not show as empty
> 
>   ✓ new WeakRef({ a: 1 }) should not show contents
> 
>   ✓ new FinalizationRegistry(function () {}) should work normallys
> 
>   ✓ primitive string shows as such
> 
>   ✓ primitive string shows as such, single quoted
> 
>   ✓ primitive string shows as such, double quoted
> 
>   ✓ String object shows as such
> 
>   ✓ String object shows as such, single quoted
> 
>   ✓ String object shows as such, double quoted
> 
>   ✓ primitive number shows as such
> 
>   ✓ Number object shows as such
> 
>   ✓ primitive true shows as such
> 
>   ✓ Boolean object true shows as such
> 
>   ✓ primitive false shows as such
> 
>   ✓ Boolean false object shows as such
> 
>   ✓ Date shows properly
> 
>   ✓ Invalid Date shows properly
> 
>   ✓ regex shows properly
> 
>   ✓ new RegExp shows properly
> 
>   ✓ RegExp match object shows properly
> test/quoteStyle.js
> 
>   ✓ false is not a valid value
> 
>   ✓ true is not a valid value
> 
>   ✓ "" is not a valid value
> 
>   ✓ {} is not a valid value
> 
>   ✓ [] is not a valid value
> 
>   ✓ 42 is not a valid value
> 
>   ✓ NaN is not a valid value
> 
>   ✓ a function is not a valid value
> test/bigint.js
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ should be strictly equal
> 
>   ✓ object lying about being a BigInt inspects as an object
> test/holes.js
> 
>   ✓ should be strictly equal
> 
>   138 passing (3s)
> ERROR: Coverage for lines (60.23%) does not meet global threshold (100%)
> ERROR: Coverage for functions (60.71%) does not meet global threshold (100%)
> ERROR: Coverage for branches (85.71%) does not meet global threshold (100%)
> ERROR: Coverage for statements (60.76%) does not meet global threshold (100%)
> 
> =============================== Coverage summary ===============================
> Statements   : 60.76% ( 271/446 )
> Branches     : 85.71% ( 330/385 )
> Functions    : 60.71% ( 34/56 )
> Lines        : 60.23% ( 253/420 )
> ================================================================================
> ---------------------------------------|---------|----------|---------|---------|-------------------
> File                                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
> ---------------------------------------|---------|----------|---------|---------|-------------------
> All files                              |   60.76 |    85.71 |   60.71 |   60.23 |                   
>  node-object-inspect-1.11.0+~cs1.8.1   |   91.86 |    88.23 |   94.44 |   92.67 |                   
>   index.js                             |   91.83 |    88.23 |   94.44 |   92.64 | ...50,442-444,453 
>   util.inspect.js                      |     100 |      100 |     100 |     100 |                   
>  ....0+~cs1.8.1/.pc/fix-test.diff/test |       0 |        0 |       0 |       0 |                   
>   indent-option.js                     |       0 |      100 |       0 |       0 | 1-270             
>   inspect.js                           |       0 |        0 |       0 |       0 | 1-101             
>  ...ct-inspect-1.11.0+~cs1.8.1/example |       0 |      100 |       0 |       0 |                   
>   all.js                               |       0 |      100 |     100 |       0 | 3-23              
>   circular.js                          |       0 |      100 |     100 |       0 | 3-6               
>   fn.js                                |       0 |      100 |       0 |       0 | 3-5               
>   inspect.js                           |       0 |      100 |     100 |       0 | 4-10              
> ---------------------------------------|---------|----------|---------|---------|-------------------
> 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-object-inspect_1.11.0+~cs1.8.1-2_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