[Pkg-javascript-devel] Bug#1009512: node-tacks: FTBFS: ERROR: Coverage for statements (94.04%) does not meet global threshold (100%)
Lucas Nussbaum
lucas at debian.org
Tue Apr 12 20:21:02 BST 2022
Source: node-tacks
Version: 1.3.0-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
> 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/tacks
> /bin/sh -ex debian/tests/pkg-js/test
> + tap test/functional.js
> TAP version 13
> (node:163488) [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:163488) DeprecationWarning: is() is deprecated, use equal() instead
> not ok 1 - test/functional.js # time=145.636ms
> ---
> env: {}
> file: test/functional.js
> timeout: 30000
> command: /usr/bin/node
> args:
> - test/functional.js
> stdio:
> - 0
> - pipe
> - 2
> cwd: /<<PKGBUILDDIR>>
> exitCode: 1
> ...
> {
> # Subtest: setup
> not ok 1 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (test/functional.js:72:5)
> Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40)
> /usr/share/nodejs/libtap/lib/test.js:369:21
> Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7)
> Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15)
> /usr/share/nodejs/libtap/lib/test.js:485:13
> TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5)
> Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14)
> at:
> line: 72
> column: 5
> file: test/functional.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: setup
> source: |2
> setup()
> t.done()
> ----^
> })
> ...
>
> 1..1
> # failed 1 test
> not ok 1 - setup # time=54.43ms
>
> # Subtest: loadFromDir
> # Subtest: loadFromDir
> ok 1 - /: type
> ok 2 - /a: type
> ok 3 - /a/b: type
> ok 4 - /a/b/c: type
> ok 5 - /a/b/c/foo.txt: type
> ok 6 - /a/b/c/foo.txt: file string content
> ok 7 - /a/b/c/bar.txt: type
> ok 8 - /a/b/c/bar.txt: symlink destination
> ok 9 - /a/b/c/ascii.txt: type
> ok 10 - /a/b/c/ascii.txt: symlink destination
> ok 11 - /ascii.txt: type
> ok 12 - /ascii.txt: file string content
> ok 13 - /foo: type
> ok 14 - /foo/foo.txt: type
> ok 15 - /foo/foo.txt: symlink destination
> ok 16 - /binary.gz: type
> ok 17 - /binary.gz: file buffer content
> ok 18 - /empty.txt: type
> ok 19 - /empty.txt: file string content
> ok 20 - /example.json: type
> ok 21 - /example.json: file string content
> ok 22 - /x: type
> ok 23 - /x/y: type
> ok 24 - /x/y/z: type
> not ok 25 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (tap.js:5:7)
> Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40)
> /usr/share/nodejs/libtap/lib/test.js:369:21
> Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7)
> Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15)
> /usr/share/nodejs/libtap/lib/test.js:485:13
> Test.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5)
> Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14)
> at:
> line: 5
> column: 7
> file: tap.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: loadFromDir
> source: |2
> compare(t, '/', actual.fixture, expected.fixture)
> t.done()
> ------^
> })
> }
> ...
>
> 1..25
> # failed 1 of 25 tests
> not ok 1 - loadFromDir # time=22.55ms
>
> 1..1
> # failed 1 test
> not ok 2 - loadFromDir # time=39.291ms
>
> # Subtest: generateFromDir
> # Subtest: generateFromDir
> ok 1 - /: type
> ok 2 - /a: type
> ok 3 - /a/b: type
> ok 4 - /a/b/c: type
> ok 5 - /a/b/c/foo.txt: type
> ok 6 - /a/b/c/foo.txt: file string content
> ok 7 - /a/b/c/bar.txt: type
> ok 8 - /a/b/c/bar.txt: symlink destination
> ok 9 - /a/b/c/ascii.txt: type
> ok 10 - /a/b/c/ascii.txt: symlink destination
> ok 11 - /ascii.txt: type
> ok 12 - /ascii.txt: file string content
> ok 13 - /foo: type
> ok 14 - /foo/foo.txt: type
> ok 15 - /foo/foo.txt: symlink destination
> ok 16 - /binary.gz: type
> ok 17 - /binary.gz: file buffer content
> ok 18 - /empty.txt: type
> ok 19 - /empty.txt: file string content
> ok 20 - /example.json: type
> ok 21 - /example.json: file string content
> ok 22 - /x: type
> ok 23 - /x/y: type
> ok 24 - /x/y/z: type
> not ok 25 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (tap.js:5:7)
> Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40)
> /usr/share/nodejs/libtap/lib/test.js:369:21
> Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7)
> Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15)
> /usr/share/nodejs/libtap/lib/test.js:485:13
> Test.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5)
> Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14)
> at:
> line: 5
> column: 7
> file: tap.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: generateFromDir
> source: |2
> compare(t, '/', actual.fixture, expected.fixture)
> t.done()
> ------^
> })
> }
> ...
>
> 1..25
> # failed 1 of 25 tests
> not ok 1 - generateFromDir # time=12.585ms
>
> 1..1
> # failed 1 test
> not ok 3 - generateFromDir # time=24.249ms
>
> # Subtest: cleanup
> ok 1 - /<<PKGBUILDDIR>>/test/functional/example should not exist
> not ok 2 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (test/functional.js:96:5)
> Test.cb (/usr/share/nodejs/libtap/lib/test.js:127:40)
> /usr/share/nodejs/libtap/lib/test.js:369:21
> Test.main (/usr/share/nodejs/libtap/lib/test.js:376:7)
> Test.runMain (/usr/share/nodejs/libtap/lib/base.js:178:15)
> /usr/share/nodejs/libtap/lib/test.js:485:13
> TAP.writeSubComment (/usr/share/nodejs/libtap/lib/test.js:556:5)
> Test.<anonymous> (/usr/share/nodejs/libtap/lib/test.js:484:14)
> at:
> line: 96
> column: 5
> file: test/functional.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: cleanup
> source: |2
> rimraf.sync(testroot)
> t.done()
> ----^
> })
> ...
>
> 1..2
> # failed 1 of 2 tests
> not ok 4 - cleanup # time=15.24ms
>
> 1..4
> # failed 4 of 4 tests
> # time=145.636ms
> }
>
> 1..1
> # failed 1 test
> # time=1291.907ms
> ERROR: Coverage for lines (95.33%) does not meet global threshold (100%)
> ERROR: Coverage for functions (92.59%) does not meet global threshold (100%)
> ERROR: Coverage for branches (84.52%) does not meet global threshold (100%)
> ERROR: Coverage for statements (94.04%) does not meet global threshold (100%)
> ----------------------|---------|----------|---------|---------|-------------------
> File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
> ----------------------|---------|----------|---------|---------|-------------------
> All files | 94.04 | 84.52 | 92.59 | 95.33 |
> as-literal.js | 94.44 | 85 | 100 | 96.87 | 31
> as-object-key.js | 100 | 100 | 100 | 100 |
> dir.js | 100 | 83.33 | 100 | 100 | 12
> entry.js | 86.66 | 100 | 60 | 86.66 | 14,22
> file.js | 93.87 | 87.5 | 77.77 | 93.33 | 42,61,71
> generate-from-dir.js | 100 | 100 | 100 | 100 |
> index.js | 100 | 100 | 100 | 100 |
> load-from-dir.js | 97.36 | 92.85 | 100 | 100 | 25
> symlink.js | 91.66 | 80 | 100 | 95.45 | 23
> tacks.js | 100 | 100 | 100 | 100 |
> tap.js | 82.75 | 75 | 100 | 85.18 | 24,31-32,38
> ----------------------|---------|----------|---------|---------|-------------------
> 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-tacks_1.3.0-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