[Pkg-javascript-devel] Bug#1009567: node-aproba: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Tue Apr 12 20:21:40 BST 2022
Source: node-aproba
Version: 2.0.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/aproba
> /bin/sh -ex debian/tests/pkg-js/test
> + tap test/aproba-arg-validation.js test/index.js
> TAP version 13
> (node:1721090) DeprecationWarning: is() is deprecated, use equal() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> not ok 1 - test/aproba-arg-validation.js # time=36.537ms
> ---
> env: {}
> file: test/aproba-arg-validation.js
> timeout: 30000
> command: /usr/bin/node
> args:
> - test/aproba-arg-validation.js
> stdio:
> - 0
> - pipe
> - 2
> cwd: /<<PKGBUILDDIR>>
> exitCode: 1
> ...
> {
> # Subtest: aproba arg validation
> # Missing required argument #1
> ok 1 - missing first arg is error
> # Missing required argument #2
> ok 2 - missing second arg is error
> # Unknown type ¶ in argument #1
> ok 3 - invalid type string
> # Only one error type per argument signature is allowed, more than one found in "OEOEO"
> ok 4 - more than one error arg is error
> # Expected SA arguments but got 3
> ok 5 - too many arguments
> # Expected SA arguments but got 1
> ok 6 - too few arguments
> # Argument #1: Expected string but got array
> ok 7 - first arg not string
> # Argument #2: Expected array but got number
> ok 8 - second arg not arrayish
> not ok 9 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (test/aproba-arg-validation.js:43: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: 43
> column: 5
> file: test/aproba-arg-validation.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: aproba arg validation
> source: |2
> })
> t.done()
> ----^
> })
> ...
>
> 1..9
> # failed 1 of 9 tests
> not ok 1 - aproba arg validation # time=29.715ms
>
> 1..1
> (node:1721089) DeprecationWarning: is() is deprecated, use equal() instead
> (Use `node --trace-deprecation ...` to show where the warning was created)
> # failed 1 test
> # time=36.537ms
> }
>
> not ok 2 - test/index.js # time=47.482ms
> ---
> env: {}
> file: test/index.js
> timeout: 30000
> command: /usr/bin/node
> args:
> - test/index.js
> stdio:
> - 0
> - pipe
> - 2
> cwd: /<<PKGBUILDDIR>>
> exitCode: 1
> ...
> {
> # Subtest: user arg validation
> ok 1 - A matches A
> # Argument #1: Expected array but got string
> ok 2 - A does not match S
> # Argument #1: Expected array but got number
> ok 3 - A does not match N
> # Argument #1: Expected array but got function
> ok 4 - A does not match F
> # Argument #1: Expected array but got object
> ok 5 - A does not match O
> # Argument #1: Expected array but got boolean
> ok 6 - A does not match B
> # Argument #1: Expected array but got error
> ok 7 - A does not match E
> # Argument #1: Expected array but got null
> ok 8 - null throws for A
> # Argument #1: Expected string but got array
> ok 9 - S does not match A
> ok 10 - S matches S
> # Argument #1: Expected string but got number
> ok 11 - S does not match N
> # Argument #1: Expected string but got function
> ok 12 - S does not match F
> # Argument #1: Expected string but got object
> ok 13 - S does not match O
> # Argument #1: Expected string but got boolean
> ok 14 - S does not match B
> # Argument #1: Expected string but got error
> ok 15 - S does not match E
> # Argument #1: Expected string but got null
> ok 16 - null throws for S
> # Argument #1: Expected number but got array
> ok 17 - N does not match A
> # Argument #1: Expected number but got string
> ok 18 - N does not match S
> ok 19 - N matches N
> # Argument #1: Expected number but got function
> ok 20 - N does not match F
> # Argument #1: Expected number but got object
> ok 21 - N does not match O
> # Argument #1: Expected number but got boolean
> ok 22 - N does not match B
> # Argument #1: Expected number but got error
> ok 23 - N does not match E
> # Argument #1: Expected number but got null
> ok 24 - null throws for N
> # Argument #1: Expected function but got array
> ok 25 - F does not match A
> # Argument #1: Expected function but got string
> ok 26 - F does not match S
> # Argument #1: Expected function but got number
> ok 27 - F does not match N
> ok 28 - F matches F
> # Argument #1: Expected function but got object
> ok 29 - F does not match O
> # Argument #1: Expected function but got boolean
> ok 30 - F does not match B
> # Argument #1: Expected function but got error
> ok 31 - F does not match E
> # Argument #1: Expected function but got null
> ok 32 - null throws for F
> # Argument #1: Expected object but got array
> ok 33 - O does not match A
> # Argument #1: Expected object but got string
> ok 34 - O does not match S
> # Argument #1: Expected object but got number
> ok 35 - O does not match N
> # Argument #1: Expected object but got function
> ok 36 - O does not match F
> ok 37 - O matches O
> # Argument #1: Expected object but got boolean
> ok 38 - O does not match B
> # Argument #1: Expected object but got error
> ok 39 - O does not match E
> # Argument #1: Expected object but got null
> ok 40 - null throws for O
> # Argument #1: Expected boolean but got array
> ok 41 - B does not match A
> # Argument #1: Expected boolean but got string
> ok 42 - B does not match S
> # Argument #1: Expected boolean but got number
> ok 43 - B does not match N
> # Argument #1: Expected boolean but got function
> ok 44 - B does not match F
> # Argument #1: Expected boolean but got object
> ok 45 - B does not match O
> ok 46 - B matches B
> # Argument #1: Expected boolean but got error
> ok 47 - B does not match E
> # Argument #1: Expected boolean but got null
> ok 48 - null throws for B
> # Argument #1: Expected error or null but got array
> ok 49 - E does not match A
> # Argument #1: Expected error or null but got string
> ok 50 - E does not match S
> # Argument #1: Expected error or null but got number
> ok 51 - E does not match N
> # Argument #1: Expected error or null but got function
> ok 52 - E does not match F
> # Argument #1: Expected error or null but got object
> ok 53 - E does not match O
> # Argument #1: Expected error or null but got boolean
> ok 54 - E does not match B
> ok 55 - E matches E
> ok 56 - null is ok for E
> ok 57 - * matches A
> ok 58 - * matches S
> ok 59 - * matches N
> ok 60 - * matches F
> ok 61 - * matches O
> ok 62 - * matches B
> ok 63 - * matches E
> # Expected 3 argument but got 2
> ok 64 - not enough args
> # Expected 3 argument but got 4
> ok 65 - too many args
> ok 66 - E matches null
> ok 67 - E matches undefined
> ok 68 - E matches empty
> ok 69 - E w/ error requires nothing else
> ok 70 - E w/ error ok with all args
> # Expected 1 or 3 argument but got 2
> ok 71 - E w/ error NOT ok with partial args
> # Expected 1 or 3 argument but got 2
> ok 72 - E w/o error works as usual
> ok 73 - When reporting non-objects, uses aproba types
> not ok 74 - t.done is not a function
> ---
> stack: |
> Test.<anonymous> (test/index.js:99: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: 99
> column: 5
> file: test/index.js
> function: Test.<anonymous>
> type: TypeError
> tapCaught: testFunctionThrow
> test: user arg validation
> source: |2
> }
> t.done()
> ----^
> })
> ...
>
> 1..74
> # failed 1 of 74 tests
> not ok 1 - user arg validation # time=42.469ms
>
> 1..1
> # failed 1 test
> # time=47.482ms
> }
>
> 1..2
> # failed 2 of 2 tests
> # time=875.596ms
> ----------|---------|----------|---------|---------|-------------------
> File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
> ----------|---------|----------|---------|---------|-------------------
> All files | 100 | 100 | 100 | 100 |
> index.js | 100 | 100 | 100 | 100 |
> ----------|---------|----------|---------|---------|-------------------
> 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-aproba_2.0.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