[Pkg-javascript-devel] Bug#1009602: node-optimist: FTBFS: ERROR: Coverage for statements (77.24%) does not meet global threshold (100%)

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


Source: node-optimist
Version: 0.6.1+~0.0.30-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/@types/optimist -> ../../types-optimist
>    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/optimist
> 	/bin/sh -ex debian/tests/pkg-js/test
> + grep -v test/parse.js
> + grep -v+  test/_.js
> ls test/_.js test/dash.js test/parse.js test/parse_modified.js test/short.js test/usage.js test/whitespace.js
> + tap test/dash.js test/parse_modified.js test/short.js test/usage.js test/whitespace.js
> TAP version 13
> (node:3944650) DeprecationWarning: deepEqual() is deprecated, use same() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> ok 1 - test/dash.js # time=34.587ms {
>     # Subtest: -
>         1..5
>         ok 1 - should be equivalent
>         ok 2 - should be equivalent
>         ok 3 - should be equivalent
>         ok 4 - should be equivalent
>         ok 5 - should be equivalent
>     ok 1 - - # time=24.757ms
>     
>     1..1
>     # time=34.587ms
> }
> 
> (node:3944651) DeprecationWarning: deepEqual() is deprecated, use same() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> ok 2 - test/parse_modified.js # time=19.24ms {
>     # Subtest: parse with modifier functions
>         1..1
>         ok 1 - should be equivalent
>     ok 1 - parse with modifier functions # time=12.826ms
>     
>     1..1
>     # time=19.24ms
> }
> 
> ok 3 - test/short.js # time=17.082ms {
>     # Subtest: -n123
>         1..1
>         ok 1 - should be equal
>     ok 1 - -n123 # time=7.994ms
>     
>     # Subtest: -123
>         1..3
>         ok 1 - should be equal
>         ok 2 - should be equal
>         ok 3 - should be equal
>     ok 2 - -123 # time=1.646ms
>     
>     1..2
>     # time=17.082ms
> }
> 
> ok 4 - test/usage.js # time=59.216ms {
>     # Subtest: usageFail
>         ok 1 - should be equivalent
>         ok 2 - should be equivalent
>         ok 3 - should be equivalent
>         ok 4 - expect truthy value
>         1..4
>     ok 1 - usageFail # time=12.824ms
>     
>     # Subtest: usagePass
>         ok 1 - should be equivalent
>         1..1
>     ok 2 - usagePass # time=2.626ms
>     
>     # Subtest: checkPass
>         ok 1 - should be equivalent
>         1..1
>     ok 3 - checkPass # time=2.399ms
>     
>     # Subtest: checkFail
>         ok 1 - should be equivalent
>         ok 2 - should be equivalent
>         ok 3 - should be equivalent
>         ok 4 - expect truthy value
>         1..4
>     ok 4 - checkFail # time=3.13ms
>     
>     # Subtest: checkCondPass
>         ok 1 - should be equivalent
>         1..1
>     ok 5 - checkCondPass # time=1.705ms
>     
>     # Subtest: checkCondFail
>         ok 1 - should be equivalent
>         ok 2 - should be equivalent
>         ok 3 - should be equivalent
>         ok 4 - expect truthy value
>         1..4
>     ok 6 - checkCondFail # time=2.882ms
>     
>     # Subtest: countPass
>         ok 1 - should be equivalent
>         1..1
>     ok 7 - countPass # time=1.653ms
>     
>     # Subtest: countFail
>         ok 1 - should be equivalent
>         ok 2 - should be equivalent
>         ok 3 - should be equivalent
>         ok 4 - expect truthy value
>         1..4
>     ok 8 - countFail # time=2.386ms
>     
>     # Subtest: defaultSingles
>         ok 1 - should be equivalent
>         1..1
>     ok 9 - defaultSingles # time=1.623ms
>     
>     # Subtest: defaultAliases
>         ok 1 - should be equivalent
>         1..1
>     ok 10 - defaultAliases # time=1.382ms
>     
>     # Subtest: defaultHash
>         ok 1 - should be equivalent
>         1..1
>     ok 11 - defaultHash # time=1.28ms
>     
>     # Subtest: rebase
>         ok 1 - should be equal
>         ok 2 - should be equal
>         ok 3 - should be equal
>         1..3
>     ok 12 - rebase # time=1.136ms
>     
>     1..12
>     # time=59.216ms
> }
> 
> ok 5 - test/whitespace.js # time=10.551ms {
>     # Subtest: whitespace should be whitespace
>         1..1
>         ok 1 - should be equal
>     ok 1 - whitespace should be whitespace # time=5.326ms
>     
>     1..1
>     # time=10.551ms
> }
> 
> 1..5
> # time=1511.357ms
> ERROR: Coverage for lines (78.57%) does not meet global threshold (100%)
> ERROR: Coverage for functions (80.55%) does not meet global threshold (100%)
> ERROR: Coverage for branches (56.07%) does not meet global threshold (100%)
> ERROR: Coverage for statements (77.24%) does not meet global threshold (100%)
> ----------|---------|----------|---------|---------|------------------------------------------------
> File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                              
> ----------|---------|----------|---------|---------|------------------------------------------------
> All files |   77.24 |    56.07 |   80.55 |   78.57 |                                                
>  index.js |   77.24 |    56.07 |   80.55 |   78.57 | ...128-136,144-169,174-175,215,223,242,261-265 
> ----------|---------|----------|---------|---------|------------------------------------------------
> 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-optimist_0.6.1+~0.0.30-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