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

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


Source: node-lynx
Version: 0.2.1-4
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
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../. node_modules/lynx
> 	/bin/sh -ex debian/tests/pkg-js/test
> + tap tests/counts-test.js tests/errors-test.js tests/gauges-test.js tests/sampling-test.js tests/scopes-test.js tests/sets-test.js tests/stream-test.js tests/timings-test.js
> TAP version 13
> (node:3974192) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974166) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974178) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974169) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974167) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974168) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:3974170) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> ok 1 - tests/counts-test.js # time=1023.256ms {
>     # Subtest: counts test
>         ok 1 - Equality check for foo.bar:1|c
>         ok 2 - Equality check for uno:-1|c two:-1|c trezentos:-1|c
>         ok 3 - Equality check for boaz:101|c
>         ok 4 - Equality check for foo.baz:-1|c
>         1..4
>     ok 1 - counts test # time=36.295ms
>     
>     1..1
>     # time=1023.256ms
> }
> 
> ok 2 - tests/errors-test.js # time=23.272ms {
>     # Subtest: errors
>         ok 1 - should have a reference to the function
>         ok 2 - args should be supplied
>         ok 3 - should be equal
>         ok 4 - should have a reference to the function
>         ok 5 - args should be supplied
>         ok 6 - should be equal
>         ok 7 - should have a reference to the function
>         ok 8 - args should be supplied
>         ok 9 - should be equal
>         1..9
>     ok 1 - errors # time=15.925ms
>     
>     1..1
>     # time=23.272ms
> }
> 
> not ok 3 - tests/gauges-test.js # time=1014.937ms
>   ---
>   env: {}
>   file: tests/gauges-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/gauges-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: gauges test
>         not ok 1 - bind EADDRINUSE 127.0.0.1:9753
>           ---
>           at:
>             line: 357
>             column: 20
>             file: dgram.js
>             function: GetAddrInfoReqWrap.callback
>           errno: -98
>           code: EADDRINUSE
>           syscall: bind
>           address: 127.0.0.1
>           port: 9753
>           tapCaught: uncaughtException
>           test: gauges test
>           ...
>         
>         1..1
>         # failed 1 test
>     not ok 1 - gauges test # time=36.039ms
>     
>     1..1
>     # failed 1 test
>     # time=1014.937ms
> }
> 
> not ok 4 - tests/sampling-test.js # time=6853.705ms
>   ---
>   env: {}
>   file: tests/sampling-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/sampling-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: sampling
>         ok 1 - foo.gauge.1:500|g
>         not ok 2 - should be equal
>           ---
>           found: "0.1"
>           wanted: null
>           compare: ===
>           at:
>             line: 59
>             column: 7
>             file: tests/sampling-test.js
>             type: Socket
>           stack: |
>             Socket.<anonymous> (tests/sampling-test.js:59:7)
>           source: |2
>                 t.ok(match, message.toString());
>                 t.equal(SAMPLE.toString(), match.sample_rate);
>             ------^
>           
>                 //
>           ...
>         
>         ok 3 - foo.gauge.2:15|g
>         not ok 4 - should be equal
>           ---
>           found: "0.1"
>           wanted: null
>           compare: ===
>           at:
>             line: 59
>             column: 7
>             file: tests/sampling-test.js
>             type: Socket
>           stack: |
>             Socket.<anonymous> (tests/sampling-test.js:59:7)
>           source: |2
>                 t.ok(match, message.toString());
>                 t.equal(SAMPLE.toString(), match.sample_rate);
>             ------^
>           
>                 //
>           ...
>         
>         ok 5 - set1.bar:567|s
>         not ok 6 - should be equal
>           ---
>           found: "0.1"
>           wanted: null
>           compare: ===
>           at:
>             line: 59
>             column: 7
>             file: tests/sampling-test.js
>             type: Socket
>           stack: |
>             Socket.<anonymous> (tests/sampling-test.js:59:7)
>           source: |2
>                 t.ok(match, message.toString());
>                 t.equal(SAMPLE.toString(), match.sample_rate);
>             ------^
>           
>                 //
>           ...
>         
>         ok 7 - set1.foo:765|s
>         not ok 8 - should be equal
>           ---
>           found: "0.1"
>           wanted: null
>           compare: ===
>           at:
>             line: 59
>             column: 7
>             file: tests/sampling-test.js
>             type: Socket
>           stack: |
>             Socket.<anonymous> (tests/sampling-test.js:59:7)
>           source: |2
>                 t.ok(match, message.toString());
>                 t.equal(SAMPLE.toString(), match.sample_rate);
>             ------^
>           
>                 //
>           ...
>         
>         ok 9 - spl.foo:500|g|@0.1
>         ok 10 - should be equal
>         ok 11 - spl.foo:500|g|@0.1
>         ok 12 - should be equal
>         ok 13 - spl.foo:500|g|@0.1
>         ok 14 - should be equal
>         ok 15 - spl.foo:500|g|@0.1
>         ok 16 - should be equal
>         ok 17 - spl.foo:500|g|@0.1
>         ok 18 - should be equal
>         ok 19 - spl.foo:500|g|@0.1
>         ok 20 - should be equal
>         ok 21 - spl.foo:500|g|@0.1
>         ok 22 - should be equal
>         ok 23 - spl.foo:500|g|@0.1
>         ok 24 - should be equal
>         ok 25 - spl.foo:500|g|@0.1
>         ok 26 - should be equal
>         ok 27 - spl.foo:500|g|@0.1
>         ok 28 - should be equal
>         ok 29 - spl.foo:500|g|@0.1
>         ok 30 - should be equal
>         ok 31 - spl.foo:500|g|@0.1
>         ok 32 - should be equal
>         ok 33 - spl.foo:500|g|@0.1
>         ok 34 - should be equal
>         ok 35 - spl.foo:500|g|@0.1
>         ok 36 - should be equal
>         ok 37 - spl.foo:500|g|@0.1
>         ok 38 - should be equal
>         ok 39 - spl.foo:500|g|@0.1
>         ok 40 - should be equal
>         ok 41 - spl.foo:500|g|@0.1
>         ok 42 - should be equal
>         ok 43 - spl.foo:500|g|@0.1
>         ok 44 - should be equal
>         ok 45 - spl.foo:500|g|@0.1
>         ok 46 - should be equal
>         ok 47 - spl.foo:500|g|@0.1
>         ok 48 - should be equal
>         ok 49 - spl.foo:500|g|@0.1
>         ok 50 - should be equal
>         ok 51 - spl.foo:500|g|@0.1
>         ok 52 - should be equal
>         ok 53 - spl.foo:500|g|@0.1
>         ok 54 - should be equal
>         ok 55 - spl.foo:500|g|@0.1
>         ok 56 - should be equal
>         ok 57 - spl.foo:500|g|@0.1
>         ok 58 - should be equal
>         ok 59 - spl.foo:500|g|@0.1
>         ok 60 - should be equal
>         ok 61 - spl.foo:500|g|@0.1
>         ok 62 - should be equal
>         ok 63 - spl.foo:500|g|@0.1
>         ok 64 - should be equal
>         ok 65 - spl.foo:500|g|@0.1
>         ok 66 - should be equal
>         ok 67 - spl.foo:500|g|@0.1
>         ok 68 - should be equal
>         ok 69 - spl.foo:500|g|@0.1
>         ok 70 - should be equal
>         ok 71 - spl.foo:500|g|@0.1
>         ok 72 - should be equal
>         ok 73 - spl.foo:500|g|@0.1
>         ok 74 - should be equal
>         ok 75 - spl.foo:500|g|@0.1
>         ok 76 - should be equal
>         ok 77 - spl.foo:500|g|@0.1
>         ok 78 - should be equal
>         ok 79 - spl.foo:500|g|@0.1
>         ok 80 - should be equal
>         ok 81 - spl.foo:500|g|@0.1
>         ok 82 - should be equal
>         ok 83 - spl.foo:500|g|@0.1
>         ok 84 - should be equal
>         ok 85 - spl.foo:500|g|@0.1
>         ok 86 - should be equal
>         ok 87 - spl.foo:500|g|@0.1
>         ok 88 - should be equal
>         ok 89 - spl.foo:500|g|@0.1
>         ok 90 - should be equal
>         ok 91 - spl.foo:500|g|@0.1
>         ok 92 - should be equal
>         ok 93 - spl.foo:500|g|@0.1
>         ok 94 - should be equal
>         ok 95 - spl.foo:500|g|@0.1
>         ok 96 - should be equal
>         ok 97 - spl.foo:500|g|@0.1
>         ok 98 - should be equal
>         ok 99 - spl.foo:500|g|@0.1
>         ok 100 - should be equal
>         ok 101 - spl.foo:500|g|@0.1
>         ok 102 - should be equal
>         ok 103 - spl.foo:500|g|@0.1
>         ok 104 - should be equal
>         ok 105 - spl.foo:500|g|@0.1
>         ok 106 - should be equal
>         ok 107 - spl.foo:500|g|@0.1
>         ok 108 - should be equal
>         ok 109 - spl.foo:500|g|@0.1
>         ok 110 - should be equal
>         ok 111 - spl.foo:500|g|@0.1
>         ok 112 - should be equal
>         ok 113 - spl.foo:500|g|@0.1
>         ok 114 - should be equal
>         ok 115 - spl.foo:500|g|@0.1
>         ok 116 - should be equal
>         ok 117 - spl.foo:500|g|@0.1
>         ok 118 - should be equal
>         ok 119 - spl.foo:500|g|@0.1
>         ok 120 - should be equal
>         ok 121 - spl.foo:500|g|@0.1
>         ok 122 - should be equal
>         ok 123 - spl.foo:500|g|@0.1
>         ok 124 - should be equal
>         ok 125 - spl.foo:500|g|@0.1
>         ok 126 - should be equal
>         ok 127 - spl.foo:500|g|@0.1
>         ok 128 - should be equal
>         ok 129 - spl.foo:500|g|@0.1
>         ok 130 - should be equal
>         ok 131 - spl.foo:500|g|@0.1
>         ok 132 - should be equal
>         ok 133 - spl.foo:500|g|@0.1
>         ok 134 - should be equal
>         ok 135 - spl.foo:500|g|@0.1
>         ok 136 - should be equal
>         ok 137 - spl.foo:500|g|@0.1
>         ok 138 - should be equal
>         ok 139 - spl.foo:500|g|@0.1
>         ok 140 - should be equal
>         ok 141 - spl.foo:500|g|@0.1
>         ok 142 - should be equal
>         ok 143 - spl.foo:500|g|@0.1
>         ok 144 - should be equal
>         ok 145 - spl.foo:500|g|@0.1
>         ok 146 - should be equal
>         ok 147 - spl.foo:500|g|@0.1
>         ok 148 - should be equal
>         ok 149 - spl.foo:500|g|@0.1
>         ok 150 - should be equal
>         ok 151 - spl.foo:500|g|@0.1
>         ok 152 - should be equal
>         ok 153 - spl.foo:500|g|@0.1
>         ok 154 - should be equal
>         ok 155 - spl.foo:500|g|@0.1
>         ok 156 - should be equal
>         ok 157 - spl.foo:500|g|@0.1
>         ok 158 - should be equal
>         ok 159 - spl.foo:500|g|@0.1
>         ok 160 - should be equal
>         ok 161 - spl.foo:500|g|@0.1
>         ok 162 - should be equal
>         ok 163 - spl.foo:500|g|@0.1
>         ok 164 - should be equal
>         ok 165 - spl.foo:500|g|@0.1
>         ok 166 - should be equal
>         ok 167 - spl.foo:500|g|@0.1
>         ok 168 - should be equal
>         ok 169 - spl.foo:500|g|@0.1
>         ok 170 - should be equal
>         ok 171 - spl.foo:500|g|@0.1
>         ok 172 - should be equal
>         ok 173 - spl.foo:500|g|@0.1
>         ok 174 - should be equal
>         ok 175 - spl.foo:500|g|@0.1
>         ok 176 - should be equal
>         ok 177 - spl.foo:500|g|@0.1
>         ok 178 - should be equal
>         ok 179 - spl.foo:500|g|@0.1
>         ok 180 - should be equal
>         ok 181 - spl.foo:500|g|@0.1
>         ok 182 - should be equal
>         ok 183 - Reached 90 on 951 packets.
>         ok 184 - Reached 90 on 1000 packets.
>         1..184
>         # failed 4 of 184 tests
>     not ok 1 - sampling # time=5874.939ms
>     
>     1..1
>     # failed 1 test
>     # time=6853.705ms
> }
> 
> not ok 5 - tests/scopes-test.js # time=1027.381ms
>   ---
>   env: {}
>   file: tests/scopes-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/scopes-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: scopes test
>         not ok 1 - bind EADDRINUSE 127.0.0.1:9753
>           ---
>           at:
>             line: 357
>             column: 20
>             file: dgram.js
>             function: GetAddrInfoReqWrap.callback
>           errno: -98
>           code: EADDRINUSE
>           syscall: bind
>           address: 127.0.0.1
>           port: 9753
>           tapCaught: uncaughtException
>           test: scopes test
>           ...
>         
>         1..1
>         # failed 1 test
>     not ok 1 - scopes test # time=81.108ms
>     
>     1..1
>     # failed 1 test
>     # time=1027.381ms
> }
> 
> not ok 6 - tests/sets-test.js # time=1015.225ms
>   ---
>   env: {}
>   file: tests/sets-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/sets-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: sets test
>         not ok 1 - bind EADDRINUSE 127.0.0.1:9753
>           ---
>           at:
>             line: 357
>             column: 20
>             file: dgram.js
>             function: GetAddrInfoReqWrap.callback
>           errno: -98
>           code: EADDRINUSE
>           syscall: bind
>           address: 127.0.0.1
>           port: 9753
>           tapCaught: uncaughtException
>           test: sets test
>           ...
>         
>         1..1
>         # failed 1 test
>     not ok 1 - sets test # time=37.505ms
>     
>     1..1
>     # failed 1 test
>     # time=1015.225ms
> }
> 
> not ok 7 - tests/stream-test.js # time=151.677ms
>   ---
>   env: {}
>   file: tests/stream-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/stream-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: streams
>         ok 1 - should be equal to foo.bar:1|c
>         ok 2 - should be equal to foo.baz:-1|c
>         ok 3 - should be equal to uno:-1|c
>         ok 4 - should be equal to two:-1|c
>         ok 5 - should be equal to trezentos:-1|c
>         ok 6 - should be equal to boaz:101|c
>         ok 7 - should be equal to foo.bar.time:500|ms
>         ok 8 - should be equal to set1.bar:567|s
>         ok 9 - should be equal to foo.gauge.2:15|g
>         ok 10 - should be equal to boaz:101|c
>         ok 11 - should be equal to set1.bar:567|s
>         ok 12 - should be equal to foo.gauge.2:15|g
>         1..12
>     ok 1 - streams # time=127.634ms
>     
>     not ok 2 - bind EADDRINUSE 127.0.0.1:9753
>       ---
>       at:
>         line: 357
>         column: 20
>         file: dgram.js
>         function: GetAddrInfoReqWrap.callback
>       errno: -98
>       code: EADDRINUSE
>       syscall: bind
>       address: 127.0.0.1
>       port: 9753
>       tapCaught: uncaughtException
>       test: TAP
>       ...
>     
>     1..2
>     # failed 1 of 2 tests
>     # time=151.677ms
> }
> 
> not ok 8 - tests/timings-test.js # time=1224.715ms
>   ---
>   env: {}
>   file: tests/timings-test.js
>   timeout: 30000
>   command: /usr/bin/node
>   args:
>     - tests/timings-test.js
>   stdio:
>     - 0
>     - pipe
>     - 2
>   cwd: /<<PKGBUILDDIR>>
>   exitCode: 1
>   ...
> {
>     # Subtest: timings test
>         ok 1 - Equality check for foo.baz.time:10|ms
>         ok 2 - Equality check for foo.bar.time:500|ms
>         not ok 3 - Didn't find value foo.bar:1|c in array of possible fixtures
>           ---
>           diff: |
>             --- expected
>             +++ actual
>             @@ -1,3 +1,4 @@
>              Array [
>             -  "foo.bar:1|c",
>             +  "foo.interval:~200|ms",
>             +  "bar.comes.first:~100|ms",
>              ]
>           compare: ===
>           at:
>             line: 141
>             column: 58
>             file: tests/macros.js
>             type: global
>             function: onEachRequest
>           stack: |
>             onEachRequest (tests/macros.js:141:58)
>             Socket.<anonymous> (tests/macros.js:75:56)
>           source: |2
>                   //
>                   // Close the server
>                   //
>                   socket.close();
>           ...
>         
>         not ok 4 - Didn't find value foo.baz:-1|c in array of possible fixtures
>           ---
>           diff: |
>             --- expected
>             +++ actual
>             @@ -1,3 +1,4 @@
>              Array [
>             -  "foo.baz:-1|c",
>             +  "foo.interval:~200|ms",
>             +  "bar.comes.first:~100|ms",
>              ]
>           compare: ===
>           at:
>             line: 141
>             column: 58
>             file: tests/macros.js
>             type: global
>             function: onEachRequest
>           stack: |
>             onEachRequest (tests/macros.js:141:58)
>             Socket.<anonymous> (tests/macros.js:75:56)
>           source: |2
>                   //
>                   // Close the server
>                   //
>                   socket.close();
>           ...
>         
>         1..4
>         # failed 2 of 4 tests
>     not ok 1 - timings test # time=178.92ms
>     
>     1..1
>     # failed 1 test
>     # time=1224.715ms
> }
> 
> 1..8
> # failed 6 of 8 tests
> # time=9465.634ms
> ERROR: Coverage for lines (86.25%) does not meet global threshold (100%)
> ERROR: Coverage for functions (93.75%) does not meet global threshold (100%)
> ERROR: Coverage for branches (75.55%) does not meet global threshold (100%)
> ERROR: Coverage for statements (86.25%) does not meet global threshold (100%)
> ------------|---------|----------|---------|---------|----------------------------------------------
> File        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                            
> ------------|---------|----------|---------|---------|----------------------------------------------
> All files   |   86.25 |    75.55 |   93.75 |   86.25 |                                              
>  lib        |   87.07 |     80.3 |   91.66 |   87.07 |                                              
>   lynx.js   |   87.07 |     80.3 |   91.66 |   87.07 | ...3-448,457,487-488,495-496,503-504,532,548 
>  tests      |   84.37 |     62.5 |     100 |   84.37 |                                              
>   macros.js |   84.37 |     62.5 |     100 |   84.37 | 188-227                                      
> ------------|---------|----------|---------|---------|----------------------------------------------
> 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-lynx_0.2.1-4_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